| 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/wm_types.h" | 9 #include "ash/wm/wm_types.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 // Predicates to check window state. | 59 // Predicates to check window state. |
| 60 bool IsMinimized() const; | 60 bool IsMinimized() const; |
| 61 bool IsMaximized() const; | 61 bool IsMaximized() const; |
| 62 bool IsFullscreen() const; | 62 bool IsFullscreen() const; |
| 63 bool IsMaximizedOrFullscreen() const; | 63 bool IsMaximizedOrFullscreen() const; |
| 64 // True if the window's show state is SHOW_STATE_NORMAL or | 64 // True if the window's show state is SHOW_STATE_NORMAL or |
| 65 // SHOW_STATE_DEFAULT. | 65 // SHOW_STATE_DEFAULT. |
| 66 bool IsNormalShowState() const; | 66 bool IsNormalShowState() const; |
| 67 bool IsActive() const; | 67 bool IsActive() const; |
| 68 bool IsDocked() const; |
| 68 | 69 |
| 69 // Checks if the window can change its state accordingly. | 70 // Checks if the window can change its state accordingly. |
| 70 bool CanMaximize() const; | 71 bool CanMaximize() const; |
| 71 bool CanMinimize() const; | 72 bool CanMinimize() const; |
| 72 bool CanResize() const; | 73 bool CanResize() const; |
| 73 bool CanSnap() const; | 74 bool CanSnap() const; |
| 74 bool CanActivate() const; | 75 bool CanActivate() const; |
| 75 | 76 |
| 76 // Returns true if the window has restore bounds. | 77 // Returns true if the window has restore bounds. |
| 77 bool HasRestoreBounds() const; | 78 bool HasRestoreBounds() const; |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); | 269 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); |
| 269 | 270 |
| 270 // const version of GetWindowState. | 271 // const version of GetWindowState. |
| 271 ASH_EXPORT const WindowState* | 272 ASH_EXPORT const WindowState* |
| 272 GetWindowState(const aura::Window* window); | 273 GetWindowState(const aura::Window* window); |
| 273 | 274 |
| 274 } // namespace wm | 275 } // namespace wm |
| 275 } // namespace ash | 276 } // namespace ash |
| 276 | 277 |
| 277 #endif // ASH_WM_WINDOW_STATE_H_ | 278 #endif // ASH_WM_WINDOW_STATE_H_ |
| OLD | NEW |