| 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 17 matching lines...) Expand all Loading... |
| 28 ASH_EXPORT aura::Window* GetActiveWindow(); | 28 ASH_EXPORT aura::Window* GetActiveWindow(); |
| 29 ASH_EXPORT bool CanActivateWindow(aura::Window* window); | 29 ASH_EXPORT bool CanActivateWindow(aura::Window* window); |
| 30 | 30 |
| 31 // Retrieves the activatable window for |window|. If |window| is activatable, | 31 // Retrieves the activatable window for |window|. If |window| is activatable, |
| 32 // this will just return it, otherwise it will climb the parent/transient parent | 32 // this will just return it, otherwise it will climb the parent/transient parent |
| 33 // chain looking for a window that is activatable, per the ActivationController. | 33 // chain looking for a window that is activatable, per the ActivationController. |
| 34 // If you're looking for a function to get the activatable "top level" window, | 34 // If you're looking for a function to get the activatable "top level" window, |
| 35 // this is probably what you're looking for. | 35 // this is probably what you're looking for. |
| 36 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); | 36 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); |
| 37 | 37 |
| 38 // Returns true if |window| can be maximized. |
| 39 ASH_EXPORT bool CanMaximizeWindow(aura::Window* window); |
| 40 |
| 38 // Returns true if |window| is normal or default. | 41 // Returns true if |window| is normal or default. |
| 39 ASH_EXPORT bool IsWindowNormal(aura::Window* window); | 42 ASH_EXPORT bool IsWindowNormal(aura::Window* window); |
| 40 | 43 |
| 41 // Returns true if |state| is normal or default. | 44 // Returns true if |state| is normal or default. |
| 42 ASH_EXPORT bool IsWindowStateNormal(ui::WindowShowState state); | 45 ASH_EXPORT bool IsWindowStateNormal(ui::WindowShowState state); |
| 43 | 46 |
| 44 // Returns true if |window| is in the maximized state. | 47 // Returns true if |window| is in the maximized state. |
| 45 ASH_EXPORT bool IsWindowMaximized(aura::Window* window); | 48 ASH_EXPORT bool IsWindowMaximized(aura::Window* window); |
| 46 | 49 |
| 47 // Returns true if |window| is minimized. | 50 // Returns true if |window| is minimized. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 74 ASH_EXPORT ui::Layer* RecreateWindowLayers(aura::Window* window, | 77 ASH_EXPORT ui::Layer* RecreateWindowLayers(aura::Window* window, |
| 75 bool set_bounds) WARN_UNUSED_RESULT; | 78 bool set_bounds) WARN_UNUSED_RESULT; |
| 76 | 79 |
| 77 // Deletes |layer| and all its child layers. | 80 // Deletes |layer| and all its child layers. |
| 78 ASH_EXPORT void DeepDeleteLayers(ui::Layer* layer); | 81 ASH_EXPORT void DeepDeleteLayers(ui::Layer* layer); |
| 79 | 82 |
| 80 } // namespace wm | 83 } // namespace wm |
| 81 } // namespace ash | 84 } // namespace ash |
| 82 | 85 |
| 83 #endif // ASH_WM_WINDOW_UTIL_H_ | 86 #endif // ASH_WM_WINDOW_UTIL_H_ |
| OLD | NEW |