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/TouchEvent.idl | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/dom/TouchEvent.idl')
-rw-r--r-- | Source/WebCore/dom/TouchEvent.idl | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/Source/WebCore/dom/TouchEvent.idl b/Source/WebCore/dom/TouchEvent.idl index 24955938d..81058357e 100644 --- a/Source/WebCore/dom/TouchEvent.idl +++ b/Source/WebCore/dom/TouchEvent.idl @@ -13,7 +13,7 @@ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR @@ -25,6 +25,7 @@ [ Conditional=TOUCH_EVENTS, + Constructor(DOMString type, optional TouchEventInit eventInitDict), ] interface TouchEvent : UIEvent { readonly attribute TouchList touches; readonly attribute TouchList targetTouches; @@ -34,17 +35,24 @@ readonly attribute boolean altKey; readonly attribute boolean metaKey; - void initTouchEvent([Default=Undefined] optional TouchList touches, - [Default=Undefined] optional TouchList targetTouches, - [Default=Undefined] optional TouchList changedTouches, - [Default=Undefined] optional DOMString type, - [Default=Undefined] optional DOMWindow view, - [Default=Undefined] optional long screenX, - [Default=Undefined] optional long screenY, - [Default=Undefined] optional long clientX, - [Default=Undefined] optional long clientY, - [Default=Undefined] optional boolean ctrlKey, - [Default=Undefined] optional boolean altKey, - [Default=Undefined] optional boolean shiftKey, - [Default=Undefined] optional boolean metaKey); + // FIXME: Using "undefined" as default parameter value is wrong. + void initTouchEvent(optional TouchList? touches = null, + optional TouchList? targetTouches = null, + optional TouchList? changedTouches = null, + optional DOMString type = "undefined", + optional DOMWindow? view = null, + optional long screenX = 0, + optional long screenY = 0, + optional long clientX = 0, + optional long clientY = 0, + optional boolean ctrlKey = false, + optional boolean altKey = false, + optional boolean shiftKey = false, + optional boolean metaKey = false); +}; + +dictionary TouchEventInit : UIEventInit { + TouchList? touches = null; + TouchList? targetTouches = null; + TouchList? changedTouches = null; }; |