| 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_WM_WINDOW_STATE_H_ | 5 #ifndef ASH_WM_WINDOW_STATE_H_ |
| 6 #define ASH_WM_WINDOW_STATE_H_ | 6 #define ASH_WM_WINDOW_STATE_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/wm/drag_details.h" | 9 #include "ash/wm/drag_details.h" |
| 10 #include "ash/wm/wm_types.h" | 10 #include "ash/wm/wm_types.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 // True if the window's state type is WINDOW_STATE_TYPE_NORMAL or | 102 // True if the window's state type is WINDOW_STATE_TYPE_NORMAL or |
| 103 // WINDOW_STATE_TYPE_DEFAULT. | 103 // WINDOW_STATE_TYPE_DEFAULT. |
| 104 bool IsNormalStateType() const; | 104 bool IsNormalStateType() const; |
| 105 | 105 |
| 106 bool IsNormalOrSnapped() const; | 106 bool IsNormalOrSnapped() const; |
| 107 | 107 |
| 108 bool IsActive() const; | 108 bool IsActive() const; |
| 109 bool IsDocked() const; | 109 bool IsDocked() const; |
| 110 | 110 |
| 111 // Returns true if the window's location can be controlled by the user. |
| 112 bool IsUserPositionable() const; |
| 113 |
| 111 // Checks if the window can change its state accordingly. | 114 // Checks if the window can change its state accordingly. |
| 112 bool CanMaximize() const; | 115 bool CanMaximize() const; |
| 113 bool CanMinimize() const; | 116 bool CanMinimize() const; |
| 114 bool CanResize() const; | 117 bool CanResize() const; |
| 115 bool CanSnap() const; | 118 bool CanSnap() const; |
| 116 bool CanActivate() const; | 119 bool CanActivate() const; |
| 117 | 120 |
| 118 // Returns true if the window has restore bounds. | 121 // Returns true if the window has restore bounds. |
| 119 bool HasRestoreBounds() const; | 122 bool HasRestoreBounds() const; |
| 120 | 123 |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); | 393 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); |
| 391 | 394 |
| 392 // const version of GetWindowState. | 395 // const version of GetWindowState. |
| 393 ASH_EXPORT const WindowState* | 396 ASH_EXPORT const WindowState* |
| 394 GetWindowState(const aura::Window* window); | 397 GetWindowState(const aura::Window* window); |
| 395 | 398 |
| 396 } // namespace wm | 399 } // namespace wm |
| 397 } // namespace ash | 400 } // namespace ash |
| 398 | 401 |
| 399 #endif // ASH_WM_WINDOW_STATE_H_ | 402 #endif // ASH_WM_WINDOW_STATE_H_ |
| OLD | NEW |