OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_BASE_UI_BASE_TYPES_H_ | 5 #ifndef UI_BASE_UI_BASE_TYPES_H_ |
6 #define UI_BASE_UI_BASE_TYPES_H_ | 6 #define UI_BASE_UI_BASE_TYPES_H_ |
7 | 7 |
8 namespace ui { | 8 namespace ui { |
9 | 9 |
10 // Window "show" state. These values are written to disk so should not be | 10 // Window "show" state. These values are written to disk so should not be |
(...skipping 19 matching lines...) Expand all Loading... | |
30 | 30 |
31 // Specifies the type of modality applied to a window. Different modal | 31 // Specifies the type of modality applied to a window. Different modal |
32 // treatments may be handled differently by the window manager. | 32 // treatments may be handled differently by the window manager. |
33 enum ModalType { | 33 enum ModalType { |
34 MODAL_TYPE_NONE = 0, // Window is not modal. | 34 MODAL_TYPE_NONE = 0, // Window is not modal. |
35 MODAL_TYPE_WINDOW = 1, // Window is modal to its transient parent. | 35 MODAL_TYPE_WINDOW = 1, // Window is modal to its transient parent. |
36 MODAL_TYPE_CHILD = 2, // Window is modal to a child of its transient parent. | 36 MODAL_TYPE_CHILD = 2, // Window is modal to a child of its transient parent. |
37 MODAL_TYPE_SYSTEM = 3 // Window is modal to all other windows. | 37 MODAL_TYPE_SYSTEM = 3 // Window is modal to all other windows. |
38 }; | 38 }; |
39 | 39 |
40 enum ContextMenuSourceType { | |
41 CONTEXT_MENU_SOURCE_NONE = 0, | |
42 CONTEXT_MENU_SOURCE_MOUSE = 1, | |
43 CONTEXT_MENU_SOURCE_KEYBOARD = 2, | |
44 CONTEXT_MENU_SOURCE_TOUCH = 3, | |
45 CONTEXT_MENU_SOURCE_TOUCH_EDITING = 4, | |
46 }; | |
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?
| |
47 | |
40 } // namespace ui | 48 } // namespace ui |
41 | 49 |
42 #endif // UI_BASE_UI_BASE_TYPES_H_ | 50 #endif // UI_BASE_UI_BASE_TYPES_H_ |
OLD | NEW |