OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 11 matching lines...) Expand all Loading... |
22 ] interface MouseEvent : UIEvent { | 22 ] interface MouseEvent : UIEvent { |
23 [InitializedByEventConstructor] readonly attribute long screenX; | 23 [InitializedByEventConstructor] readonly attribute long screenX; |
24 [InitializedByEventConstructor] readonly attribute long screenY; | 24 [InitializedByEventConstructor] readonly attribute long screenY; |
25 [InitializedByEventConstructor] readonly attribute long clientX; | 25 [InitializedByEventConstructor] readonly attribute long clientX; |
26 [InitializedByEventConstructor] readonly attribute long clientY; | 26 [InitializedByEventConstructor] readonly attribute long clientY; |
27 [InitializedByEventConstructor] readonly attribute boolean ctrlKey; | 27 [InitializedByEventConstructor] readonly attribute boolean ctrlKey; |
28 [InitializedByEventConstructor] readonly attribute boolean shiftKey
; | 28 [InitializedByEventConstructor] readonly attribute boolean shiftKey
; |
29 [InitializedByEventConstructor] readonly attribute boolean altKey; | 29 [InitializedByEventConstructor] readonly attribute boolean altKey; |
30 [InitializedByEventConstructor] readonly attribute boolean metaKey; | 30 [InitializedByEventConstructor] readonly attribute boolean metaKey; |
31 [InitializedByEventConstructor] readonly attribute unsigned short button; | 31 [InitializedByEventConstructor] readonly attribute unsigned short button; |
| 32 [RuntimeEnabled=MouseEventButtonsAttribute, InitializedByEventConstructor] r
eadonly attribute unsigned short buttons; |
32 [InitializedByEventConstructor] readonly attribute EventTarget? relatedT
arget; | 33 [InitializedByEventConstructor] readonly attribute EventTarget? relatedT
arget; |
33 [MeasureAs=MouseEventMovementX] readonly attribute long movement
X; | 34 [MeasureAs=MouseEventMovementX] readonly attribute long movement
X; |
34 [MeasureAs=MouseEventMovementY] readonly attribute long movement
Y; | 35 [MeasureAs=MouseEventMovementY] readonly attribute long movement
Y; |
35 [MeasureAs=PrefixedMouseEventMovementX, ImplementedAs=movementX] readonly at
tribute long webkitMovementX; | 36 [MeasureAs=PrefixedMouseEventMovementX, ImplementedAs=movementX] readonly at
tribute long webkitMovementX; |
36 [MeasureAs=PrefixedMouseEventMovementY, ImplementedAs=movementY] readonly at
tribute long webkitMovementY; | 37 [MeasureAs=PrefixedMouseEventMovementY, ImplementedAs=movementY] readonly at
tribute long webkitMovementY; |
37 | 38 |
38 void initMouseEvent([Default=Undefined] optional DOMString type, | 39 void initMouseEvent([Default=Undefined] optional DOMString type, |
39 [Default=Undefined] optional boolean canB
ubble, | 40 [Default=Undefined] optional boolean canB
ubble, |
40 [Default=Undefined] optional boolean canc
elable, | 41 [Default=Undefined] optional boolean canc
elable, |
41 [Default=Undefined] optional Window view, | 42 [Default=Undefined] optional Window view, |
(...skipping 14 matching lines...) Expand all Loading... |
56 [MeasureAs=MouseEventOffsetY] readonly attribute long offsetY; | 57 [MeasureAs=MouseEventOffsetY] readonly attribute long offsetY; |
57 [MeasureAs=MouseEventX] readonly attribute long x; | 58 [MeasureAs=MouseEventX] readonly attribute long x; |
58 [MeasureAs=MouseEventY] readonly attribute long y; | 59 [MeasureAs=MouseEventY] readonly attribute long y; |
59 [MeasureAs=MouseEventFromElement] readonly attribute Node fromElement; | 60 [MeasureAs=MouseEventFromElement] readonly attribute Node fromElement; |
60 [MeasureAs=MouseEventToElement] readonly attribute Node toElement; | 61 [MeasureAs=MouseEventToElement] readonly attribute Node toElement; |
61 [MeasureAs=MouseEventWhich] readonly attribute long which; | 62 [MeasureAs=MouseEventWhich] readonly attribute long which; |
62 | 63 |
63 // FIXME: this belongs on the DragEvent interface | 64 // FIXME: this belongs on the DragEvent interface |
64 readonly attribute DataTransfer dataTransfer; | 65 readonly attribute DataTransfer dataTransfer; |
65 }; | 66 }; |
OLD | NEW |