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

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

Issue 1989623002: Suppressed MEs for gestures from cancelled PEs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 6 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 28719781bebce414014301c846301fe9b35afeed..0282b186827a60b0fd57a24facacd722e9a28484 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.h
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.h
@@ -65,6 +65,11 @@ public:
// Returns whether there is any touch on the screen.
bool isAnyTouchActive() const;
+ // Returns true if the primary pointerdown corresponding to the given
+ // |uniqueTouchEventId| was canceled. Also drops stale ids from
+ // |m_touchIdsForCanceledPointerdowns|.
+ bool primaryPointerdownCanceled(uint32_t uniqueTouchEventId);
+
private:
typedef HeapHashMap<int, Member<EventTarget>, WTF::IntHash<int>,
WTF::UnsignedWithZeroKeyHashTraits<int>> PointerCapturingMap;
@@ -161,6 +166,8 @@ private:
// all touch-points become inactive.
bool m_inCanceledStateForPointerTypeTouch;
+ Deque<uint32_t> m_touchIdsForCanceledPointerdowns;
+
// 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
@@ -171,9 +178,9 @@ private:
PointerCapturingMap m_pointerCaptureTarget;
PointerCapturingMap m_pendingPointerCaptureTarget;
+
PointerEventFactory m_pointerEventFactory;
TouchEventManager m_touchEventManager;
-
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | third_party/WebKit/Source/core/input/PointerEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698