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

Unified Diff: ui/views/examples/tree_view_example.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 | « ui/views/examples/tree_view_example.h ('k') | ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/tree_view_example.cc
diff --git a/ui/views/examples/tree_view_example.cc b/ui/views/examples/tree_view_example.cc
index cd98d0781b58f65fa0b089fee964ad7002a826f9..e2a9d4fa5d1f74389e780fe42dafab27d9c65500 100644
--- a/ui/views/examples/tree_view_example.cc
+++ b/ui/views/examples/tree_view_example.cc
@@ -123,8 +123,7 @@ bool TreeViewExample::CanEdit(TreeView* tree_view,
}
void TreeViewExample::ShowContextMenuForView(View* source,
- const gfx::Point& p,
- bool is_mouse_gesture) {
+ const gfx::Point& point) {
ui::SimpleMenuModel context_menu_model(this);
context_menu_model.AddItem(ID_EDIT, ASCIIToUTF16("Edit"));
context_menu_model.AddItem(ID_REMOVE, ASCIIToUTF16("Remove"));
@@ -132,7 +131,7 @@ void TreeViewExample::ShowContextMenuForView(View* source,
views::MenuModelAdapter menu_adapter(&context_menu_model);
context_menu_runner_.reset(new views::MenuRunner(menu_adapter.CreateMenu()));
if (context_menu_runner_->RunMenuAt(source->GetWidget(), NULL,
- gfx::Rect(p, gfx::Size()), views::MenuItemView::TOPLEFT, 0) ==
+ gfx::Rect(point, gfx::Size()), views::MenuItemView::TOPLEFT, 0) ==
views::MenuRunner::MENU_DELETED)
return;
}
« no previous file with comments | « ui/views/examples/tree_view_example.h ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698