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

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: 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..07d08f5b4dc14a4e747fe6ffd1889a49ac606acd 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 ContextMenuSourceType {
+ CONTEXT_MENU_SOURCE_NONE = 0,
+ CONTEXT_MENU_SOURCE_MOUSE = 1,
+ CONTEXT_MENU_SOURCE_KEYBOARD = 2,
+ CONTEXT_MENU_SOURCE_TOUCH = 3,
+ CONTEXT_MENU_SOURCE_TOUCH_EDITING = 4,
+};
sadrul 2013/06/13 17:53:48 Drive by: can we have a generic EventSourceType in
varunjain 2013/06/13 18:33:01 Would touch editing make a valid *event* source?
+
} // namespace ui
#endif // UI_BASE_UI_BASE_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698