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

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

Issue 815503002: Add counters for addEventListener/removeEventListener optional arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years 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
« no previous file with comments | « no previous file | Source/core/events/EventTarget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/EventTarget.h
diff --git a/Source/core/events/EventTarget.h b/Source/core/events/EventTarget.h
index b473b1209ddf5c61b23de93ab4d624e85e814208..f7f5c27dcea50179b53d4a6b22571f9b968fe406 100644
--- a/Source/core/events/EventTarget.h
+++ b/Source/core/events/EventTarget.h
@@ -109,11 +109,11 @@ public:
// FIXME: first 2 args to addEventListener and removeEventListener should
// be required (per spec), but throwing TypeError breaks legacy content.
// http://crbug.com/353484
- bool addEventListener() { return false; }
- bool addEventListener(const AtomicString& eventType) { return false; }
+ bool addEventListener();
+ bool addEventListener(const AtomicString& eventType);
virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<EventListener>, bool useCapture = false);
- bool removeEventListener() { return false; }
- bool removeEventListener(const AtomicString& eventType) { return false; }
+ bool removeEventListener();
+ bool removeEventListener(const AtomicString& eventType);
virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<EventListener>, bool useCapture = false);
virtual void removeAllEventListeners();
virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>);
« no previous file with comments | « no previous file | Source/core/events/EventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698