summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/UIEvent.idl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/UIEvent.idl')
-rw-r--r--Source/WebCore/dom/UIEvent.idl33
1 files changed, 14 insertions, 19 deletions
diff --git a/Source/WebCore/dom/UIEvent.idl b/Source/WebCore/dom/UIEvent.idl
index 8e724ea43..87b391528 100644
--- a/Source/WebCore/dom/UIEvent.idl
+++ b/Source/WebCore/dom/UIEvent.idl
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Apple Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -18,25 +18,20 @@
*/
[
- ConstructorConditional=DOM4_EVENTS_CONSTRUCTOR,
- ConstructorTemplate=Event,
+ Constructor(DOMString type, optional UIEventInit eventInitDict)
] interface UIEvent : Event {
- [InitializedByEventConstructor] readonly attribute DOMWindow view;
- [InitializedByEventConstructor] readonly attribute long detail;
+ readonly attribute DOMWindow view;
+ readonly attribute long detail;
- [ObjCLegacyUnnamedParameters] void initUIEvent([Default=Undefined] optional DOMString type,
- [Default=Undefined] optional boolean canBubble,
- [Default=Undefined] optional boolean cancelable,
- [Default=Undefined] optional DOMWindow view,
- [Default=Undefined] optional long detail);
+ // FIXME: Using "undefined" as default parameter value is wrong.
+ void initUIEvent(optional DOMString type = "undefined", optional boolean canBubble = false, optional boolean cancelable = false, optional DOMWindow? view = null, optional long detail = 0);
- // extensions
- readonly attribute long keyCode;
- readonly attribute long charCode;
- readonly attribute long layerX;
- readonly attribute long layerY;
- readonly attribute long pageX;
- readonly attribute long pageY;
- readonly attribute long which;
-};
+ readonly attribute long layerX;
+ readonly attribute long layerY;
+ readonly attribute long pageX;
+ readonly attribute long pageY;
+ // FIXME: This should be on KeyboardEvent only as per the specification but Firefox and Chrome
+ // still have this attribute on UIEvent as of December 2016.
+ readonly attribute long which;
+};