| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // WINDOW_STATE_TYPE_FULLSCREEN or WINDOW_STATE_TYPE_PINNED. | 103 // WINDOW_STATE_TYPE_FULLSCREEN or WINDOW_STATE_TYPE_PINNED. |
| 104 bool IsMaximizedOrFullscreenOrPinned() const; | 104 bool IsMaximizedOrFullscreenOrPinned() const; |
| 105 | 105 |
| 106 // 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 |
| 107 // WINDOW_STATE_TYPE_DEFAULT. | 107 // WINDOW_STATE_TYPE_DEFAULT. |
| 108 bool IsNormalStateType() const; | 108 bool IsNormalStateType() const; |
| 109 | 109 |
| 110 bool IsNormalOrSnapped() const; | 110 bool IsNormalOrSnapped() const; |
| 111 | 111 |
| 112 bool IsActive() const; | 112 bool IsActive() const; |
| 113 bool IsDocked() const; | |
| 114 | 113 |
| 115 // Returns true if the window's location can be controlled by the user. | 114 // Returns true if the window's location can be controlled by the user. |
| 116 bool IsUserPositionable() const; | 115 bool IsUserPositionable() const; |
| 117 | 116 |
| 118 // Checks if the window can change its state accordingly. | 117 // Checks if the window can change its state accordingly. |
| 119 bool CanMaximize() const; | 118 bool CanMaximize() const; |
| 120 bool CanMinimize() const; | 119 bool CanMinimize() const; |
| 121 bool CanResize() const; | 120 bool CanResize() const; |
| 122 bool CanSnap() const; | 121 bool CanSnap() const; |
| 123 bool CanActivate() const; | 122 bool CanActivate() const; |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 387 |
| 389 std::unique_ptr<State> current_state_; | 388 std::unique_ptr<State> current_state_; |
| 390 | 389 |
| 391 DISALLOW_COPY_AND_ASSIGN(WindowState); | 390 DISALLOW_COPY_AND_ASSIGN(WindowState); |
| 392 }; | 391 }; |
| 393 | 392 |
| 394 } // namespace wm | 393 } // namespace wm |
| 395 } // namespace ash | 394 } // namespace ash |
| 396 | 395 |
| 397 #endif // ASH_COMMON_WM_WINDOW_STATE_H_ | 396 #endif // ASH_COMMON_WM_WINDOW_STATE_H_ |
| OLD | NEW |