| 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 25 matching lines...) Expand all Loading... |
| 36 ASH_EXPORT aura::Window* GetActiveWindow(); | 36 ASH_EXPORT aura::Window* GetActiveWindow(); |
| 37 ASH_EXPORT bool CanActivateWindow(aura::Window* window); | 37 ASH_EXPORT bool CanActivateWindow(aura::Window* window); |
| 38 | 38 |
| 39 // Retrieves the activatable window for |window|. If |window| is activatable, | 39 // Retrieves the activatable window for |window|. If |window| is activatable, |
| 40 // this will just return it, otherwise it will climb the parent/transient parent | 40 // this will just return it, otherwise it will climb the parent/transient parent |
| 41 // chain looking for a window that is activatable, per the ActivationController. | 41 // chain looking for a window that is activatable, per the ActivationController. |
| 42 // If you're looking for a function to get the activatable "top level" window, | 42 // If you're looking for a function to get the activatable "top level" window, |
| 43 // this is probably what you're looking for. | 43 // this is probably what you're looking for. |
| 44 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); | 44 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); |
| 45 | 45 |
| 46 // Returns true if the active window or one its ancestors is fullscreen. | |
| 47 ASH_EXPORT bool IsActiveWindowFullscreen(); | |
| 48 | |
| 49 // Returns true if |window| can be maximized. | 46 // Returns true if |window| can be maximized. |
| 50 ASH_EXPORT bool CanMaximizeWindow(const aura::Window* window); | 47 ASH_EXPORT bool CanMaximizeWindow(const aura::Window* window); |
| 51 | 48 |
| 52 // Returns true if |window| can be minimized. | 49 // Returns true if |window| can be minimized. |
| 53 ASH_EXPORT bool CanMinimizeWindow(const aura::Window* window); | 50 ASH_EXPORT bool CanMinimizeWindow(const aura::Window* window); |
| 54 | 51 |
| 55 // Returns true if |window| can be resized. | 52 // Returns true if |window| can be resized. |
| 56 ASH_EXPORT bool CanResizeWindow(const aura::Window* window); | 53 ASH_EXPORT bool CanResizeWindow(const aura::Window* window); |
| 57 | 54 |
| 58 // Returns true if |window| can be snapped to the left or right. | 55 // Returns true if |window| can be snapped to the left or right. |
| (...skipping 68 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 |