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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationAvailability.cpp

Issue 1942723004: Change EventTarget callback APIs for add/RemoveEventListenerInternal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win32 signed/unsigned issue Created 4 years, 7 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/modules/presentation/PresentationAvailability.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationAvailability.cpp b/third_party/WebKit/Source/modules/presentation/PresentationAvailability.cpp
index 77b9d9b0dfdc71ecd538e700e3e39f8141987578..164197c3e7924f46b8985a43813779bfd7d7b612 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationAvailability.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationAvailability.cpp
@@ -64,12 +64,11 @@ ExecutionContext* PresentationAvailability::getExecutionContext() const
return ActiveDOMObject::getExecutionContext();
}
-bool PresentationAvailability::addEventListenerInternal(const AtomicString& eventType, EventListener* listener, const EventListenerOptions& options)
+void PresentationAvailability::addedEventListener(const AtomicString& eventType, RegisteredEventListener& registeredListener)
{
+ EventTargetWithInlineData::addedEventListener(eventType, registeredListener);
if (eventType == EventTypeNames::change)
UseCounter::count(getExecutionContext(), UseCounter::PresentationAvailabilityChangeEventListener);
-
- return EventTarget::addEventListenerInternal(eventType, listener, options);
}
void PresentationAvailability::availabilityChanged(bool value)

Powered by Google App Engine
This is Rietveld 408576698