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 |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 * Library General Public License for more details. | 12 * Library General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
15 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
18 */ | 18 */ |
19 | 19 |
20 // https://w3c.github.io/uievents/#interface-MouseEvent | 20 // https://w3c.github.io/uievents/#interface-MouseEvent |
21 | 21 |
22 [ | 22 [ |
23 Constructor(DOMString type, optional MouseEventInit eventInitDict), | 23 Constructor(DOMString type, optional MouseEventInit eventInitDict), |
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 pageX; | |
Rick Byers
2015/06/23 19:33:00
nit: Philip has been trying to align the interface
dtapuska
2015/06/23 19:36:39
I was trying to keep the idl matching the spec (fo
Rick Byers
2015/06/23 19:44:46
The official home of this event definition is http
philipj_slow
2015/07/01 14:17:46
I made a mistake when cleaning up this file, I mis
dtapuska
2015/07/02 17:32:35
Done.
| |
29 readonly attribute long pageY; | |
28 readonly attribute long clientX; | 30 readonly attribute long clientX; |
29 readonly attribute long clientY; | 31 readonly attribute long clientY; |
30 readonly attribute boolean ctrlKey; | 32 readonly attribute boolean ctrlKey; |
31 readonly attribute boolean shiftKey; | 33 readonly attribute boolean shiftKey; |
32 readonly attribute boolean altKey; | 34 readonly attribute boolean altKey; |
33 readonly attribute boolean metaKey; | 35 readonly attribute boolean metaKey; |
34 readonly attribute short button; | 36 readonly attribute short button; |
35 readonly attribute unsigned short buttons; | 37 readonly attribute unsigned short buttons; |
36 readonly attribute EventTarget? relatedTarget; | 38 readonly attribute EventTarget? relatedTarget; |
37 // TODO(philipj): boolean getModifierState(DOMString keyArg); | 39 // TODO(philipj): boolean getModifierState(DOMString keyArg); |
(...skipping 24 matching lines...) Expand all Loading... | |
62 // Non-standard | 64 // Non-standard |
63 [MeasureAs=MouseEventOffsetX] readonly attribute long offsetX; | 65 [MeasureAs=MouseEventOffsetX] readonly attribute long offsetX; |
64 [MeasureAs=MouseEventOffsetY] readonly attribute long offsetY; | 66 [MeasureAs=MouseEventOffsetY] readonly attribute long offsetY; |
65 [MeasureAs=MouseEventX] readonly attribute long x; | 67 [MeasureAs=MouseEventX] readonly attribute long x; |
66 [MeasureAs=MouseEventY] readonly attribute long y; | 68 [MeasureAs=MouseEventY] readonly attribute long y; |
67 [MeasureAs=MouseEventFromElement] readonly attribute Node fromElement; | 69 [MeasureAs=MouseEventFromElement] readonly attribute Node fromElement; |
68 [MeasureAs=MouseEventToElement] readonly attribute Node toElement; | 70 [MeasureAs=MouseEventToElement] readonly attribute Node toElement; |
69 [MeasureAs=MouseEventWhich] readonly attribute long which; | 71 [MeasureAs=MouseEventWhich] readonly attribute long which; |
70 [DeprecateAs=PrefixedMouseEventMovementX, ImplementedAs=movementX] readonly attribute long webkitMovementX; | 72 [DeprecateAs=PrefixedMouseEventMovementX, ImplementedAs=movementX] readonly attribute long webkitMovementX; |
71 [DeprecateAs=PrefixedMouseEventMovementY, ImplementedAs=movementY] readonly attribute long webkitMovementY; | 73 [DeprecateAs=PrefixedMouseEventMovementY, ImplementedAs=movementY] readonly attribute long webkitMovementY; |
74 [MeasureAs=MouseEventLayerX] readonly attribute long layerX; | |
philipj_slow
2015/07/01 14:17:46
I would suggest just using [Measure] and using the
dtapuska
2015/07/02 17:32:35
Done.
| |
75 [MeasureAs=MouseEventLayerY] readonly attribute long layerY; | |
72 | 76 |
73 // FIXME: dataTransfer belongs on the DragEvent interface. crbug.com/498504 | 77 // FIXME: dataTransfer belongs on the DragEvent interface. crbug.com/498504 |
74 readonly attribute DataTransfer dataTransfer; | 78 readonly attribute DataTransfer dataTransfer; |
75 }; | 79 }; |
OLD | NEW |