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

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

Issue 331993009: MacViews: Run native Cocoa context menus to support Services. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add VIEWS_EXPORT for unit test access 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
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;
}

Powered by Google App Engine
This is Rietveld 408576698