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

Unified Diff: third_party/WebKit/Source/core/frame/EventHandlerRegistry.h

Issue 2916893003: Bookkeep the pointer event listeners added to page (Closed)
Patch Set: fix rebase error Created 3 years, 6 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/frame/EventHandlerRegistry.h
diff --git a/third_party/WebKit/Source/core/frame/EventHandlerRegistry.h b/third_party/WebKit/Source/core/frame/EventHandlerRegistry.h
index 9c06400f9dceb706cec78213a53eac27fbab04a7..4c4d2bb255c13c8f28def3259955bfaa5d3bf8fc 100644
--- a/third_party/WebKit/Source/core/frame/EventHandlerRegistry.h
+++ b/third_party/WebKit/Source/core/frame/EventHandlerRegistry.h
@@ -14,7 +14,6 @@ namespace blink {
class AddEventListenerOptions;
class Document;
class EventTarget;
-class LocalFrame;
typedef HashCountedSet<UntracedMember<EventTarget>> EventTargetSet;
@@ -37,6 +36,7 @@ class CORE_EXPORT EventHandlerRegistry final
kTouchStartOrMoveEventPassive,
kTouchEndOrCancelEventBlocking,
kTouchEndOrCancelEventPassive,
+ kPointerEvent,
#if DCHECK_IS_ON()
// Additional event categories for verifying handler tracking logic.
kEventsForTesting,
@@ -97,7 +97,7 @@ class CORE_EXPORT EventHandlerRegistry final
// clients when we have added the first handler or removed the last one for
// a given event class. |hasActiveHandlers| can be used to distinguish
// between the two cases.
- void NotifyHasHandlersChanged(LocalFrame*,
+ void NotifyHasHandlersChanged(EventTarget*,
EventHandlerClass,
bool has_active_handlers);
@@ -113,7 +113,7 @@ class CORE_EXPORT EventHandlerRegistry final
const AddEventListenerOptions&,
EventTarget*);
- void UpdateEventHandlerInternal(ChangeOperation,
+ bool UpdateEventHandlerInternal(ChangeOperation,
EventHandlerClass,
EventTarget*);

Powered by Google App Engine
This is Rietveld 408576698