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

Unified Diff: content/browser/renderer_host/ui_events_helper.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/browser/renderer_host/ui_events_helper.cc
diff --git a/content/browser/renderer_host/ui_events_helper.cc b/content/browser/renderer_host/ui_events_helper.cc
index 00bc2f3ba8cca362121931fb4a6e7ae8c251ec9f..cf48945f39e79e7a1a78e271673616ca5edec9b9 100644
--- a/content/browser/renderer_host/ui_events_helper.cc
+++ b/content/browser/renderer_host/ui_events_helper.cc
@@ -233,7 +233,7 @@ blink::WebGestureEvent MakeWebGestureEventFromUIEvent(
NOTREACHED() << "Unknown gesture type: " << event.type();
}
- gesture_event.sourceDevice = blink::WebGestureEvent::Touchscreen;
+ gesture_event.sourceDevice = blink::WebGestureDeviceTouchpad;
gesture_event.modifiers = EventFlagsToWebEventModifiers(event.flags());
gesture_event.timeStampSeconds = event.time_stamp().InSecondsF();

Powered by Google App Engine
This is Rietveld 408576698