Chromium Code Reviews| 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 b95a674541df1958e44fbf2b6b823758568abed6..eccdbe0079f362d4392fe93365b88f4563cfbdcf 100644 |
| --- a/content/common/input/gesture_event_stream_validator.cc |
| +++ b/content/common/input/gesture_event_stream_validator.cc |
| @@ -62,13 +62,19 @@ bool GestureEventStreamValidator::Validate(const blink::WebGestureEvent& event, |
| error_msg->append("Missing tap end event\n"); |
| waiting_for_tap_end_ = true; |
| break; |
| - case WebInputEvent::GestureTap: |
| + case WebInputEvent::GestureTapUnconfirmed: |
| + if (!waiting_for_tap_end_) |
| + error_msg->append("Missing TapDown event before TapUnconfirmed\n"); |
| + break; |
| case WebInputEvent::GestureTapCancel: |
| if (!waiting_for_tap_end_) |
| - error_msg->append("Missing GestureTapDown event\n"); |
| + error_msg->append("Missing TapDown event before TapCancel\n"); |
| waiting_for_tap_end_ = false; |
| break; |
| + case WebInputEvent::GestureTap: |
| case WebInputEvent::GestureDoubleTap: |
| + // Both Tap and DoubleTap gestures may be synthetically inserted, and do |
| + // not require a preceding TapDown. |
|
tdresser
2014/09/16 18:03:46
Can this ever happen on Aura?
We don't do tap dis
jdduke (slow)
2014/09/16 19:00:46
You tell me :)
|
| waiting_for_tap_end_ = false; |
| break; |
| default: |