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 |