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

Unified Diff: ash/app_list/app_list_item_view.cc

Issue 9665008: views: Nuke is_mouse_gesture parameter from ContextMenuController::ShowContextMenuForView(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nuke is_mouse_gesture parameter Created 8 years, 9 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 | « ash/app_list/app_list_item_view.h ('k') | ash/launcher/launcher_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/app_list/app_list_item_view.cc
diff --git a/ash/app_list/app_list_item_view.cc b/ash/app_list/app_list_item_view.cc
index 96b6b13d9030ecf5a2e6bfd3d5ac1d4f90521981..e47305ae9b200b7c0371fdb5211c858710278a92 100644
--- a/ash/app_list/app_list_item_view.cc
+++ b/ash/app_list/app_list_item_view.cc
@@ -128,8 +128,7 @@ void AppListItemView::OnPaint(gfx::Canvas* canvas) {
}
void AppListItemView::ShowContextMenuForView(views::View* source,
- const gfx::Point& p,
- bool is_mouse_gesture) {
+ const gfx::Point& point) {
ui::MenuModel* menu_model = model_->GetContextMenuModel();
if (!menu_model)
return;
@@ -139,7 +138,7 @@ void AppListItemView::ShowContextMenuForView(views::View* source,
new views::MenuRunner(new views::MenuItemView(&menu_adapter)));
menu_adapter.BuildMenu(context_menu_runner_->GetMenu());
if (context_menu_runner_->RunMenuAt(
- GetWidget(), NULL, gfx::Rect(p, gfx::Size()),
+ GetWidget(), NULL, gfx::Rect(point, gfx::Size()),
views::MenuItemView::TOPLEFT, views::MenuRunner::HAS_MNEMONICS) ==
views::MenuRunner::MENU_DELETED)
return;
« no previous file with comments | « ash/app_list/app_list_item_view.h ('k') | ash/launcher/launcher_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698