ie_event.js (6839B)
1 /* 2 * Copyright 2008 The Closure Compiler Authors 3 * 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 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 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. 15 */ 16 17 /** 18 * @fileoverview Definitions for all the extensions over the 19 * W3C's event specification by IE in JScript. This file depends on 20 * w3c_event.js. 21 * 22 * @see http://msdn.microsoft.com/en-us/library/ms535863.aspx 23 * @externs 24 */ 25 26 /** @type {string} */ 27 Event.prototype.Abstract; 28 29 /** @type {boolean} */ 30 Event.prototype.altLeft; 31 32 /** @type {string} */ 33 Event.prototype.Banner; 34 35 /** 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)} 39 */ 40 Event.prototype.clipboardData; 41 42 /** @type {boolean} */ 43 Event.prototype.contentOverflow; 44 45 /** @type {boolean} */ 46 Event.prototype.ctrlLeft; 47 48 /** @type {string} */ 49 Event.prototype.dataFld; 50 51 Event.prototype.domain; 52 53 /** @type {Element} */ 54 Event.prototype.fromElement; 55 56 /** @type {string} */ 57 Event.prototype.MoreInfo; 58 59 /** @type {string} */ 60 Event.prototype.nextPage; 61 62 /** @type {number} */ 63 Event.prototype.offsetX; 64 65 /** @type {number} */ 66 Event.prototype.offsetY; 67 68 /** @type {string} */ 69 Event.prototype.propertyName; 70 71 /** @type {string} */ 72 Event.prototype.qualifier; 73 74 /** @type {number} */ 75 Event.prototype.reason; 76 77 /** @type {Object.<*,*>} */ 78 Event.prototype.recordset; 79 80 /** @type {boolean} */ 81 Event.prototype.repeat; 82 83 /** @type {(boolean|string|undefined)} */ 84 Event.prototype.returnValue; 85 86 /** @type {string} */ 87 Event.prototype.saveType; 88 89 Event.prototype.scheme; 90 91 /** @type {boolean} */ 92 Event.prototype.shiftLeft; 93 94 /** @type {Window} */ 95 Event.prototype.source; 96 97 /** @type {Element} */ 98 Event.prototype.srcElement; 99 100 Event.prototype.srcFilter; 101 102 /** @type {string} */ 103 Event.prototype.srcUrn; 104 105 /** @type {Element} */ 106 Event.prototype.toElement; 107 108 Event.prototype.userName; 109 110 /** @type {number} */ 111 Event.prototype.wheelDelta; 112 113 /** @type {number} */ 114 Event.prototype.x; 115 116 /** @type {number} */ 117 Event.prototype.y; 118 119 /** 120 * @constructor 121 * @see http://msdn.microsoft.com/en-us/library/windows/apps/hh441257.aspx 122 */ 123 function MSPointerPoint() {} 124 125 /** @type {number} */ 126 MSPointerPoint.prototype.pointerId; 127 128 /** @type {number} */ 129 MSPointerPoint.prototype.pointerType; 130 131 /** 132 * @constructor 133 * @extends {Event} 134 * @see http://msdn.microsoft.com/en-us/library/windows/apps/hh441233.aspx 135 */ 136 function MSPointerEvent() {} 137 138 /** @type {number} */ 139 MSPointerEvent.MSPOINTER_TYPE_MOUSE; 140 141 /** @type {number} */ 142 MSPointerEvent.MSPOINTER_TYPE_PEN; 143 144 /** @type {number} */ 145 MSPointerEvent.MSPOINTER_TYPE_TOUCH; 146 147 /** @type {number} */ 148 MSPointerEvent.prototype.height; 149 150 /** @type {number} */ 151 MSPointerEvent.prototype.hwTimestamp; 152 153 /** @type {boolean} */ 154 MSPointerEvent.prototype.isPrimary; 155 156 /** @type {number} */ 157 MSPointerEvent.prototype.pointerId; 158 159 /** @type {number} */ 160 MSPointerEvent.prototype.pointerType; 161 162 /** @type {number} */ 163 MSPointerEvent.prototype.pressure; 164 165 /** @type {number} */ 166 MSPointerEvent.prototype.rotation; 167 168 /** @type {number} */ 169 MSPointerEvent.prototype.tiltX; 170 171 /** @type {number} */ 172 MSPointerEvent.prototype.tiltY; 173 174 /** @type {number} */ 175 MSPointerEvent.prototype.timeStamp; 176 177 /** @type {number} */ 178 MSPointerEvent.prototype.width; 179 180 /** 181 * @param {number} pointerId 182 * @return {undefined} 183 */ 184 MSPointerEvent.prototype.msReleasePointerCapture; 185 186 /** 187 * @param {number} pointerId 188 * @return {undefined} 189 */ 190 MSPointerEvent.prototype.msSetPointerCapture; 191 192 /** 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 222 */ 223 MSPointerEvent.prototype.initPointerEvent; 224 225 /** 226 * @constructor 227 * @see http://msdn.microsoft.com/en-us/library/ie/hh968249(v=vs.85).aspx 228 */ 229 function MSGesture() {} 230 231 /** 232 * @type {Element} 233 */ 234 MSGesture.prototype.target; 235 236 /** 237 * @param {number} pointerId 238 */ 239 MSGesture.prototype.addPointer = function(pointerId) {}; 240 241 MSGesture.prototype.stop = function() {}; 242 243 /** 244 * @constructor 245 * @extends {Event} 246 * @see http://msdn.microsoft.com/en-us/library/ie/hh772076(v=vs.85).aspx 247 */ 248 function MSGestureEvent() {} 249 250 /** @type {number} */ 251 MSGestureEvent.prototype.expansion; 252 253 /** @type {!MSGesture} */ 254 MSGestureEvent.prototype.gestureObject; 255 256 /** @type {number} */ 257 MSGestureEvent.prototype.hwTimestamp; 258 259 /** @type {number} */ 260 MSGestureEvent.prototype.rotation; 261 262 /** @type {number} */ 263 MSGestureEvent.prototype.scale; 264 265 /** @type {number} */ 266 MSGestureEvent.prototype.translationX; 267 268 /** @type {number} */ 269 MSGestureEvent.prototype.translationY; 270 271 /** @type {number} */ 272 MSGestureEvent.prototype.velocityAngular; 273 274 /** @type {number} */ 275 MSGestureEvent.prototype.velocityExpansion; 276 277 /** @type {number} */ 278 MSGestureEvent.prototype.velocityX; 279 280 /** @type {number} */ 281 MSGestureEvent.prototype.velocityY; 282 283 /** 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 308 */ 309 MSGestureEvent.prototype.initGestureEvent;