| 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 | 9 |
| 10 namespace aura { | 10 namespace aura { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 ASH_EXPORT bool CanActivateWindow(aura::Window* window); | 30 ASH_EXPORT bool CanActivateWindow(aura::Window* window); |
| 31 | 31 |
| 32 // Retrieves the activatable window for |window|. If |window| is activatable, | 32 // Retrieves the activatable window for |window|. If |window| is activatable, |
| 33 // this will just return it, otherwise it will climb the parent/transient parent | 33 // this will just return it, otherwise it will climb the parent/transient parent |
| 34 // chain looking for a window that is activatable, per the ActivationController. | 34 // chain looking for a window that is activatable, per the ActivationController. |
| 35 // If you're looking for a function to get the activatable "top level" window, | 35 // If you're looking for a function to get the activatable "top level" window, |
| 36 // this is probably what you're looking for. | 36 // this is probably what you're looking for. |
| 37 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); | 37 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); |
| 38 | 38 |
| 39 // Returns true if |window| is normal or default. | 39 // Returns true if |window| is normal or default. |
| 40 ASH_EXPORT bool IsWindowNormal(aura::Window* window); | 40 ASH_EXPORT bool IsWindowNormal(const aura::Window* window); |
| 41 | 41 |
| 42 // Returns true if |window| is in the maximized state. | 42 // Returns true if |window| is in the maximized state. |
| 43 ASH_EXPORT bool IsWindowMaximized(aura::Window* window); | 43 ASH_EXPORT bool IsWindowMaximized(const aura::Window* window); |
| 44 | 44 |
| 45 // Returns true if |window| is minimized. | 45 // Returns true if |window| is minimized. |
| 46 ASH_EXPORT bool IsWindowMinimized(aura::Window* window); | 46 ASH_EXPORT bool IsWindowMinimized(const aura::Window* window); |
| 47 | 47 |
| 48 // Returns true if |window| is in the fullscreen state. | 48 // Returns true if |window| is in the fullscreen state. |
| 49 ASH_EXPORT bool IsWindowFullscreen(aura::Window* window); | 49 ASH_EXPORT bool IsWindowFullscreen(const aura::Window* window); |
| 50 | 50 |
| 51 // Maximizes |window|, which must not be NULL. | 51 // Maximizes |window|, which must not be NULL. |
| 52 ASH_EXPORT void MaximizeWindow(aura::Window* window); | 52 ASH_EXPORT void MaximizeWindow(aura::Window* window); |
| 53 | 53 |
| 54 // Minimizes |window|, which must not be NULL. | 54 // Minimizes |window|, which must not be NULL. |
| 55 ASH_EXPORT void MinimizeWindow(aura::Window* window); | 55 ASH_EXPORT void MinimizeWindow(aura::Window* window); |
| 56 | 56 |
| 57 // Restores |window|, which must not be NULL. | 57 // Restores |window|, which must not be NULL. |
| 58 ASH_EXPORT void RestoreWindow(aura::Window* window); | 58 ASH_EXPORT void RestoreWindow(aura::Window* window); |
| 59 | 59 |
| 60 // Moves the window to the center of the display. | 60 // Moves the window to the center of the display. |
| 61 ASH_EXPORT void CenterWindow(aura::Window* window); | 61 ASH_EXPORT void CenterWindow(aura::Window* window); |
| 62 | 62 |
| 63 // Recreates a fresh layer for |window| and all its child windows. Does not | 63 // Recreates a fresh layer for |window| and all its child windows. Does not |
| 64 // recreate shadows or other non-window layers. Returns the old layer and its | 64 // recreate shadows or other non-window layers. Returns the old layer and its |
| 65 // children, maintaining the hierarchy. | 65 // children, maintaining the hierarchy. |
| 66 ASH_EXPORT ui::Layer* RecreateWindowLayers(aura::Window* window); | 66 ASH_EXPORT ui::Layer* RecreateWindowLayers(aura::Window* window); |
| 67 | 67 |
| 68 // Deletes |layer| and all its child layers. | 68 // Deletes |layer| and all its child layers. |
| 69 ASH_EXPORT void DeepDeleteLayers(ui::Layer* layer); | 69 ASH_EXPORT void DeepDeleteLayers(ui::Layer* layer); |
| 70 | 70 |
| 71 } // namespace wm | 71 } // namespace wm |
| 72 } // namespace ash | 72 } // namespace ash |
| 73 | 73 |
| 74 #endif // ASH_WM_WINDOW_UTIL_H_ | 74 #endif // ASH_WM_WINDOW_UTIL_H_ |
| OLD | NEW |