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

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: Make PointerEventManager a GC object 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..219c3382d0a0f0dd3f296948aac6c403405a8996 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.h
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.h
@@ -20,9 +20,8 @@ class LocalFrame;
// This class takes care of dispatching all pointer events and keeps track of
// properties of active pointer events.
-class CORE_EXPORT PointerEventManager {
+class CORE_EXPORT PointerEventManager : public GarbageCollectedFinalized<EventHandler> {
WTF_MAKE_NONCOPYABLE(PointerEventManager);
- DISALLOW_NEW();
public:
explicit PointerEventManager(LocalFrame*);
~PointerEventManager();
@@ -128,6 +127,10 @@ private:
const PlatformMouseEvent& = PlatformMouseEvent(),
bool sendMouseEvent = false);
+ // Try to immediately send the got/lostpointercapture without boundary
+ // events.
+ void immediatelyProcessPendingPointerCapture(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
@@ -150,7 +153,11 @@ private:
EventTarget*,
PointerEvent*,
bool checkForListener = false);
- void releasePointerCapture(int);
+ void modifyPendingPointerCapture(int pointerId, EventTarget*);
+ // 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