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_WINDOW_STATE_H_ | 5 #ifndef ASH_COMMON_WM_WINDOW_STATE_H_ |
6 #define ASH_COMMON_WM_WINDOW_STATE_H_ | 6 #define ASH_COMMON_WM_WINDOW_STATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // Refer to WindowStateType definition in wm_types.h as for why Ash | 90 // Refer to WindowStateType definition in wm_types.h as for why Ash |
91 // has its own state type. | 91 // has its own state type. |
92 WindowStateType GetStateType() const; | 92 WindowStateType GetStateType() const; |
93 | 93 |
94 // Predicates to check window state. | 94 // Predicates to check window state. |
95 bool IsMinimized() const; | 95 bool IsMinimized() const; |
96 bool IsMaximized() const; | 96 bool IsMaximized() const; |
97 bool IsFullscreen() const; | 97 bool IsFullscreen() const; |
98 bool IsSnapped() const; | 98 bool IsSnapped() const; |
99 bool IsPinned() const; | 99 bool IsPinned() const; |
| 100 bool IsTrustedPinned() const; |
100 | 101 |
101 // True if the window's state type is WINDOW_STATE_TYPE_MAXIMIZED, | 102 // True if the window's state type is WINDOW_STATE_TYPE_MAXIMIZED, |
102 // WINDOW_STATE_TYPE_FULLSCREEN or WINDOW_STATE_TYPE_PINNED. | 103 // WINDOW_STATE_TYPE_FULLSCREEN or WINDOW_STATE_TYPE_PINNED. |
103 bool IsMaximizedOrFullscreenOrPinned() const; | 104 bool IsMaximizedOrFullscreenOrPinned() const; |
104 | 105 |
105 // True if the window's state type is WINDOW_STATE_TYPE_NORMAL or | 106 // True if the window's state type is WINDOW_STATE_TYPE_NORMAL or |
106 // WINDOW_STATE_TYPE_DEFAULT. | 107 // WINDOW_STATE_TYPE_DEFAULT. |
107 bool IsNormalStateType() const; | 108 bool IsNormalStateType() const; |
108 | 109 |
109 bool IsNormalOrSnapped() const; | 110 bool IsNormalOrSnapped() const; |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 | 388 |
388 std::unique_ptr<State> current_state_; | 389 std::unique_ptr<State> current_state_; |
389 | 390 |
390 DISALLOW_COPY_AND_ASSIGN(WindowState); | 391 DISALLOW_COPY_AND_ASSIGN(WindowState); |
391 }; | 392 }; |
392 | 393 |
393 } // namespace wm | 394 } // namespace wm |
394 } // namespace ash | 395 } // namespace ash |
395 | 396 |
396 #endif // ASH_COMMON_WM_WINDOW_STATE_H_ | 397 #endif // ASH_COMMON_WM_WINDOW_STATE_H_ |
OLD | NEW |