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

Unified Diff: ui/views/controls/menu/menu_runner.h

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: ui/views/controls/menu/menu_runner.h
diff --git a/ui/views/controls/menu/menu_runner.h b/ui/views/controls/menu/menu_runner.h
index 2e9a133ad1348f8f448d9d2d4183b89455971db9..acfaa32ce9a43f029b05f13db6a3f930e0466b03 100644
--- a/ui/views/controls/menu/menu_runner.h
+++ b/ui/views/controls/menu/menu_runner.h
@@ -97,6 +97,12 @@ class VIEWS_EXPORT MenuRunner {
MenuItemView::AnchorPosition anchor,
int32 types) WARN_UNUSED_RESULT;
+ RunResult RunContextMenuAt(Widget* parent,
sky 2013/06/13 19:54:53 We already have RunTypes::CONTEXT_MENU, so we don'
varunjain 2013/06/13 20:26:43 The requirement here is to identify, 1) if its a c
+ MenuButton* button,
+ const gfx::Rect& bounds,
+ ui::ContextMenuSourceType source,
+ int32 types) WARN_UNUSED_RESULT;
+
// Returns true if we're in a nested message loop running the menu.
bool IsRunning() const;

Powered by Google App Engine
This is Rietveld 408576698