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

Unified Diff: ui/views/controls/menu/menu_message_loop_aura.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/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 d28f6743117681abf03e461a4ff5313d067bb721..9a329b27776dbb016539481ec60927299893fd77 100644
--- a/ui/views/controls/menu/menu_message_loop_aura.cc
+++ b/ui/views/controls/menu/menu_message_loop_aura.cc
@@ -120,8 +120,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