| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); | 258 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); |
| 258 | 259 |
| 259 // const version of GetWindowState. | 260 // const version of GetWindowState. |
| 260 ASH_EXPORT const WindowState* | 261 ASH_EXPORT const WindowState* |
| 261 GetWindowState(const aura::Window* window); | 262 GetWindowState(const aura::Window* window); |
| 262 | 263 |
| 263 } // namespace wm | 264 } // namespace wm |
| 264 } // namespace ash | 265 } // namespace ash |
| 265 | 266 |
| 266 #endif // ASH_WM_WINDOW_STATE_H_ | 267 #endif // ASH_WM_WINDOW_STATE_H_ |
| OLD | NEW |