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

Unified Diff: content/browser/renderer_host/input/touch_emulator.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_emulator.cc
diff --git a/content/browser/renderer_host/input/touch_emulator.cc b/content/browser/renderer_host/input/touch_emulator.cc
index d22065e91996143003c35fcd4809b769bcc31ea9..82c438738adf4c828ae128c0008bf5205980622d 100644
--- a/content/browser/renderer_host/input/touch_emulator.cc
+++ b/content/browser/renderer_host/input/touch_emulator.cc
@@ -447,6 +447,14 @@ void TouchEmulator::FillTouchEventAndPoint(const WebMouseEvent& mouse_event) {
point.screenPosition.x = mouse_event.globalX;
point.position.y = mouse_event.y;
point.screenPosition.y = mouse_event.globalY;
+ // TODO(e_hakkinen): Leave only either tilt and tiltOrientation, tiltRad
+ // and tiltOrientationRad or tiltX and tiltY.
+ point.tilt = 0.f;
+ point.tiltRad = 0.f;
+ point.tiltOrientation = 0.f;
+ point.tiltOrientationRad = 0.f;
+ point.tiltX = 0.f;
+ point.tiltY = 0.f;
}
bool TouchEmulator::InPinchGestureMode() const {

Powered by Google App Engine
This is Rietveld 408576698