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

Side by Side Diff: ui/base/ui_base_types.h

Issue 14663010: Save and restore State for ShellWindows, including panels (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/client/aura_constants.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.
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_
OLDNEW
« no previous file with comments | « ui/aura/client/aura_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698