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 13 matching lines...) Expand all Loading... |
24 ConstructorCallWith=ScriptState, | 24 ConstructorCallWith=ScriptState, |
25 ] interface MouseEvent : UIEvent { | 25 ] interface MouseEvent : UIEvent { |
26 readonly attribute long screenX; | 26 readonly attribute long screenX; |
27 readonly attribute long screenY; | 27 readonly attribute long screenY; |
28 readonly attribute long clientX; | 28 readonly attribute long clientX; |
29 readonly attribute long clientY; | 29 readonly attribute long clientY; |
30 readonly attribute boolean ctrlKey; | 30 readonly attribute boolean ctrlKey; |
31 readonly attribute boolean shiftKey; | 31 readonly attribute boolean shiftKey; |
32 readonly attribute boolean altKey; | 32 readonly attribute boolean altKey; |
33 readonly attribute boolean metaKey; | 33 readonly attribute boolean metaKey; |
34 // TODO(philipj): button should be short, not unsigned short. | 34 readonly attribute short button; |
35 readonly attribute unsigned short button; | |
36 readonly attribute unsigned short buttons; | 35 readonly attribute unsigned short buttons; |
37 readonly attribute EventTarget? relatedTarget; | 36 readonly attribute EventTarget? relatedTarget; |
38 // TODO(philipj): boolean getModifierState(DOMString keyArg); | 37 // TODO(philipj): boolean getModifierState(DOMString keyArg); |
39 | 38 |
40 // https://w3c.github.io/uievents/#idl-interface-MouseEvent-initializers | 39 // https://w3c.github.io/uievents/#idl-interface-MouseEvent-initializers |
41 // TODO(philipj): None of the initMouseEvent() arguments should be optional. | 40 // TODO(philipj): None of the initMouseEvent() arguments should be optional. |
42 [CallWith=ScriptState] void initMouseEvent([Default=Undefined] optional DOMS
tring type, | 41 [CallWith=ScriptState] void initMouseEvent([Default=Undefined] optional DOMS
tring type, |
43 [Default=Undefined] optional boolean bubb
les, | 42 [Default=Undefined] optional boolean bubb
les, |
44 [Default=Undefined] optional boolean canc
elable, | 43 [Default=Undefined] optional boolean canc
elable, |
45 [Default=Undefined] optional Window? view
, | 44 [Default=Undefined] optional Window? view
, |
(...skipping 21 matching lines...) Expand all Loading... |
67 [MeasureAs=MouseEventY] readonly attribute long y; | 66 [MeasureAs=MouseEventY] readonly attribute long y; |
68 [MeasureAs=MouseEventFromElement] readonly attribute Node fromElement; | 67 [MeasureAs=MouseEventFromElement] readonly attribute Node fromElement; |
69 [MeasureAs=MouseEventToElement] readonly attribute Node toElement; | 68 [MeasureAs=MouseEventToElement] readonly attribute Node toElement; |
70 [MeasureAs=MouseEventWhich] readonly attribute long which; | 69 [MeasureAs=MouseEventWhich] readonly attribute long which; |
71 [DeprecateAs=PrefixedMouseEventMovementX, ImplementedAs=movementX] readonly
attribute long webkitMovementX; | 70 [DeprecateAs=PrefixedMouseEventMovementX, ImplementedAs=movementX] readonly
attribute long webkitMovementX; |
72 [DeprecateAs=PrefixedMouseEventMovementY, ImplementedAs=movementY] readonly
attribute long webkitMovementY; | 71 [DeprecateAs=PrefixedMouseEventMovementY, ImplementedAs=movementY] readonly
attribute long webkitMovementY; |
73 | 72 |
74 // FIXME: dataTransfer belongs on the DragEvent interface. crbug.com/498504 | 73 // FIXME: dataTransfer belongs on the DragEvent interface. crbug.com/498504 |
75 readonly attribute DataTransfer dataTransfer; | 74 readonly attribute DataTransfer dataTransfer; |
76 }; | 75 }; |
OLD | NEW |