Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Unified Diff: third_party/WebKit/Source/core/events/EventTarget.h

Issue 1922093003: Add AddEventListenerOptions addEventListenerOptions interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/events/EventTarget.h
diff --git a/third_party/WebKit/Source/core/events/EventTarget.h b/third_party/WebKit/Source/core/events/EventTarget.h
index 827faa27bc756f05a97cfcc0991302a38498cf99..6e41691a6cc15132f9c3787fdb1e0f2586f2ff21 100644
--- a/third_party/WebKit/Source/core/events/EventTarget.h
+++ b/third_party/WebKit/Source/core/events/EventTarget.h
@@ -114,8 +114,8 @@ public:
virtual MessagePort* toMessagePort();
bool addEventListener(const AtomicString& eventType, EventListener*, bool useCapture = false);
- bool addEventListener(const AtomicString& eventType, EventListener*, const EventListenerOptionsOrBoolean&);
- bool addEventListener(const AtomicString& eventType, EventListener*, EventListenerOptions&);
+ bool addEventListener(const AtomicString& eventType, EventListener*, const AddEventListenerOptionsOrBoolean&);
+ bool addEventListener(const AtomicString& eventType, EventListener*, AddEventListenerOptions&);
bool removeEventListener(const AtomicString& eventType, EventListener*, bool useCapture = false);
bool removeEventListener(const AtomicString& eventType, EventListener*, const EventListenerOptionsOrBoolean&);
@@ -151,8 +151,9 @@ public:
protected:
EventTarget();
- virtual bool addEventListenerInternal(const AtomicString& eventType, EventListener*, const EventListenerOptions&);
+ virtual bool addEventListenerInternal(const AtomicString& eventType, EventListener*, const AddEventListenerOptions&);
virtual bool removeEventListenerInternal(const AtomicString& eventType, EventListener*, const EventListenerOptions&);
+ virtual void removedEventListener(const AtomicString& eventType, const RegisteredEventListener&);
virtual DispatchEventResult dispatchEventInternal(Event*);
// Subclasses should likely not override these themselves; instead, they should subclass EventTargetWithInlineData.

Powered by Google App Engine
This is Rietveld 408576698