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

Unified Diff: ash/wm/workspace/multi_window_resize_controller.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
« no previous file with comments | « ash/shelf/shelf_view.cc ('k') | chrome/browser/ui/views/autofill/autofill_dialog_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « ash/shelf/shelf_view.cc ('k') | chrome/browser/ui/views/autofill/autofill_dialog_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698