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

Unified Diff: ash/host/ash_window_tree_host.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-gfx: . Created 5 years, 3 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: ash/host/ash_window_tree_host.cc
diff --git a/ash/host/ash_window_tree_host.cc b/ash/host/ash_window_tree_host.cc
index 6f18204aa2f9b854c31bdacb658cbd1dee4e1d74..b4c4c68a4849f1706ceb21ada680a0aab61667af 100644
--- a/ash/host/ash_window_tree_host.cc
+++ b/ash/host/ash_window_tree_host.cc
@@ -34,8 +34,8 @@ void AshWindowTreeHost::TranslateLocatedEvent(ui::LocatedEvent* event) {
screen_position_client->ConvertHostPointToScreen(root_window, &location);
screen_position_client->ConvertPointFromScreen(root_window, &location);
wth->ConvertPointToHost(&location);
- event->set_location(location);
- event->set_root_location(location);
+ event->set_location(gfx::PointF(location));
+ event->set_root_location(gfx::PointF(location));
}
}

Powered by Google App Engine
This is Rietveld 408576698