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

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

Issue 304793003: use enum to specify deviceSource for fling animation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed desired #include Created 6 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: content/common/input/input_event_stream_validator.cc
diff --git a/content/common/input/input_event_stream_validator.cc b/content/common/input/input_event_stream_validator.cc
index b7dcbc2c50183fa460f801cbd3b45168c19a4603..5088b3175dfeee73b45c6b034e170566b8372af1 100644
--- a/content/common/input/input_event_stream_validator.cc
+++ b/content/common/input/input_event_stream_validator.cc
@@ -27,7 +27,7 @@ void InputEventStreamValidator::OnEvent(const WebInputEvent& event) {
if (WebInputEvent::isGestureEventType(event.type)) {
const WebGestureEvent& gesture_event =
static_cast<const WebGestureEvent&>(event);
- if (gesture_event.sourceDevice == blink::WebGestureEvent::Touchscreen) {
+ if (gesture_event.sourceDevice == blink::WebGestureDeviceTouchpad) {
if (!gesture_validator_.Validate(gesture_event, &error_message))
NOTREACHED() << error_message;
}

Powered by Google App Engine
This is Rietveld 408576698