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

Unified Diff: content/browser/renderer_host/input/touch_event_queue.cc

Issue 1187273004: Pass MotionEvent tilt angles to Blink on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/touch_event_queue.cc
diff --git a/content/browser/renderer_host/input/touch_event_queue.cc b/content/browser/renderer_host/input/touch_event_queue.cc
index b69c4c3b9f321615e7d419f54fd30630258b7a6e..7914c02e104adf2c44ec7d3ca550da7f66b26050 100644
--- a/content/browser/renderer_host/input/touch_event_queue.cc
+++ b/content/browser/renderer_host/input/touch_event_queue.cc
@@ -55,7 +55,15 @@ bool HasPointChanged(const WebTouchPoint& point_1,
point_1.radiusX != point_2.radiusX ||
point_1.radiusY != point_2.radiusY ||
point_1.rotationAngle != point_2.rotationAngle ||
- point_1.force != point_2.force) {
+ point_1.force != point_2.force ||
+ // TODO(e_hakkinen): Leave only either tilt and tiltOrientation, tiltRad
+ // and tiltOrientationRad or tiltX and tiltY.
+ point_1.tilt != point_2.tilt ||
+ point_1.tiltRad != point_2.tiltRad ||
+ point_1.tiltOrientation != point_2.tiltOrientation ||
+ point_1.tiltOrientationRad != point_2.tiltOrientationRad ||
+ point_1.tiltX != point_2.tiltX ||
+ point_1.tiltY != point_2.tiltY) {
return true;
}
return false;

Powered by Google App Engine
This is Rietveld 408576698