Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: third_party/WebKit/Source/core/events/MouseEvent.idl

Issue 1466563003: Make [TypeChecking=Interface] the default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 20 matching lines...) Expand all
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 readonly attribute short button; 34 readonly attribute short button;
35 readonly attribute unsigned short buttons; 35 readonly attribute unsigned short buttons;
36 readonly attribute EventTarget? relatedTarget; 36 readonly attribute EventTarget? relatedTarget;
37 boolean getModifierState(DOMString keyArg); 37 boolean getModifierState(DOMString keyArg);
38 38
39 // https://w3c.github.io/uievents/#idl-interface-MouseEvent-initializers 39 // https://w3c.github.io/uievents/#idl-interface-MouseEvent-initializers
40 // TODO(philipj): None of the initMouseEvent() arguments should be optional. 40 // TODO(philipj): None of the initMouseEvent() arguments should be optional.
41 [CallWith=ScriptState, Measure] void initMouseEvent([Default=Undefined] opti onal DOMString type, 41 [CallWith=ScriptState, Measure, LegacyInterfaceTypeChecking] void initMouseE vent([Default=Undefined] optional DOMString type,
42 [Default=Undefined] opti onal boolean bubbles, 42 [Default=Undefined] optional boolean bubbles,
43 [Default=Undefined] opti onal boolean cancelable, 43 [Default=Undefined] optional boolean cancelable,
44 [Default=Undefined] opti onal Window? view, 44 [Default=Undefined] optional Window? view,
45 [Default=Undefined] opti onal long detail, 45 [Default=Undefined] optional long detail,
46 [Default=Undefined] opti onal long screenX, 46 [Default=Undefined] optional long screenX,
47 [Default=Undefined] opti onal long screenY, 47 [Default=Undefined] optional long screenY,
48 [Default=Undefined] opti onal long clientX, 48 [Default=Undefined] optional long clientX,
49 [Default=Undefined] opti onal long clientY, 49 [Default=Undefined] optional long clientY,
50 [Default=Undefined] opti onal boolean ctrlKey, 50 [Default=Undefined] optional boolean ctrlKey,
51 [Default=Undefined] opti onal boolean altKey, 51 [Default=Undefined] optional boolean altKey,
52 [Default=Undefined] opti onal boolean shiftKey, 52 [Default=Undefined] optional boolean shiftKey,
53 [Default=Undefined] opti onal boolean metaKey, 53 [Default=Undefined] optional boolean metaKey,
54 [Default=Undefined] opti onal unsigned short button, 54 [Default=Undefined] optional unsigned short button,
55 [Default=Undefined] opti onal EventTarget? relatedTarget); 55 [Default=Undefined] optional EventTarget? relatedTarget);
56 56
57 // CSSOM View Module 57 // CSSOM View Module
58 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-mouseevent-interfac e 58 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-mouseevent-interfac e
59 // TODO(philipj): These attributes should be of type double, and the spec 59 // TODO(philipj): These attributes should be of type double, and the spec
60 // also redefines screenX/Y and clientX/Y as double. 60 // also redefines screenX/Y and clientX/Y as double.
61 readonly attribute long pageX; 61 readonly attribute long pageX;
62 readonly attribute long pageY; 62 readonly attribute long pageY;
63 [MeasureAs=MouseEventX] readonly attribute long x; 63 [MeasureAs=MouseEventX] readonly attribute long x;
64 [MeasureAs=MouseEventY] readonly attribute long y; 64 [MeasureAs=MouseEventY] readonly attribute long y;
65 [MeasureAs=MouseEventOffsetX] readonly attribute long offsetX; 65 [MeasureAs=MouseEventOffsetX] readonly attribute long offsetX;
66 [MeasureAs=MouseEventOffsetY] readonly attribute long offsetY; 66 [MeasureAs=MouseEventOffsetY] readonly attribute long offsetY;
67 67
68 // Pointer Lock 68 // Pointer Lock
69 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions -to-the-mouseevent-interface 69 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions -to-the-mouseevent-interface
70 [MeasureAs=MouseEventMovementX] readonly attribute long movementX; 70 [MeasureAs=MouseEventMovementX] readonly attribute long movementX;
71 [MeasureAs=MouseEventMovementY] readonly attribute long movementY; 71 [MeasureAs=MouseEventMovementY] readonly attribute long movementY;
72 72
73 // Non-standard 73 // Non-standard
74 [MeasureAs=MouseEventFromElement] readonly attribute Node fromElement; 74 [MeasureAs=MouseEventFromElement] readonly attribute Node fromElement;
75 [MeasureAs=MouseEventToElement] readonly attribute Node toElement; 75 [MeasureAs=MouseEventToElement] readonly attribute Node toElement;
76 [MeasureAs=MouseEventWhich] readonly attribute long which; 76 [MeasureAs=MouseEventWhich] readonly attribute long which;
77 [DeprecateAs=PrefixedMouseEventMovementX, ImplementedAs=movementX] readonly attribute long webkitMovementX; 77 [DeprecateAs=PrefixedMouseEventMovementX, ImplementedAs=movementX] readonly attribute long webkitMovementX;
78 [DeprecateAs=PrefixedMouseEventMovementY, ImplementedAs=movementY] readonly attribute long webkitMovementY; 78 [DeprecateAs=PrefixedMouseEventMovementY, ImplementedAs=movementY] readonly attribute long webkitMovementY;
79 [Measure] readonly attribute long layerX; 79 [Measure] readonly attribute long layerX;
80 [Measure] readonly attribute long layerY; 80 [Measure] readonly attribute long layerY;
81 }; 81 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/KeyboardEvent.idl ('k') | third_party/WebKit/Source/core/events/MutationEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698