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

Unified Diff: content/browser/renderer_host/input/web_input_event_builders_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/input/web_input_event_builders_android.cc
diff --git a/content/browser/renderer_host/input/web_input_event_builders_android.cc b/content/browser/renderer_host/input/web_input_event_builders_android.cc
index 0e2615af3ee30d6e847d0a1f0d351be5a358516b..a76386d30cf3276085ccb3ae54539155027cedd8 100644
--- a/content/browser/renderer_host/input/web_input_event_builders_android.cc
+++ b/content/browser/renderer_host/input/web_input_event_builders_android.cc
@@ -120,7 +120,8 @@ WebMouseEvent WebMouseEventBuilder::Build(WebInputEvent::Type type,
int pointer_id,
float pressure,
float orientation_rad,
- float tilt_rad,
+ float tilt_x,
+ float tilt_y,
int action_button,
int tool_type) {
DCHECK(WebInputEvent::IsMouseEventType(type));
@@ -145,8 +146,8 @@ WebMouseEvent WebMouseEventBuilder::Build(WebInputEvent::Type type,
}
ui::SetWebPointerPropertiesFromMotionEventData(result, pointer_id, pressure,
- orientation_rad, tilt_rad,
- button, tool_type);
+ orientation_rad, tilt_x,
+ tilt_y, button, tool_type);
return result;
}

Powered by Google App Engine
This is Rietveld 408576698