OLD | NEW |
1 | 1 |
2 class MouseEvent extends UIEvent native "*MouseEvent" { | 2 class MouseEvent extends UIEvent native "*MouseEvent" { |
3 | 3 |
4 bool altKey; | 4 bool get altKey() native "return this.altKey;"; |
5 | 5 |
6 int button; | 6 int get button() native "return this.button;"; |
7 | 7 |
8 int clientX; | 8 int get clientX() native "return this.clientX;"; |
9 | 9 |
10 int clientY; | 10 int get clientY() native "return this.clientY;"; |
11 | 11 |
12 bool ctrlKey; | 12 bool get ctrlKey() native "return this.ctrlKey;"; |
13 | 13 |
14 Clipboard dataTransfer; | 14 Clipboard get dataTransfer() native "return this.dataTransfer;"; |
15 | 15 |
16 Node fromElement; | 16 Node get fromElement() native "return this.fromElement;"; |
17 | 17 |
18 bool metaKey; | 18 bool get metaKey() native "return this.metaKey;"; |
19 | 19 |
20 int offsetX; | 20 int get offsetX() native "return this.offsetX;"; |
21 | 21 |
22 int offsetY; | 22 int get offsetY() native "return this.offsetY;"; |
23 | 23 |
24 EventTarget relatedTarget; | 24 EventTarget get relatedTarget() native "return this.relatedTarget;"; |
25 | 25 |
26 int screenX; | 26 int get screenX() native "return this.screenX;"; |
27 | 27 |
28 int screenY; | 28 int get screenY() native "return this.screenY;"; |
29 | 29 |
30 bool shiftKey; | 30 bool get shiftKey() native "return this.shiftKey;"; |
31 | 31 |
32 Node toElement; | 32 Node get toElement() native "return this.toElement;"; |
33 | 33 |
34 int webkitMovementX; | 34 int get webkitMovementX() native "return this.webkitMovementX;"; |
35 | 35 |
36 int webkitMovementY; | 36 int get webkitMovementY() native "return this.webkitMovementY;"; |
37 | 37 |
38 int x; | 38 int get x() native "return this.x;"; |
39 | 39 |
40 int y; | 40 int get y() native "return this.y;"; |
41 | 41 |
42 void initMouseEvent(String type, bool canBubble, bool cancelable, DOMWindow vi
ew, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey
, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarge
t) native; | 42 void initMouseEvent(String type, bool canBubble, bool cancelable, DOMWindow vi
ew, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey
, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarge
t) native; |
43 } | 43 } |
OLD | NEW |