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

Unified Diff: ui/views/controls/menu/menu_message_loop_aura.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/views/controls/menu/menu_message_loop_aura.cc
diff --git a/ui/views/controls/menu/menu_message_loop_aura.cc b/ui/views/controls/menu/menu_message_loop_aura.cc
index 8ad00e8458de7e1fba6a37b3212df125f8008f77..f1171c87fabebee8a486e2ad572e5164bf46dae8 100644
--- a/ui/views/controls/menu/menu_message_loop_aura.cc
+++ b/ui/views/controls/menu/menu_message_loop_aura.cc
@@ -116,8 +116,8 @@ void MenuMessageLoopAura::RepostEventToWindow(const ui::LocatedEvent& event,
spc->ConvertPointFromScreen(root, &root_loc);
ui::MouseEvent clone(static_cast<const ui::MouseEvent&>(event));
- clone.set_location(root_loc);
- clone.set_root_location(root_loc);
+ clone.set_location(gfx::PointF(root_loc));
+ clone.set_root_location(gfx::PointF(root_loc));
root->GetHost()->dispatcher()->RepostEvent(clone);
}

Powered by Google App Engine
This is Rietveld 408576698