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

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

Issue 755403006: Added experimental Touch.tilt, Touch.tiltDirection support for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 fc6509b1ae937070411eb2f60e9c90c7dbabd785..b4718dd0abdb43cc8ada44f91216d3427a0d8c23 100644
--- a/content/browser/renderer_host/ui_events_helper.cc
+++ b/content/browser/renderer_host/ui_events_helper.cc
@@ -113,6 +113,7 @@ bool MakeUITouchEventsFromWebTouchEvents(
point.radiusX,
point.radiusY,
point.rotationAngle,
+ point.tilt,
point.force);
uievent->set_latency(touch_with_latency.latency);
list->push_back(uievent);
@@ -168,6 +169,7 @@ blink::WebTouchPoint* UpdateWebTouchEventFromUIEvent(
point->radiusX = std::max(1.f, event.radius_x());
point->radiusY = std::max(1.f, event.radius_y());
point->rotationAngle = event.rotation_angle();
+ point->tilt = event.tilt();
point->force = event.force();
// Update the location and state of the point.

Powered by Google App Engine
This is Rietveld 408576698