| 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()|.
|
|
|