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

Unified Diff: ui/views/examples/menu_example.cc

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 6 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/controls/tree/tree_view.cc ('k') | ui/views/examples/tree_view_example.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/menu_example.cc
diff --git a/ui/views/examples/menu_example.cc b/ui/views/examples/menu_example.cc
index 5da8d3c0b21f6e7a1a8d15ca0e84c2e70df1329e..307a6ca794e828a431f86049ace0ed73c547af3a 100644
--- a/ui/views/examples/menu_example.cc
+++ b/ui/views/examples/menu_example.cc
@@ -189,7 +189,8 @@ void ExampleMenuButton::OnMenuButtonClicked(View* source,
if (menu_runner_->RunMenuAt(source->GetWidget()->GetTopLevelWidget(), this,
gfx::Rect(point, gfx::Size()), MenuItemView::TOPRIGHT,
- MenuRunner::HAS_MNEMONICS) == MenuRunner::MENU_DELETED)
+ ui::MENU_SOURCE_NONE, MenuRunner::HAS_MNEMONICS) ==
+ MenuRunner::MENU_DELETED)
return;
}
« no previous file with comments | « ui/views/controls/tree/tree_view.cc ('k') | ui/views/examples/tree_view_example.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698