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

Unified Diff: views/controls/button/button_dropdown.cc

Issue 7054052: Move more from Window onto Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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/browser/ui/views/wrench_menu.cc ('k') | views/desktop/desktop_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/button/button_dropdown.cc
===================================================================
--- views/controls/button/button_dropdown.cc (revision 88218)
+++ views/controls/button/button_dropdown.cc (working copy)
@@ -158,14 +158,14 @@
MenuItemView menu(&menu_delegate);
menu_delegate.BuildMenu(&menu);
- menu.RunMenuAt(GetWindow()->GetNativeWindow(), NULL,
+ menu.RunMenuAt(GetWidget()->GetNativeWindow(), NULL,
gfx::Rect(menu_position, gfx::Size(0, 0)),
views::MenuItemView::TOPLEFT,
true);
} else {
MenuDelegate menu_delegate;
MenuItemView menu(&menu_delegate);
- menu.RunMenuAt(GetWindow()->GetNativeWindow(), NULL,
+ menu.RunMenuAt(GetWidget()->GetNativeWindow(), NULL,
gfx::Rect(menu_position, gfx::Size(0, 0)),
views::MenuItemView::TOPLEFT,
true);
« no previous file with comments | « chrome/browser/ui/views/wrench_menu.cc ('k') | views/desktop/desktop_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698