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

Unified Diff: content/browser/renderer_host/input/touch_emulator.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/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 ec6057b8ce2fe02896e090aa1f8d122998cd703a..e95331c8caade49ecdba317c84265f93bcfe8a12 100644
--- a/content/browser/renderer_host/input/touch_emulator.cc
+++ b/content/browser/renderer_host/input/touch_emulator.cc
@@ -437,6 +437,8 @@ void TouchEmulator::FillTouchEventAndPoint(const WebMouseEvent& mouse_event) {
point.radiusY = 0.5f * cursor_size_.height();
point.force = 1.f;
point.rotationAngle = 0.f;
+ point.tilt = 0.f;
+ point.tiltDirection = 0.f;
point.position.x = mouse_event.x;
point.screenPosition.x = mouse_event.globalX;
point.position.y = mouse_event.y;
« no previous file with comments | « content/browser/renderer_host/input/motion_event_web.cc ('k') | content/browser/renderer_host/input/web_input_event_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698