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/EventTarget.idl | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/dom/EventTarget.idl')
-rw-r--r-- | Source/WebCore/dom/EventTarget.idl | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/Source/WebCore/dom/EventTarget.idl b/Source/WebCore/dom/EventTarget.idl index 5d9a3e5bf..2c9384533 100644 --- a/Source/WebCore/dom/EventTarget.idl +++ b/Source/WebCore/dom/EventTarget.idl @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. + * Copyright (C) 2006-2017 Apple Inc. All rights reserved. * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> * * This library is free software; you can redistribute it and/or @@ -18,21 +18,24 @@ * Boston, MA 02110-1301, USA. */ -// Introduced in DOM Level 2: [ - NoInterfaceObject, - ObjCProtocol, - CPPPureInterface, CustomToJSObject, + Exposed=(Window,Worker), + IsImmutablePrototypeExoticObjectOnPrototype, + JSCustomHeader, + JSCustomMarkFunction, JSCustomToNativeObject, - EventTarget, ] interface EventTarget { - [ObjCLegacyUnnamedParameters] void addEventListener(DOMString type, - EventListener listener, - optional boolean useCapture); - [ObjCLegacyUnnamedParameters] void removeEventListener(DOMString type, - EventListener listener, - optional boolean useCapture); - [RaisesException] boolean dispatchEvent(Event event); + [ImplementedAs=addEventListenerForBindings] void addEventListener([AtomicString] DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = false); + [ImplementedAs=removeEventListenerForBindings] void removeEventListener([AtomicString] DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = false); + [ImplementedAs=dispatchEventForBindings, MayThrowException] boolean dispatchEvent(Event event); }; +dictionary EventListenerOptions { + boolean capture = false; +}; + +dictionary AddEventListenerOptions : EventListenerOptions { + boolean passive = false; + boolean once = false; +}; |