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

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

Issue 148453012: Chrome requires WebTouchPoint to store WebFloatPoint, instead of WebPoint. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address jdduke's comments. Created 6 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/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 1aa5f9027f8f1caced401ed91a1c08433edc5fcd..8c2a9a9ee445c4fbf23744243f09822a953d2fa9 100644
--- a/content/browser/renderer_host/ui_events_helper.cc
+++ b/content/browser/renderer_host/ui_events_helper.cc
@@ -121,11 +121,11 @@ bool MakeUITouchEventsFromWebTouchEvents(
if (WebTouchPointStateToEventType(point.state) != type)
continue;
// ui events start in the co-ordinate space of the EventDispatcher.
- gfx::Point location;
+ gfx::PointF location;
if (coordinate_system == LOCAL_COORDINATES)
- location = gfx::Point(point.position.x, point.position.y);
+ location = point.position;
else
- location = gfx::Point(point.screenPosition.x, point.screenPosition.y);
+ location = point.screenPosition;
ui::TouchEvent* uievent = new ui::TouchEvent(type,
location,
flags,

Powered by Google App Engine
This is Rietveld 408576698