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

Unified Diff: ash/launcher/launcher_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/launcher/launcher_view.cc
diff --git a/ash/launcher/launcher_view.cc b/ash/launcher/launcher_view.cc
index 0434a947dc0b2e3463ba79e5d3607176d53b20a5..fa761f0937a8c314fded9149e7d8cbf38b5fb7b2 100644
--- a/ash/launcher/launcher_view.cc
+++ b/ash/launcher/launcher_view.cc
@@ -672,8 +672,8 @@ void LauncherView::ButtonPressed(views::Button* sender,
}
void LauncherView::ShowContextMenuForView(views::View* source,
- const gfx::Point& p,
- bool is_mouse_gesture) {
+ const gfx::Point& point,
+ views::GestureType gesture_type) {
int view_index = view_model_->GetIndexOfView(source);
// May be -1 while in the process of animating closed.
if (view_index == -1 || !delegate_)
@@ -692,7 +692,7 @@ void LauncherView::ShowContextMenuForView(views::View* source,
// NOTE: if you convert to HAS_MNEMONICS be sure and update menu building
// code.
if (launcher_menu_runner_->RunMenuAt(
- source->GetWidget(), NULL, gfx::Rect(p, gfx::Size()),
+ source->GetWidget(), NULL, gfx::Rect(point, gfx::Size()),
views::MenuItemView::TOPLEFT, 0) == views::MenuRunner::MENU_DELETED)
return;
#endif

Powered by Google App Engine
This is Rietveld 408576698