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

Unified Diff: ui/base/ui_base_types.h

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build 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/base/ui_base_types.h
diff --git a/ui/base/ui_base_types.h b/ui/base/ui_base_types.h
index 2f1bcec9eaed0d4ad9d7cdc2ad187538483f6c11..ccb74a858eadee73ca66d31f8b5b8b15d88995cf 100644
--- a/ui/base/ui_base_types.h
+++ b/ui/base/ui_base_types.h
@@ -37,6 +37,14 @@ enum ModalType {
MODAL_TYPE_SYSTEM = 3 // Window is modal to all other windows.
};
+enum MenuSourceType {
+ MENU_SOURCE_NONE = 0,
+ MENU_SOURCE_MOUSE = 1,
+ MENU_SOURCE_KEYBOARD = 2,
+ MENU_SOURCE_TOUCH = 3,
+ MENU_SOURCE_TOUCH_EDIT_MENU = 4,
+};
+
} // namespace ui
#endif // UI_BASE_UI_BASE_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698