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

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

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/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index fdfc91a8a533f41b73511a0b794d81e87369f1fe..0eb0e411f9da35ed6cb9d42596f9336a0509a4d0 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -1641,18 +1641,19 @@ static unsigned EventHandlerCount(
return count;
}
-unsigned Internals::wheelEventHandlerCount(Document* document) {
+unsigned Internals::wheelEventHandlerCount(Document* document) const {
DCHECK(document);
return EventHandlerCount(*document,
EventHandlerRegistry::kWheelEventBlocking);
}
-unsigned Internals::scrollEventHandlerCount(Document* document) {
+unsigned Internals::scrollEventHandlerCount(Document* document) const {
DCHECK(document);
return EventHandlerCount(*document, EventHandlerRegistry::kScrollEvent);
}
-unsigned Internals::touchStartOrMoveEventHandlerCount(Document* document) {
+unsigned Internals::touchStartOrMoveEventHandlerCount(
+ Document* document) const {
DCHECK(document);
return EventHandlerCount(
*document, EventHandlerRegistry::kTouchStartOrMoveEventBlocking) +
@@ -1660,7 +1661,8 @@ unsigned Internals::touchStartOrMoveEventHandlerCount(Document* document) {
EventHandlerRegistry::kTouchStartOrMoveEventPassive);
}
-unsigned Internals::touchEndOrCancelEventHandlerCount(Document* document) {
+unsigned Internals::touchEndOrCancelEventHandlerCount(
+ Document* document) const {
DCHECK(document);
return EventHandlerCount(
*document, EventHandlerRegistry::kTouchEndOrCancelEventBlocking) +
@@ -1668,6 +1670,11 @@ unsigned Internals::touchEndOrCancelEventHandlerCount(Document* document) {
EventHandlerRegistry::kTouchEndOrCancelEventPassive);
}
+unsigned Internals::pointerEventHandlerCount(Document* document) const {
+ DCHECK(document);
+ return EventHandlerCount(*document, EventHandlerRegistry::kPointerEvent);
+}
+
static PaintLayer* FindLayerForGraphicsLayer(PaintLayer* search_root,
GraphicsLayer* graphics_layer,
IntSize* layer_offset,
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698