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

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

Issue 10832360: Change to address default selection of menu item (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whitespace Created 8 years, 4 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 cbb380fbc5d9873e91f10b75bd64f8c85a22fa16..72d2efcc2e1f0f790dff2d8092c3fc8871f707fc 100644
--- a/ui/views/controls/menu/menu_runner.h
+++ b/ui/views/controls/menu/menu_runner.h
@@ -52,6 +52,10 @@ class VIEWS_EXPORT MenuRunner {
// caller, instead the delegate is notified when the menu closes via the
// DropMenuClosed method.
FOR_DROP = 1 << 2,
+
+ // The menu is a context menu (not necessarily nested), for example right
+ // click on a link on a website in the browser.
+ CONTEXT_MENU = 1 << 3,
};
enum RunResult {

Powered by Google App Engine
This is Rietveld 408576698