2 * Copyright 2008 The Closure Compiler Authors
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @fileoverview Definitions for all the extensions over the
19 * W3C's event specification by IE in JScript. This file depends on
22 * @see http://msdn.microsoft.com/en-us/library/ms535863.aspx
27 Event.prototype.Abstract;
29 /** @type {boolean} */
30 Event.prototype.altLeft;
33 Event.prototype.Banner;
36 * A ClipboardData on IE, but a DataTransfer on WebKit.
37 * @see http://msdn.microsoft.com/en-us/library/ms535220.aspx
38 * @type {(ClipboardData|undefined)}
40 Event.prototype.clipboardData;
42 /** @type {boolean} */
43 Event.prototype.contentOverflow;
45 /** @type {boolean} */
46 Event.prototype.ctrlLeft;
49 Event.prototype.dataFld;
51 Event.prototype.domain;
53 /** @type {Element} */
54 Event.prototype.fromElement;
57 Event.prototype.MoreInfo;
60 Event.prototype.nextPage;
63 Event.prototype.offsetX;
66 Event.prototype.offsetY;
69 Event.prototype.propertyName;
72 Event.prototype.qualifier;
75 Event.prototype.reason;
77 /** @type {Object.<*,*>} */
78 Event.prototype.recordset;
80 /** @type {boolean} */
81 Event.prototype.repeat;
83 /** @type {(boolean|string|undefined)} */
84 Event.prototype.returnValue;
87 Event.prototype.saveType;
89 Event.prototype.scheme;
91 /** @type {boolean} */
92 Event.prototype.shiftLeft;
95 Event.prototype.source;
97 /** @type {Element} */
98 Event.prototype.srcElement;
100 Event.prototype.srcFilter;
102 /** @type {string} */
103 Event.prototype.srcUrn;
105 /** @type {Element} */
106 Event.prototype.toElement;
108 Event.prototype.userName;
110 /** @type {number} */
111 Event.prototype.wheelDelta;
113 /** @type {number} */
116 /** @type {number} */
121 * @see http://msdn.microsoft.com/en-us/library/windows/apps/hh441257.aspx
123 function MSPointerPoint() {}
125 /** @type {number} */
126 MSPointerPoint.prototype.pointerId;
128 /** @type {number} */
129 MSPointerPoint.prototype.pointerType;
134 * @see http://msdn.microsoft.com/en-us/library/windows/apps/hh441233.aspx
136 function MSPointerEvent() {}
138 /** @type {number} */
139 MSPointerEvent.MSPOINTER_TYPE_MOUSE;
141 /** @type {number} */
142 MSPointerEvent.MSPOINTER_TYPE_PEN;
144 /** @type {number} */
145 MSPointerEvent.MSPOINTER_TYPE_TOUCH;
147 /** @type {number} */
148 MSPointerEvent.prototype.height;
150 /** @type {number} */
151 MSPointerEvent.prototype.hwTimestamp;
153 /** @type {boolean} */
154 MSPointerEvent.prototype.isPrimary;
156 /** @type {number} */
157 MSPointerEvent.prototype.pointerId;
159 /** @type {number} */
160 MSPointerEvent.prototype.pointerType;
162 /** @type {number} */
163 MSPointerEvent.prototype.pressure;
165 /** @type {number} */
166 MSPointerEvent.prototype.rotation;
168 /** @type {number} */
169 MSPointerEvent.prototype.tiltX;
171 /** @type {number} */
172 MSPointerEvent.prototype.tiltY;
174 /** @type {number} */
175 MSPointerEvent.prototype.timeStamp;
177 /** @type {number} */
178 MSPointerEvent.prototype.width;
181 * @param {number} pointerId
182 * @return {undefined}
184 MSPointerEvent.prototype.msReleasePointerCapture;
187 * @param {number} pointerId
188 * @return {undefined}
190 MSPointerEvent.prototype.msSetPointerCapture;
193 * @param {string} typeArg
194 * @param {boolean} canBubbleArg
195 * @param {boolean} cancelableArg
196 * @param {Window} viewArg
197 * @param {number} detailArg
198 * @param {number} screenXArg
199 * @param {number} screenYArg
200 * @param {number} clientXArg
201 * @param {number} clientYArg
202 * @param {boolean} ctrlKeyArg
203 * @param {boolean} altKeyArg
204 * @param {boolean} shiftKeyArg
205 * @param {boolean} metaKeyArg
206 * @param {number} buttonArg
207 * @param {Element} relatedTargetArg
208 * @param {number} offsetXArg
209 * @param {number} offsetYArg
210 * @param {number} widthArg
211 * @param {number} heightArg
212 * @param {number} pressure
213 * @param {number} rotation
214 * @param {number} tiltX
215 * @param {number} tiltY
216 * @param {number} pointerIdArg
217 * @param {number} pointerType
218 * @param {number} hwTimestampArg
219 * @param {boolean} isPrimary
220 * @return {undefined}
221 * @see http://msdn.microsoft.com/en-us/library/windows/apps/hh441246.aspx
223 MSPointerEvent.prototype.initPointerEvent;
227 * @see http://msdn.microsoft.com/en-us/library/ie/hh968249(v=vs.85).aspx
229 function MSGesture() {}
234 MSGesture.prototype.target;
237 * @param {number} pointerId
239 MSGesture.prototype.addPointer = function(pointerId) {};
241 MSGesture.prototype.stop = function() {};
246 * @see http://msdn.microsoft.com/en-us/library/ie/hh772076(v=vs.85).aspx
248 function MSGestureEvent() {}
250 /** @type {number} */
251 MSGestureEvent.prototype.expansion;
253 /** @type {!MSGesture} */
254 MSGestureEvent.prototype.gestureObject;
256 /** @type {number} */
257 MSGestureEvent.prototype.hwTimestamp;
259 /** @type {number} */
260 MSGestureEvent.prototype.rotation;
262 /** @type {number} */
263 MSGestureEvent.prototype.scale;
265 /** @type {number} */
266 MSGestureEvent.prototype.translationX;
268 /** @type {number} */
269 MSGestureEvent.prototype.translationY;
271 /** @type {number} */
272 MSGestureEvent.prototype.velocityAngular;
274 /** @type {number} */
275 MSGestureEvent.prototype.velocityExpansion;
277 /** @type {number} */
278 MSGestureEvent.prototype.velocityX;
280 /** @type {number} */
281 MSGestureEvent.prototype.velocityY;
284 * @param {string} typeArg
285 * @param {boolean} canBubbleArg
286 * @param {boolean} cancelableArg
287 * @param {Window} viewArg
288 * @param {number} detailArg
289 * @param {number} screenXArg
290 * @param {number} screenYArg
291 * @param {number} clientXArg
292 * @param {number} clientYArg
293 * @param {number} offsetXArg
294 * @param {number} offsetYArg
295 * @param {number} translationXArg
296 * @param {number} translationYArg
297 * @param {number} scaleArg
298 * @param {number} expansionArg
299 * @param {number} rotationArg
300 * @param {number} velocityXArg
301 * @param {number} velocityYArg
302 * @param {number} velocityExpansionArg
303 * @param {number} velocityAngularArg
304 * @param {number} hwTimestampArg
305 * @param {EventTarget} relatedTargetArg
306 * @return {undefined}
307 * @see http://msdn.microsoft.com/en-us/library/windows/apps/hh441187.aspx
309 MSGestureEvent.prototype.initGestureEvent;