diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/dom/UIEvent.idl | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/dom/UIEvent.idl')
-rw-r--r-- | Source/WebCore/dom/UIEvent.idl | 33 |
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; +}; |