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 6ea29de25ac8536fd054b45af307ee58dc5cdebe..9bdea8a481fe9bc7e8d1b91040b856e634ffa85c 100644 |
--- a/content/common/input/gesture_event_stream_validator.cc |
+++ b/content/common/input/gesture_event_stream_validator.cc |
@@ -100,6 +100,13 @@ bool GestureEventStreamValidator::Validate(const blink::WebGestureEvent& event, |
default: |
break; |
} |
+ // TODO(wjmaclean): At some future point we may wish to consider adding a |
+ // 'continuity check', requiring that all events between an initial tap-down |
+ // and whatever terminates the sequence to have the same source device type, |
+ // and that touchpad gestures are only found on ScrollEvents. |
+ if (event.sourceDevice == blink::WebGestureDeviceUninitialized) |
+ error_msg->append("Gesture event source is uninitialized.\n"); |
+ |
return error_msg->empty(); |
} |