| 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 635113cd9ff7cef4d430fb68cbc14b9472ce3f99..b158c868da347f803efd8f03cb7c820f9f395ec7 100644
|
| --- a/third_party/WebKit/Source/core/input/PointerEventManager.h
|
| +++ b/third_party/WebKit/Source/core/input/PointerEventManager.h
|
| @@ -39,8 +39,13 @@ public:
|
| const double width, const double height,
|
| const double clientX, const double clientY);
|
|
|
| - void sendTouchCancelPointerEvent(EventTarget*,
|
| - const PlatformTouchPoint&);
|
| + // Inhibits firing of touch-type PointerEvents until unblocked by unblockTouchPointers(). Also
|
| + // sends pointercancels for existing touch-type PointerEvents.
|
| + // See: www.w3.org/TR/pointerevents/#declaring-candidate-regions-for-default-touch-behaviors
|
| + void blockTouchPointers();
|
| +
|
| + // Enables firing of touch-type PointerEvents after they were inhibited by blockTouchPointers().
|
| + void unblockTouchPointers();
|
|
|
| // Sends node transition events mouseout/leave/over/enter to the
|
| // corresponding targets. This function sends pointerout/leave/over/enter
|
| @@ -135,6 +140,10 @@ private:
|
| // https://w3c.github.io/pointerevents/#compatibility-mapping-with-mouse-events
|
| bool m_preventMouseEventForPointerType[static_cast<size_t>(WebPointerProperties::PointerType::LastEntry) + 1];
|
|
|
| + // Set upon sending a pointercancel for touch, prevents PE dispatches for touches until
|
| + // all touch-points become inactive.
|
| + bool m_inCanceledStateForPointerTypeTouch;
|
| +
|
| // Note that this map keeps track of node under pointer with id=1 as well
|
| // which might be different than m_nodeUnderMouse in EventHandler. That one
|
| // keeps track of any compatibility mouse event positions but this map for
|
|
|