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

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

Issue 1800143002: Notify Blink about start of gesture scroll through a queued event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, fixed input_router_imp_unittest Created 4 years, 9 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 deebe07536a58eca3c31f71960ca4da77e6bf262..05def501118bdd0e99cfb2a818f687ca83609fa8 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(PassRefPtrWillBeRawPtr<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
@@ -134,6 +139,10 @@ private:
// https://w3c.github.io/pointerevents/#compatibility-mapping-with-mouse-events
bool m_preventMouseEventForPointerTypeMouse;
+ // 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

Powered by Google App Engine
This is Rietveld 408576698