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

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

Issue 2147263003: Send got/lostpointercapture immediately if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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.h
diff --git a/third_party/WebKit/Source/core/input/PointerEventManager.h b/third_party/WebKit/Source/core/input/PointerEventManager.h
index 0282b186827a60b0fd57a24facacd722e9a28484..0db257bf15d57c59af4a3ac083a925833b865b25 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.h
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.h
@@ -128,6 +128,10 @@ private:
const PlatformMouseEvent& = PlatformMouseEvent(),
bool sendMouseEvent = false);
+ // Try to immediately send the got/lostpointercapture without boundary
+ // events.
+ void immediateProcessPendingPointerCapture(int pointerId);
+
// Processes the capture state of a pointer, updates node under
// pointer, and sends corresponding boundary events for pointer if
// setPointerPosition is true. It also sends corresponding boundary events
@@ -151,6 +155,10 @@ private:
PointerEvent*,
bool checkForListener = false);
void releasePointerCapture(int);
+ // Returns true if capture target and pending capture target were different.
+ bool getPointerCaptureState(int pointerId,
+ EventTarget** pointerCaptureTarget,
+ EventTarget** pendingPointerCaptureTarget);
// NOTE: If adding a new field to this class please ensure that it is
// cleared in |PointerEventManager::clear()|.

Powered by Google App Engine
This is Rietveld 408576698