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

Unified Diff: content/renderer/pepper/event_conversion.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: Remove unused code (event_sender.cc) Created 5 years, 9 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/renderer/pepper/event_conversion.cc
diff --git a/content/renderer/pepper/event_conversion.cc b/content/renderer/pepper/event_conversion.cc
index 164e33e40ee905ed1f3528a11865a5d7d13a7fd3..c93644dfeb153da043375a979d8061527f52861b 100644
--- a/content/renderer/pepper/event_conversion.cc
+++ b/content/renderer/pepper/event_conversion.cc
@@ -241,6 +241,8 @@ void SetPPTouchPoints(const WebTouchPoint* touches,
pp_pt.radius.x = touch_point.radiusX;
pp_pt.radius.y = touch_point.radiusY;
pp_pt.rotation_angle = touch_point.rotationAngle;
+ pp_pt.tilt = touch_point.tilt;
+ pp_pt.tiltDirection = touch_point.tiltDirection;
pp_pt.pressure = touch_point.force;
result->push_back(pp_pt);
}
@@ -279,6 +281,8 @@ WebTouchPoint CreateWebTouchPoint(const PP_TouchPoint& pp_pt,
pt.radiusX = pp_pt.radius.x;
pt.radiusY = pp_pt.radius.y;
pt.rotationAngle = pp_pt.rotation_angle;
+ pt.tilt = pp_pt.tilt;
+ pt.tiltDirection = pp_pt.tiltDirection;
pt.state = state;
return pt;
}

Powered by Google App Engine
This is Rietveld 408576698