From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/dom/EventTarget.idl | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'Source/WebCore/dom/EventTarget.idl') 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 * * 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; +}; -- cgit v1.2.1