| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // Returns true if |window| can be maximized. | 46 // Returns true if |window| can be maximized. |
| 47 ASH_EXPORT bool CanMaximizeWindow(const aura::Window* window); | 47 ASH_EXPORT bool CanMaximizeWindow(const aura::Window* window); |
| 48 | 48 |
| 49 // Returns true if |window| can be minimized. | 49 // Returns true if |window| can be minimized. |
| 50 ASH_EXPORT bool CanMinimizeWindow(const aura::Window* window); | 50 ASH_EXPORT bool CanMinimizeWindow(const aura::Window* window); |
| 51 | 51 |
| 52 // Returns true if |window| can be resized. | 52 // Returns true if |window| can be resized. |
| 53 ASH_EXPORT bool CanResizeWindow(const aura::Window* window); | 53 ASH_EXPORT bool CanResizeWindow(const aura::Window* window); |
| 54 | 54 |
| 55 // Returns true if |window| can be snapped to the left or right. | |
| 56 ASH_EXPORT bool CanSnapWindow(aura::Window* window); | |
| 57 | |
| 58 // Returns true if |window| is normal or default. | 55 // Returns true if |window| is normal or default. |
| 59 ASH_EXPORT bool IsWindowNormal(const aura::Window* window); | 56 ASH_EXPORT bool IsWindowNormal(const aura::Window* window); |
| 60 | 57 |
| 61 // Returns true if |state| is normal or default. | 58 // Returns true if |state| is normal or default. |
| 62 ASH_EXPORT bool IsWindowStateNormal(const ui::WindowShowState state); | 59 ASH_EXPORT bool IsWindowStateNormal(const ui::WindowShowState state); |
| 63 | 60 |
| 64 // Returns true if |window| is in the maximized state. | 61 // Returns true if |window| is in the maximized state. |
| 65 ASH_EXPORT bool IsWindowMaximized(const aura::Window* window); | 62 ASH_EXPORT bool IsWindowMaximized(const aura::Window* window); |
| 66 | 63 |
| 67 // Returns true if |window| is minimized. | 64 // Returns true if |window| is minimized. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 124 |
| 128 // Moves |window| to the root window where the |event| occured if it is not | 125 // Moves |window| to the root window where the |event| occured if it is not |
| 129 // already in the same root window. Returns true if |window| was moved. | 126 // already in the same root window. Returns true if |window| was moved. |
| 130 ASH_EXPORT bool MoveWindowToEventRoot(aura::Window* window, | 127 ASH_EXPORT bool MoveWindowToEventRoot(aura::Window* window, |
| 131 const ui::Event& event); | 128 const ui::Event& event); |
| 132 | 129 |
| 133 } // namespace wm | 130 } // namespace wm |
| 134 } // namespace ash | 131 } // namespace ash |
| 135 | 132 |
| 136 #endif // ASH_WM_WINDOW_UTIL_H_ | 133 #endif // ASH_WM_WINDOW_UTIL_H_ |
| OLD | NEW |