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

Unified Diff: ui/app_list/views/app_list_item_view.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 | « content/shell/browser/shell_views.cc ('k') | ui/app_list/views/app_list_menu_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_item_view.cc
diff --git a/ui/app_list/views/app_list_item_view.cc b/ui/app_list/views/app_list_item_view.cc
index 3d4897c00e3ca168aa31cdbe9775135cc22994d4..671d299ba55656ae88d0dc09fbf389b72ec07d0c 100644
--- a/ui/app_list/views/app_list_item_view.cc
+++ b/ui/app_list/views/app_list_item_view.cc
@@ -364,13 +364,13 @@ void AppListItemView::ShowContextMenuForView(views::View* source,
if (!menu_model)
return;
- context_menu_runner_.reset(new views::MenuRunner(menu_model));
+ context_menu_runner_.reset(
+ new views::MenuRunner(menu_model, views::MenuRunner::HAS_MNEMONICS));
if (context_menu_runner_->RunMenuAt(GetWidget(),
NULL,
gfx::Rect(point, gfx::Size()),
views::MENU_ANCHOR_TOPLEFT,
- source_type,
- views::MenuRunner::HAS_MNEMONICS) ==
+ source_type) ==
views::MenuRunner::MENU_DELETED) {
return;
}
« no previous file with comments | « content/shell/browser/shell_views.cc ('k') | ui/app_list/views/app_list_menu_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698