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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 2860793003: Pass through tilt_x and tilt_y to blink (Closed)
Patch Set: Pass through tilt_x and tilt_y to blink Created 3 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/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index ae875fcb6ef94a83829d86f8802e9ff0e3d91f30..cf106d34919191d3b55dc944749d2678d835fb39 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -1772,16 +1772,11 @@ void RenderWidgetHostViewAndroid::SendMouseEvent(
blink::WebMouseEvent mouse_event = WebMouseEventBuilder::Build(
webMouseEventType,
ui::EventTimeStampToSeconds(motion_event.GetEventTime()),
- motion_event.GetX(0),
- motion_event.GetY(0),
- motion_event.GetFlags(),
+ motion_event.GetX(0), motion_event.GetY(0), motion_event.GetFlags(),
motion_event.GetButtonState() ? 1 : 0 /* click count */,
- motion_event.GetPointerId(0),
- motion_event.GetPressure(0),
- motion_event.GetOrientation(0),
- motion_event.GetTilt(0),
- action_button,
- motion_event.GetToolType(0));
+ motion_event.GetPointerId(0), motion_event.GetPressure(0),
+ motion_event.GetOrientation(0), motion_event.GetTiltX(0),
+ motion_event.GetTiltY(0), action_button, motion_event.GetToolType(0));
if (!host_ || !host_->delegate())
return;
« no previous file with comments | « content/browser/renderer_host/input/web_input_event_util_unittest.cc ('k') | ui/events/android/motion_event_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698