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

Unified Diff: ash/wm/workspace/multi_window_resize_controller.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/wm/workspace/multi_window_resize_controller.cc
diff --git a/ash/wm/workspace/multi_window_resize_controller.cc b/ash/wm/workspace/multi_window_resize_controller.cc
index 067275b59bc64efafb619d5e2f0a62bdd8f5a927..3017c9b3ddf2a030be68615d27342e080cbf8cb3 100644
--- a/ash/wm/workspace/multi_window_resize_controller.cc
+++ b/ash/wm/workspace/multi_window_resize_controller.cc
@@ -549,9 +549,9 @@ bool MultiWindowResizeController::IsOverWindows(
gfx::Point location_in_root(location_in_screen);
aura::Window* root = windows_.window1->GetRootWindow();
::wm::ConvertPointFromScreen(root, &location_in_root);
- ui::MouseEvent test_event(ui::ET_MOUSE_MOVED, location_in_root,
- location_in_root, ui::EventTimeForNow(),
- ui::EF_NONE, ui::EF_NONE);
+ ui::MouseEvent test_event(ui::ET_MOUSE_MOVED, gfx::PointF(location_in_root),
+ gfx::PointF(location_in_root),
+ ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE);
ui::EventTarget* event_handler = static_cast<ui::EventTarget*>(root)
->GetEventTargeter()
->FindTargetForEvent(root, &test_event);

Powered by Google App Engine
This is Rietveld 408576698