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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2916893003: Bookkeep the pointer event listeners added to page (Closed)
Patch Set: Created 3 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/core/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index 74b38a460e8554b99ce89bff02e1e8b2cbff684a..eff8135816eeeedc863fe67cb06e8a77e890551c 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -1608,6 +1608,11 @@ unsigned Internals::touchEndOrCancelEventHandlerCount(Document* document) {
EventHandlerRegistry::kTouchEndOrCancelEventPassive);
}
+unsigned Internals::pointerEventHandlerCount(Document* document) {
dtapuska 2017/06/01 16:03:01 This should be able to be const.
eirage 2017/06/01 19:59:24 Done.
+ DCHECK(document);
+ return EventHandlerCount(*document, EventHandlerRegistry::kPointerEvent);
+}
+
static PaintLayer* FindLayerForGraphicsLayer(PaintLayer* search_root,
GraphicsLayer* graphics_layer,
IntSize* layer_offset,

Powered by Google App Engine
This is Rietveld 408576698