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

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: 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/launcher/launcher_view.h ('k') | ash/shell/window_type_launcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_view.cc
diff --git a/ash/launcher/launcher_view.cc b/ash/launcher/launcher_view.cc
index 0434a947dc0b2e3463ba79e5d3607176d53b20a5..35b419c566e1dd0a446889aaa591e117621a60bb 100644
--- a/ash/launcher/launcher_view.cc
+++ b/ash/launcher/launcher_view.cc
@@ -672,8 +672,7 @@ void LauncherView::ButtonPressed(views::Button* sender,
}
void LauncherView::ShowContextMenuForView(views::View* source,
- const gfx::Point& p,
- bool is_mouse_gesture) {
+ const gfx::Point& point) {
int view_index = view_model_->GetIndexOfView(source);
// May be -1 while in the process of animating closed.
if (view_index == -1 || !delegate_)
@@ -692,7 +691,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
« no previous file with comments | « ash/launcher/launcher_view.h ('k') | ash/shell/window_type_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698