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

Unified Diff: chrome/views/button_dropdown.cc

Issue 7317: Change all ConvertPointTo* methods to use gfx::Point instead of CPoint.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 | « chrome/views/bitmap_scroll_bar.cc ('k') | chrome/views/chrome_menu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/button_dropdown.cc
===================================================================
--- chrome/views/button_dropdown.cc (revision 3347)
+++ chrome/views/button_dropdown.cc (working copy)
@@ -112,7 +112,7 @@
// Both the menu position and the menu anchor type change if the UI layout
// is right-to-left.
- CPoint menu_position = CPoint(lb.TopLeft());
+ gfx::Point menu_position(lb.TopLeft());
menu_position.Offset(0, lb.Height() - 1);
if (UILayoutIsRightToLeft())
menu_position.Offset(lb.Width() - 1, 0);
@@ -139,7 +139,7 @@
}
}
- menu.RunMenuAt(menu_position.x, menu_position.y);
+ menu.RunMenuAt(menu_position.x(), menu_position.y());
// Need to explicitly clear mouse handler so that events get sent
// properly after the menu finishes running. If we don't do this, then
« no previous file with comments | « chrome/views/bitmap_scroll_bar.cc ('k') | chrome/views/chrome_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698