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

Unified Diff: ui/views/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: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 9cb513e5fa9efe09d276e78343dc8b239f9ede27..6573cee982b8ea449e80836383cbc9a4bb6d50f4 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -992,7 +992,9 @@ void View::ShowContextMenu(const gfx::Point& p, bool is_mouse_gesture) {
if (!context_menu_controller_)
return;
- context_menu_controller_->ShowContextMenuForView(this, p, is_mouse_gesture);
+ GestureType type = is_mouse_gesture ? GESTURE_TYPE_USER
+ : GESTURE_TYPE_API;
+ context_menu_controller_->ShowContextMenuForView(this, p, type);
}
// Drag and drop ---------------------------------------------------------------
« ui/views/context_menu_controller.h ('K') | « ui/views/examples/tree_view_example.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698