From 5fc549f0469b301169a17a28b725c8ea20d80673 Mon Sep 17 00:00:00 2001 From: "oshima@google.com" Date: Tue, 26 Jul 2011 06:00:42 +0000 Subject: 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 --- views/controls/button/button_dropdown.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/controls/button') 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); -- cgit v1.1