| 1 | /* |
| 2 | * Copyright 2008 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 |
| 19 | * W3C's event specification by Gecko. This file depends on |
| 20 | * w3c_event.js. |
| 21 | * |
| 22 | * @externs |
| 23 | */ |
| 24 | |
| 25 | // TODO: Almost all of it has not been annotated with types. |
| 26 | |
| 27 | /** @type {number} */ Event.prototype.HORIZONTAL_AXIS; |
| 28 | /** @type {number} */ Event.prototype.VERTICAL_AXIS; |
| 29 | /** @type {boolean} */ Event.prototype.altKey; |
| 30 | /** @type {number} */ Event.prototype.axis; |
| 31 | /** @type {number} */ Event.prototype.button; |
| 32 | /** @type {boolean} */ Event.prototype.cancelBubble; |
| 33 | /** @type {number} */ Event.prototype.charCode; |
| 34 | /** @type {number} */ Event.prototype.clientX; |
| 35 | /** @type {number} */ Event.prototype.clientY; |
| 36 | /** @type {boolean} */ Event.prototype.ctrlKey; |
| 37 | /** @type {number} */ Event.prototype.detail; |
| 38 | /** @type {EventTarget} */ Event.prototype.explicitOriginalTarget; |
| 39 | /** @type {boolean} */ Event.prototype.isChar; |
| 40 | /** @type {number} */ Event.prototype.keyCode; |
| 41 | /** @type {number} */ Event.prototype.layerX; |
| 42 | /** @type {number} */ Event.prototype.layerY; |
| 43 | /** @type {boolean} */ Event.prototype.metaKey; |
| 44 | /** @type {EventTarget} */ Event.prototype.originalTarget; |
| 45 | /** @type {number} */ Event.prototype.pageX; |
| 46 | /** @type {number} */ Event.prototype.pageY; |
| 47 | /** @type {EventTarget} */ Event.prototype.relatedTarget; |
| 48 | /** @type {number} */ Event.prototype.screenX; |
| 49 | /** @type {number} */ Event.prototype.screenY; |
| 50 | /** @type {boolean} */ Event.prototype.shiftKey; |
| 51 | /** @type {Window} */ Event.prototype.view; |
| 52 | /** @type {number} */ Event.prototype.which; |
| 53 | /** @type {Object} */ Event.prototype.state; |
| 54 | |
| 55 | /** @constructor */ function nsIDOMPageTransitionEvent() {} |
| 56 | /** @type {boolean} */ nsIDOMPageTransitionEvent.prototype.persisted; |
| 57 | |
| 58 | //Methods |
| 59 | Event.prototype.initKeyEvent; |
| 60 | Event.prototype.initMouseEvent; |
| 61 | Event.prototype.initUIEvent; |
| 62 | Event.prototype.initMessageEvent; |
| 63 | Event.prototype.preventBubble; |
| 64 | Event.prototype.preventCapture; |