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

Unified Diff: ash/root_window_controller.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
« no previous file with comments | « no previous file | ash/shelf/shelf_view.cc » ('j') | ui/views/controls/menu/menu_runner.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index aafe0ba0c61f8dbeea3e3b61770b5191935adab0..60018d5be523d3ee766cbe4da0e3264325008969 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -630,14 +630,13 @@ void RootWindowController::ShowContextMenu(const gfx::Point& location_in_screen,
if (!wallpaper_controller_.get())
return;
- views::MenuRunner menu_runner(menu_model.get());
+ views::MenuRunner menu_runner(menu_model.get(),
+ views::MenuRunner::CONTEXT_MENU);
if (menu_runner.RunMenuAt(wallpaper_controller_->widget(),
NULL,
gfx::Rect(location_in_screen, gfx::Size()),
views::MENU_ANCHOR_TOPLEFT,
- source_type,
- views::MenuRunner::CONTEXT_MENU) ==
- views::MenuRunner::MENU_DELETED) {
+ source_type) == views::MenuRunner::MENU_DELETED) {
return;
}
« no previous file with comments | « no previous file | ash/shelf/shelf_view.cc » ('j') | ui/views/controls/menu/menu_runner.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698