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

Unified Diff: content/browser/renderer_host/ui_events_helper.cc

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-event: mandol_line Created 5 years, 1 month 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/ui_events_helper.cc
diff --git a/content/browser/renderer_host/ui_events_helper.cc b/content/browser/renderer_host/ui_events_helper.cc
index 7aa038e1dcc9e5d7061ac3b8c3d088053b16edc8..e3dc565281de6047cbf1430043309f16e10b6274 100644
--- a/content/browser/renderer_host/ui_events_helper.cc
+++ b/content/browser/renderer_host/ui_events_helper.cc
@@ -74,15 +74,11 @@ bool MakeUITouchEventsFromWebTouchEvents(
location = point.position;
else
location = point.screenPosition;
- ui::TouchEvent* uievent = new ui::TouchEvent(type,
- location,
- flags,
- point.id,
- timestamp,
- point.radiusX,
- point.radiusY,
- point.rotationAngle,
- point.force);
+ ui::TouchEvent* uievent = new ui::TouchEvent(
+ type, gfx::Point(), flags, point.id, timestamp, point.radiusX,
+ point.radiusY, point.rotationAngle, point.force);
+ uievent->set_location_f(location);
+ uievent->set_root_location_f(location);
uievent->set_latency(touch_with_latency.latency);
list->push_back(uievent);
}

Powered by Google App Engine
This is Rietveld 408576698