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

Unified Diff: ui/views/examples/menu_example.cc

Issue 390183002: MacViews: Move menu run types parameter to constructor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/examples/tree_view_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/menu_example.cc
diff --git a/ui/views/examples/menu_example.cc b/ui/views/examples/menu_example.cc
index 742cfffa4b207f61ea45e52c825b79b0c7f80d40..bc8845e564452b6580ac6884ffb6774168c2b345 100644
--- a/ui/views/examples/menu_example.cc
+++ b/ui/views/examples/menu_example.cc
@@ -187,14 +187,13 @@ ExampleMenuButton::~ExampleMenuButton() {
void ExampleMenuButton::OnMenuButtonClicked(View* source,
const gfx::Point& point) {
- menu_runner_.reset(new MenuRunner(GetMenuModel()));
+ menu_runner_.reset(new MenuRunner(GetMenuModel(), MenuRunner::HAS_MNEMONICS));
if (menu_runner_->RunMenuAt(source->GetWidget()->GetTopLevelWidget(),
this,
gfx::Rect(point, gfx::Size()),
MENU_ANCHOR_TOPRIGHT,
- ui::MENU_SOURCE_NONE,
- MenuRunner::HAS_MNEMONICS) ==
+ ui::MENU_SOURCE_NONE) ==
MenuRunner::MENU_DELETED) {
return;
}
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/examples/tree_view_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698