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

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: Removed browser-side plumbing, added tests. Created 4 years, 7 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 25426910387acfea5041238aafff449ac4a50384..44b9437f8a17f0f90a53e31897adc62062a963c2 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.h
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.h
@@ -66,6 +66,8 @@ public:
// Returns whether there is any touch on the screen.
bool isAnyTouchActive() const;
+ WebInputEventResult firstPrimaryPointerdownResult() { return m_primaryPointerdownResults.takeFirst(); }
+
private:
typedef HeapHashMap<int, Member<EventTarget>, WTF::IntHash<int>,
WTF::UnsignedWithZeroKeyHashTraits<int>> PointerCapturingMap;
@@ -162,6 +164,8 @@ private:
// all touch-points become inactive.
bool m_inCanceledStateForPointerTypeTouch;
+ Deque<WebInputEventResult> m_primaryPointerdownResults;
+
// 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
@@ -172,9 +176,9 @@ private:
PointerCapturingMap m_pointerCaptureTarget;
PointerCapturingMap m_pendingPointerCaptureTarget;
+
PointerEventFactory m_pointerEventFactory;
TouchEventManager m_touchEventManager;
-
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698