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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // Predicates to check window state. | 62 // Predicates to check window state. |
63 bool IsMinimized() const; | 63 bool IsMinimized() const; |
64 bool IsMaximized() const; | 64 bool IsMaximized() const; |
65 bool IsFullscreen() const; | 65 bool IsFullscreen() const; |
66 bool IsMaximizedOrFullscreen() const; | 66 bool IsMaximizedOrFullscreen() const; |
67 // True if the window's show state is SHOW_STATE_NORMAL or | 67 // True if the window's show state is SHOW_STATE_NORMAL or |
68 // SHOW_STATE_DEFAULT. | 68 // SHOW_STATE_DEFAULT. |
69 bool IsNormalShowState() const; | 69 bool IsNormalShowState() const; |
70 bool IsActive() const; | 70 bool IsActive() const; |
71 bool IsDocked() const; | 71 bool IsDocked() const; |
| 72 bool IsSnapped() const; |
72 | 73 |
73 // Checks if the window can change its state accordingly. | 74 // Checks if the window can change its state accordingly. |
74 bool CanMaximize() const; | 75 bool CanMaximize() const; |
75 bool CanMinimize() const; | 76 bool CanMinimize() const; |
76 bool CanResize() const; | 77 bool CanResize() const; |
77 bool CanSnap() const; | 78 bool CanSnap() const; |
78 bool CanActivate() const; | 79 bool CanActivate() const; |
79 | 80 |
80 // Returns true if the window has restore bounds. | 81 // Returns true if the window has restore bounds. |
81 bool HasRestoreBounds() const; | 82 bool HasRestoreBounds() const; |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); | 298 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); |
298 | 299 |
299 // const version of GetWindowState. | 300 // const version of GetWindowState. |
300 ASH_EXPORT const WindowState* | 301 ASH_EXPORT const WindowState* |
301 GetWindowState(const aura::Window* window); | 302 GetWindowState(const aura::Window* window); |
302 | 303 |
303 } // namespace wm | 304 } // namespace wm |
304 } // namespace ash | 305 } // namespace ash |
305 | 306 |
306 #endif // ASH_WM_WINDOW_STATE_H_ | 307 #endif // ASH_WM_WINDOW_STATE_H_ |
OLD | NEW |