summaryrefslogtreecommitdiffstats
path: root/chrome/views/button_dropdown.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 20:58:44 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 20:58:44 +0000
commit96b667d273c25e55150785848942c51f1a98851b (patch)
tree21ad2f8bc3a2148a517998f4ebb0157b22a75082 /chrome/views/button_dropdown.cc
parentdf40752a0913948b49086fee421b0d019f7de8da (diff)
downloadchromium_src-96b667d273c25e55150785848942c51f1a98851b.zip
chromium_src-96b667d273c25e55150785848942c51f1a98851b.tar.gz
chromium_src-96b667d273c25e55150785848942c51f1a98851b.tar.bz2
Change all ConvertPointTo* methods to use gfx::Point instead of CPoint.
http://crbug.com/2186 Review URL: http://codereview.chromium.org/7317 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3365 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/button_dropdown.cc')
-rw-r--r--chrome/views/button_dropdown.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/views/button_dropdown.cc b/chrome/views/button_dropdown.cc
index aef0e1d..11523b6 100644
--- a/chrome/views/button_dropdown.cc
+++ b/chrome/views/button_dropdown.cc
@@ -112,7 +112,7 @@ void ButtonDropDown::ShowDropDownMenu(HWND window) {
// 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 @@ void ButtonDropDown::ShowDropDownMenu(HWND window) {
}
}
- 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