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
3 // found in the LICENSE file.
5 #ifndef UI_BASE_UI_BASE_TYPES_H_
6 #define UI_BASE_UI_BASE_TYPES_H_
10 // Window "show" state. These values are written to disk so should not be
12 enum WindowShowState
{
13 // A default un-set state.
14 SHOW_STATE_DEFAULT
= 0,
15 SHOW_STATE_NORMAL
= 1,
16 SHOW_STATE_MINIMIZED
= 2,
17 SHOW_STATE_MAXIMIZED
= 3,
18 SHOW_STATE_INACTIVE
= 4, // Views only, not persisted.
19 SHOW_STATE_FULLSCREEN
= 5,
20 SHOW_STATE_END
= 6 // The end of show state enum.
23 // Dialog button identifiers used to specify which buttons to show the user.
25 DIALOG_BUTTON_NONE
= 0,
27 DIALOG_BUTTON_CANCEL
= 2,
30 // Specifies the type of modality applied to a window. Different modal
31 // treatments may be handled differently by the window manager.
33 MODAL_TYPE_NONE
= 0, // Window is not modal.
34 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_SYSTEM
= 3 // Window is modal to all other windows.
41 #endif // UI_BASE_UI_BASE_TYPES_H_