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

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

Issue 349463002: [Android] Map raw touch coordinates to global gesture locations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/web_input_event_util.cc
diff --git a/content/browser/renderer_host/input/web_input_event_util.cc b/content/browser/renderer_host/input/web_input_event_util.cc
index 5994b7ffd6ad5ec99d337ce4f6aad98621e87332..524cf001431e4c0670b890576ffbb5b809da215d 100644
--- a/content/browser/renderer_host/input/web_input_event_util.cc
+++ b/content/browser/renderer_host/input/web_input_event_util.cc
@@ -238,6 +238,8 @@ WebGestureEvent CreateWebGestureEventFromGestureEventData(
WebGestureEvent gesture;
gesture.x = data.x;
gesture.y = data.y;
+ gesture.globalX = data.raw_x;
+ gesture.globalY = data.raw_y;
tdresser 2014/06/19 21:12:37 The ui::GestureEvent |root_location| should be pas
jdduke (slow) 2014/06/19 21:43:34 Looks like we already populate that value: https:/
gesture.timeStampSeconds = (data.time - base::TimeTicks()).InSecondsF();
gesture.sourceDevice = blink::WebGestureDeviceTouchscreen;
« no previous file with comments | « no previous file | ui/events/gesture_detection/gesture_event_data.h » ('j') | ui/events/gesture_detection/gesture_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698