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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.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: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
index ed0cb1d6f9890f9ba21cd1ff87f3c748b7e5c8b0..f724f941051435c4e8061d7dcc70b56ab74c162d 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
@@ -1536,7 +1536,8 @@ void DesktopWindowTreeHostX11::ConvertEventToDifferentHost(
display_dest.device_scale_factor());
gfx::Vector2d offset = GetLocationOnNativeScreen() -
host->GetLocationOnNativeScreen();
- gfx::Point location_in_pixel_in_host = located_event->location() + offset;
+ auto location_in_pixel_in_host =
+ gfx::PointF(located_event->location() + offset);
located_event->set_location(location_in_pixel_in_host);
}

Powered by Google App Engine
This is Rietveld 408576698