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

Unified Diff: third_party/WebKit/Source/core/input/PointerEventManager.cpp

Issue 2274253002: Added counters for pointer boundary events fired. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added hasProcessedPendingPointerCapture API. Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Source/core/input/PointerEventManager.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/PointerEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/PointerEventManager.cpp b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
index 446af06ceb533ac6c6355da509b139e620ea5a19..6635c14d1ec4f4bdaef2cef775c2d35c542c5fd3 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -760,11 +760,16 @@ void PointerEventManager::releasePointerCapture(int pointerId, EventTarget* targ
releasePointerCapture(pointerId);
}
-bool PointerEventManager::hasPointerCapture(int pointerId, EventTarget* target)
+bool PointerEventManager::hasPointerCapture(int pointerId, const EventTarget* target) const
{
return m_pendingPointerCaptureTarget.get(pointerId) == target;
}
+bool PointerEventManager::hasProcessedPointerCapture(int pointerId, const EventTarget* target) const
+{
+ return m_pointerCaptureTarget.get(pointerId) == target;
Navid Zolghadr 2016/08/25 15:53:23 This doesn't seem enough either. It has other blin
mustaq 2016/08/25 17:38:01 Changed the UseCounter condition instead. I kept m
+}
+
void PointerEventManager::releasePointerCapture(int pointerId)
{
m_pendingPointerCaptureTarget.remove(pointerId);
« no previous file with comments | « third_party/WebKit/Source/core/input/PointerEventManager.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698