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

Unified Diff: core/events/UIEvent.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/events/TransitionEventInit.idl ('k') | core/events/UIEventInit.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/events/UIEvent.idl
diff --git a/core/events/UIEvent.idl b/core/events/UIEvent.idl
index 4d025d8050b968d75e006eb29804a3a86692fd14..7cb51a83bc6b87dd553eb9564e3f1fc384c7ce32 100644
--- a/core/events/UIEvent.idl
+++ b/core/events/UIEvent.idl
@@ -17,26 +17,25 @@
* Boston, MA 02110-1301, USA.
*/
+// https://w3c.github.io/uievents/#interface-UIEvent
+
[
- EventConstructor,
+ Constructor(DOMString type, optional UIEventInit eventInitDict)
] interface UIEvent : Event {
- [InitializedByEventConstructor] readonly attribute Window? view;
- [InitializedByEventConstructor] readonly attribute long detail;
-
- void initUIEvent([Default=Undefined] optional DOMString type,
- [Default=Undefined] optional boolean canBubble,
- [Default=Undefined] optional boolean cancelable,
- [Default=Undefined] optional Window view,
- [Default=Undefined] optional long detail);
+ readonly attribute Window? view;
+ readonly attribute long detail;
+ [RuntimeEnabled=InputDevice] readonly attribute InputDevice? sourceDevice;
- // Non-standard
- [MeasureAs=UIEventLayerX] readonly attribute long layerX;
- [MeasureAs=UIEventLayerY] readonly attribute long layerY;
- [MeasureAs=UIEventPageX] readonly attribute long pageX;
- [MeasureAs=UIEventPageY] readonly attribute long pageY;
+ // https://w3c.github.io/uievents/#idl-interface-UIEvent-initializers
+ // TODO(philipj): None of the initUIEvent() arguments should be optional.
+ [Measure] void initUIEvent([Default=Undefined] optional DOMString type,
+ [Default=Undefined] optional boolean bubbles,
+ [Default=Undefined] optional boolean cancelable,
+ [Default=Undefined] optional Window? view,
+ [Default=Undefined] optional long detail);
// FIXME: these belong on the KeyboardEvent interface
- readonly attribute long keyCode;
- readonly attribute long charCode;
- readonly attribute long which;
+ [MeasureAs=UIEventCharCode] readonly attribute long charCode;
+ [MeasureAs=UIEventKeyCode] readonly attribute long keyCode;
+ [MeasureAs=UIEventWhich] readonly attribute long which;
};
« no previous file with comments | « core/events/TransitionEventInit.idl ('k') | core/events/UIEventInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698