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

Unified Diff: content/common/input/gesture_event_stream_validator.cc

Issue 724313003: [Android] Always precede Tap gesture events with TapDown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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: content/common/input/gesture_event_stream_validator.cc
diff --git a/content/common/input/gesture_event_stream_validator.cc b/content/common/input/gesture_event_stream_validator.cc
index b485da4ee1739f58845ce7269acd42c3890c9cbe..09b88c8bb9de18c1cb158b0c762f6ea60902bfde 100644
--- a/content/common/input/gesture_event_stream_validator.cc
+++ b/content/common/input/gesture_event_stream_validator.cc
@@ -72,9 +72,13 @@ bool GestureEventStreamValidator::Validate(const blink::WebGestureEvent& event,
waiting_for_tap_end_ = false;
break;
case WebInputEvent::GestureTap:
+ if (!waiting_for_tap_end_)
+ error_msg->append("Missing TapDown event before Tap\n");
+ waiting_for_tap_end_ = false;
+ break;
case WebInputEvent::GestureDoubleTap:
- // Both Tap and DoubleTap gestures may be synthetically inserted, and do
- // not require a preceding TapDown.
+ // DoubleTap gestures may be synthetically inserted, and do not require a
+ // preceding TapDown.
waiting_for_tap_end_ = false;
break;
default:

Powered by Google App Engine
This is Rietveld 408576698