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

Unified Diff: chrome/browser/ui/views/wrench_menu.cc

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 6 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 | « chrome/browser/ui/views/wrench_menu.h ('k') | ui/app_list/views/app_list_item_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/wrench_menu.cc
diff --git a/chrome/browser/ui/views/wrench_menu.cc b/chrome/browser/ui/views/wrench_menu.cc
index 28150db813992882d836414b84586f2288f4cf36..d20558493f8ecbeb310591ffee40fbdb711120ea 100644
--- a/chrome/browser/ui/views/wrench_menu.cc
+++ b/chrome/browser/ui/views/wrench_menu.cc
@@ -813,7 +813,8 @@ void WrenchMenu::RunMenu(views::MenuButton* host) {
gfx::Rect bounds(screen_loc, host->size());
content::RecordAction(UserMetricsAction("ShowAppMenu"));
if (menu_runner_->RunMenuAt(host->GetWidget(), host, bounds,
- MenuItemView::TOPRIGHT, views::MenuRunner::HAS_MNEMONICS) ==
+ MenuItemView::TOPRIGHT, ui::MENU_SOURCE_NONE,
+ views::MenuRunner::HAS_MNEMONICS) ==
views::MenuRunner::MENU_DELETED)
return;
if (bookmark_menu_delegate_.get()) {
@@ -898,10 +899,10 @@ int WrenchMenu::OnPerformDrop(MenuItemView* menu,
bool WrenchMenu::ShowContextMenu(MenuItemView* source,
int id,
const gfx::Point& p,
- bool is_mouse_gesture) {
+ ui::MenuSourceType source_type) {
return is_bookmark_command(id) ?
bookmark_menu_delegate_->ShowContextMenu(source, id, p,
- is_mouse_gesture) :
+ source_type) :
false;
}
« no previous file with comments | « chrome/browser/ui/views/wrench_menu.h ('k') | ui/app_list/views/app_list_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698