| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UTIL_H_ | 5 #ifndef ASH_WM_WINDOW_UTIL_H_ |
| 6 #define ASH_WM_WINDOW_UTIL_H_ | 6 #define ASH_WM_WINDOW_UTIL_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ui/base/ui_base_types.h" | 10 #include "ui/base/ui_base_types.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 // Returns true if the active window or one its ancestors is fullscreen. | 45 // Returns true if the active window or one its ancestors is fullscreen. |
| 46 ASH_EXPORT bool IsActiveWindowFullscreen(); | 46 ASH_EXPORT bool IsActiveWindowFullscreen(); |
| 47 | 47 |
| 48 // Returns true if |window| can be maximized. | 48 // Returns true if |window| can be maximized. |
| 49 ASH_EXPORT bool CanMaximizeWindow(const aura::Window* window); | 49 ASH_EXPORT bool CanMaximizeWindow(const aura::Window* window); |
| 50 | 50 |
| 51 // Returns true if |window| can be resized. | 51 // Returns true if |window| can be resized. |
| 52 ASH_EXPORT bool CanResizeWindow(const aura::Window* window); | 52 ASH_EXPORT bool CanResizeWindow(const aura::Window* window); |
| 53 | 53 |
| 54 // Returns true if |window| can be snapped to the left or right. |
| 55 ASH_EXPORT bool CanSnapWindow(aura::Window* window); |
| 56 |
| 54 // Returns true if |window| is normal or default. | 57 // Returns true if |window| is normal or default. |
| 55 ASH_EXPORT bool IsWindowNormal(const aura::Window* window); | 58 ASH_EXPORT bool IsWindowNormal(const aura::Window* window); |
| 56 | 59 |
| 57 // Returns true if |state| is normal or default. | 60 // Returns true if |state| is normal or default. |
| 58 ASH_EXPORT bool IsWindowStateNormal(const ui::WindowShowState state); | 61 ASH_EXPORT bool IsWindowStateNormal(const ui::WindowShowState state); |
| 59 | 62 |
| 60 // Returns true if |window| is in the maximized state. | 63 // Returns true if |window| is in the maximized state. |
| 61 ASH_EXPORT bool IsWindowMaximized(const aura::Window* window); | 64 ASH_EXPORT bool IsWindowMaximized(const aura::Window* window); |
| 62 | 65 |
| 63 // Returns true if |window| is minimized. | 66 // Returns true if |window| is minimized. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 124 |
| 122 // Move the given bounds inside the given work area, including a safety margin. | 125 // Move the given bounds inside the given work area, including a safety margin. |
| 123 ASH_EXPORT void AdjustBoundsToEnsureWindowVisibility( | 126 ASH_EXPORT void AdjustBoundsToEnsureWindowVisibility( |
| 124 gfx::Rect* bounds, | 127 gfx::Rect* bounds, |
| 125 const gfx::Rect& work_area); | 128 const gfx::Rect& work_area); |
| 126 | 129 |
| 127 } // namespace wm | 130 } // namespace wm |
| 128 } // namespace ash | 131 } // namespace ash |
| 129 | 132 |
| 130 #endif // ASH_WM_WINDOW_UTIL_H_ | 133 #endif // ASH_WM_WINDOW_UTIL_H_ |
| OLD | NEW |