Index: ash/shell/window_type_launcher.cc |
diff --git a/ash/shell/window_type_launcher.cc b/ash/shell/window_type_launcher.cc |
index 2d6752119ae0cdd504d7e14d1e0a2dd2280d8713..51063359017c1069890cb9f2a9681ea5eea9dd8c 100644 |
--- a/ash/shell/window_type_launcher.cc |
+++ b/ash/shell/window_type_launcher.cc |
@@ -388,8 +388,10 @@ void WindowTypeLauncher::ExecuteCommand(int id, int event_flags) { |
#endif // !defined(OS_MACOSX) |
#if !defined(OS_MACOSX) |
-void WindowTypeLauncher::ShowContextMenuForView(views::View* source, |
- const gfx::Point& point) { |
+void WindowTypeLauncher::ShowContextMenuForView( |
+ views::View* source, |
+ const gfx::Point& point, |
+ ui::ContextMenuSourceType source_type) { |
MenuItemView* root = new MenuItemView(this); |
root->AppendMenuItem(COMMAND_NEW_WINDOW, |
ASCIIToUTF16("New Window"), |
@@ -399,8 +401,9 @@ void WindowTypeLauncher::ShowContextMenuForView(views::View* source, |
MenuItemView::NORMAL); |
// MenuRunner takes ownership of root. |
menu_runner_.reset(new MenuRunner(root)); |
- if (menu_runner_->RunMenuAt(GetWidget(), NULL, gfx::Rect(point, gfx::Size()), |
- MenuItemView::TOPLEFT, |
+ if (menu_runner_->RunContextMenuAt(GetWidget(), NULL, |
+ gfx::Rect(point, gfx::Size()), |
+ source_type, |
MenuRunner::HAS_MNEMONICS | views::MenuRunner::CONTEXT_MENU) == |
MenuRunner::MENU_DELETED) |
return; |