OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 ASH_COMMON_WM_WM_TYPES_H_ | 5 #ifndef ASH_COMMON_WM_WM_TYPES_H_ |
6 #define ASH_COMMON_WM_WM_TYPES_H_ | 6 #define ASH_COMMON_WM_WM_TYPES_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ui/base/ui_base_types.h" | 9 #include "ui/base/ui_base_types.h" |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 // A window is in this state when it is automatically placed and | 40 // A window is in this state when it is automatically placed and |
41 // sized by the window manager. (it's newly opened, or pushed to the side | 41 // sized by the window manager. (it's newly opened, or pushed to the side |
42 // due to new window, for example). | 42 // due to new window, for example). |
43 WINDOW_STATE_TYPE_AUTO_POSITIONED, | 43 WINDOW_STATE_TYPE_AUTO_POSITIONED, |
44 | 44 |
45 // A window is pinned on top of other windows with fullscreenized. | 45 // A window is pinned on top of other windows with fullscreenized. |
46 // Corresponding shelf should be hidden, also most of windows other than the | 46 // Corresponding shelf should be hidden, also most of windows other than the |
47 // pinned one should be hidden. | 47 // pinned one should be hidden. |
48 WINDOW_STATE_TYPE_PINNED, | 48 WINDOW_STATE_TYPE_PINNED, |
| 49 WINDOW_STATE_TYPE_TRUSTED_PINNED, |
49 }; | 50 }; |
50 | 51 |
51 // Utility functions to convert WindowStateType <-> ui::WindowShowState. | 52 // Utility functions to convert WindowStateType <-> ui::WindowShowState. |
52 // Note: LEFT/RIGHT MAXIMIZED, AUTO_POSITIONED type will be lost when | 53 // Note: LEFT/RIGHT MAXIMIZED, AUTO_POSITIONED type will be lost when |
53 // converting to ui::WindowShowState. | 54 // converting to ui::WindowShowState. |
54 ASH_EXPORT WindowStateType ToWindowStateType(ui::WindowShowState state); | 55 ASH_EXPORT WindowStateType ToWindowStateType(ui::WindowShowState state); |
55 ASH_EXPORT ui::WindowShowState ToWindowShowState(WindowStateType type); | 56 ASH_EXPORT ui::WindowShowState ToWindowShowState(WindowStateType type); |
56 | 57 |
57 // Returns true if |type| is WINDOW_STATE_TYPE_MAXIMIZED, | 58 // Returns true if |type| is WINDOW_STATE_TYPE_MAXIMIZED, |
58 // WINDOW_STATE_TYPE_FULLSCREEN or WINDOW_STATE_TYPE_PINNED. | 59 // WINDOW_STATE_TYPE_FULLSCREEN or WINDOW_STATE_TYPE_PINNED. |
59 ASH_EXPORT bool IsMaximizedOrFullscreenOrPinnedWindowStateType( | 60 ASH_EXPORT bool IsMaximizedOrFullscreenOrPinnedWindowStateType( |
60 WindowStateType type); | 61 WindowStateType type); |
61 | 62 |
62 } // namespace wm | 63 } // namespace wm |
63 } // namespace ash | 64 } // namespace ash |
64 | 65 |
65 #endif // ASH_COMMON_WM_WM_TYPES_H_ | 66 #endif // ASH_COMMON_WM_WM_TYPES_H_ |
OLD | NEW |