summaryrefslogtreecommitdiffstats
path: root/views/controls/button
diff options
context:
space:
mode:
authoroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-26 06:00:42 +0000
committeroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-26 06:00:42 +0000
commit5fc549f0469b301169a17a28b725c8ea20d80673 (patch)
treefea512f022e5be806e587aea4a8905fcd73c2331 /views/controls/button
parent7de2cf6dea088d93b88e997605e229888fadfceb (diff)
downloadchromium_src-5fc549f0469b301169a17a28b725c8ea20d80673.zip
chromium_src-5fc549f0469b301169a17a28b725c8ea20d80673.tar.gz
chromium_src-5fc549f0469b301169a17a28b725c8ea20d80673.tar.bz2
Use widget to specify the parent of views menu.
BUG=none TEST=none. no functional change and all tests should pass. Review URL: http://codereview.chromium.org/7489035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94046 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/button')
-rw-r--r--views/controls/button/button_dropdown.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/controls/button/button_dropdown.cc b/views/controls/button/button_dropdown.cc
index 01f13ca..16c0313 100644
--- a/views/controls/button/button_dropdown.cc
+++ b/views/controls/button/button_dropdown.cc
@@ -158,14 +158,14 @@ void ButtonDropDown::ShowDropDownMenu(gfx::NativeView window) {
MenuItemView menu(&menu_delegate);
menu_delegate.BuildMenu(&menu);
- menu.RunMenuAt(GetWidget()->GetNativeWindow(), NULL,
+ menu.RunMenuAt(GetWidget(), NULL,
gfx::Rect(menu_position, gfx::Size(0, 0)),
views::MenuItemView::TOPLEFT,
true);
} else {
MenuDelegate menu_delegate;
MenuItemView menu(&menu_delegate);
- menu.RunMenuAt(GetWidget()->GetNativeWindow(), NULL,
+ menu.RunMenuAt(GetWidget(), NULL,
gfx::Rect(menu_position, gfx::Size(0, 0)),
views::MenuItemView::TOPLEFT,
true);