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

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

Issue 2220043002: Added PointerEvent.hasPointerCapture API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added an entry to global-interface-listing 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
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 dea2939a4284ce09dd0d891e7a869f0eb3164f1a..69ccf1e443c37e73d6ace7ba58d4915ea3b870d8 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -753,6 +753,11 @@ void PointerEventManager::releasePointerCapture(int pointerId, EventTarget* targ
releasePointerCapture(pointerId);
}
+bool PointerEventManager::hasPointerCapture(int pointerId, EventTarget* target)
+{
+ return m_pendingPointerCaptureTarget.get(pointerId) == target;
+}
+
void PointerEventManager::releasePointerCapture(int pointerId)
{
m_pendingPointerCaptureTarget.remove(pointerId);

Powered by Google App Engine
This is Rietveld 408576698