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 |
11 // changed. | 11 // changed. |
12 enum WindowShowState { | 12 enum WindowShowState { |
13 // A default un-set state. | 13 // A default un-set state. |
14 SHOW_STATE_DEFAULT = 0, | 14 SHOW_STATE_DEFAULT = 0, |
15 SHOW_STATE_NORMAL = 1, | 15 SHOW_STATE_NORMAL = 1, |
16 SHOW_STATE_MINIMIZED = 2, | 16 SHOW_STATE_MINIMIZED = 2, |
17 SHOW_STATE_MAXIMIZED = 3, | 17 SHOW_STATE_MAXIMIZED = 3, |
18 SHOW_STATE_INACTIVE = 4, // Views only, not persisted. | 18 SHOW_STATE_INACTIVE = 4, // Views only, not persisted. |
19 SHOW_STATE_FULLSCREEN = 5, | 19 SHOW_STATE_FULLSCREEN = 5, |
20 SHOW_STATE_END = 6 // The end of show state enum. | 20 SHOW_STATE_DETACHED = 6, // Views only; detached panel. |
Mr4D (OOO till 08-26)
2013/05/06 21:40:16
I don't think that sky would agree on this. We dis
sky
2013/05/06 22:19:46
I'm ok with this (reviewed this patch earlier on).
| |
21 SHOW_STATE_END = 7 // The end of show state enum. | |
21 }; | 22 }; |
22 | 23 |
23 // Dialog button identifiers used to specify which buttons to show the user. | 24 // Dialog button identifiers used to specify which buttons to show the user. |
24 enum DialogButton { | 25 enum DialogButton { |
25 DIALOG_BUTTON_NONE = 0, | 26 DIALOG_BUTTON_NONE = 0, |
26 DIALOG_BUTTON_OK = 1, | 27 DIALOG_BUTTON_OK = 1, |
27 DIALOG_BUTTON_CANCEL = 2, | 28 DIALOG_BUTTON_CANCEL = 2, |
28 }; | 29 }; |
29 | 30 |
30 // Specifies the type of modality applied to a window. Different modal | 31 // Specifies the type of modality applied to a window. Different modal |
31 // treatments may be handled differently by the window manager. | 32 // treatments may be handled differently by the window manager. |
32 enum ModalType { | 33 enum ModalType { |
33 MODAL_TYPE_NONE = 0, // Window is not modal. | 34 MODAL_TYPE_NONE = 0, // Window is not modal. |
34 MODAL_TYPE_WINDOW = 1, // Window is modal to its transient parent. | 35 MODAL_TYPE_WINDOW = 1, // Window is modal to its transient parent. |
35 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. |
36 MODAL_TYPE_SYSTEM = 3 // Window is modal to all other windows. | 37 MODAL_TYPE_SYSTEM = 3 // Window is modal to all other windows. |
37 }; | 38 }; |
38 | 39 |
39 } // namespace ui | 40 } // namespace ui |
40 | 41 |
41 #endif // UI_BASE_UI_BASE_TYPES_H_ | 42 #endif // UI_BASE_UI_BASE_TYPES_H_ |
OLD | NEW |