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

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: 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
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..fff2acf331fec7c9c07d0cb05988de994e569e0a 100644
--- a/ash/app_list/app_list_item_view.cc
+++ b/ash/app_list/app_list_item_view.cc
@@ -128,8 +128,8 @@ void AppListItemView::OnPaint(gfx::Canvas* canvas) {
}
void AppListItemView::ShowContextMenuForView(views::View* source,
- const gfx::Point& p,
- bool is_mouse_gesture) {
+ const gfx::Point& point,
+ views::GestureType gesture_type) {
ui::MenuModel* menu_model = model_->GetContextMenuModel();
if (!menu_model)
return;
@@ -139,7 +139,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;

Powered by Google App Engine
This is Rietveld 408576698