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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.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/EventHandler.h
diff --git a/third_party/WebKit/Source/core/input/EventHandler.h b/third_party/WebKit/Source/core/input/EventHandler.h
index c69fa8be7af779da2296c4a02307533f6f314d51..3b41a48db070af3a69f2ecf41722b163ef4d24b5 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.h
+++ b/third_party/WebKit/Source/core/input/EventHandler.h
@@ -237,6 +237,7 @@ private:
HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::EventType);
void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*);
+ WebInputEventResult handleGestureTapDown(const GestureEventWithHitTestResults&);
WebInputEventResult handleGestureTap(const GestureEventWithHitTestResults&);
WebInputEventResult handleGestureLongPress(const GestureEventWithHitTestResults&);
WebInputEventResult handleGestureLongTap(const GestureEventWithHitTestResults&);
@@ -463,6 +464,11 @@ private:
// scroll which shouldn't propagate can't cause any element to
// scroll other than the |m_previousGestureScrolledNode|.
bool m_deltaConsumedForScrollSequence;
+
+ // Set on GestureTapDown if the |pointerdown| event corresponding to the
+ // triggering |touchstart| event was canceled. This suppresses mouse event
+ // firing for the current gesure sequence (i.e. until next GestureTapDown).
tdresser 2016/05/27 18:26:32 gesure -> gesture.
mustaq 2016/06/02 19:26:26 Done.
+ bool m_suppressMouseEventsFromGestures;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698