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

Unified Diff: ui/aura/window_tree_host_x11.cc

Issue 1421713002: Explicitly convert Point to PointF for event code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wip
Patch Set: pointfconvert-prod: . Created 5 years, 2 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: ui/aura/window_tree_host_x11.cc
diff --git a/ui/aura/window_tree_host_x11.cc b/ui/aura/window_tree_host_x11.cc
index 7f2c720076a0e2e02a8538b2603fdb10dfb91e8e..158cca3c45b09e09f878f9a4947e1d21befb4b33 100644
--- a/ui/aura/window_tree_host_x11.cc
+++ b/ui/aura/window_tree_host_x11.cc
@@ -169,9 +169,9 @@ class TouchEventCalibrate : public ui::PlatformEventObserver {
if (event->root_location() == event->location()) {
// Usually those will be equal,
// if not, I am not sure what the correct value should be.
- event->set_root_location(gfx::Point(x, y));
+ event->set_root_location(gfx::PointF(x, y));
}
- event->set_location(gfx::Point(x, y));
+ event->set_location(gfx::PointF(x, y));
}
private:

Powered by Google App Engine
This is Rietveld 408576698