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 { |
11 class RootWindow; | 11 class RootWindow; |
12 class Window; | 12 class Window; |
13 } | 13 } |
14 | 14 |
| 15 namespace ui { |
| 16 class Layer; |
| 17 } |
| 18 |
15 namespace ash { | 19 namespace ash { |
16 namespace internal { | 20 namespace internal { |
17 class RootWindowController; | 21 class RootWindowController; |
18 } | 22 } |
19 namespace wm { | 23 namespace wm { |
20 | 24 |
21 // Convenience setters/getters for |aura::client::kRootWindowActiveWindow|. | 25 // Convenience setters/getters for |aura::client::kRootWindowActiveWindow|. |
22 ASH_EXPORT void ActivateWindow(aura::Window* window); | 26 ASH_EXPORT void ActivateWindow(aura::Window* window); |
23 ASH_EXPORT void DeactivateWindow(aura::Window* window); | 27 ASH_EXPORT void DeactivateWindow(aura::Window* window); |
24 ASH_EXPORT bool IsActiveWindow(aura::Window* window); | 28 ASH_EXPORT bool IsActiveWindow(aura::Window* window); |
(...skipping 24 matching lines...) Expand all Loading... |
49 | 53 |
50 // Minimizes |window|, which must not be NULL. | 54 // Minimizes |window|, which must not be NULL. |
51 ASH_EXPORT void MinimizeWindow(aura::Window* window); | 55 ASH_EXPORT void MinimizeWindow(aura::Window* window); |
52 | 56 |
53 // Restores |window|, which must not be NULL. | 57 // Restores |window|, which must not be NULL. |
54 ASH_EXPORT void RestoreWindow(aura::Window* window); | 58 ASH_EXPORT void RestoreWindow(aura::Window* window); |
55 | 59 |
56 // Moves the window to the center of the display. | 60 // Moves the window to the center of the display. |
57 ASH_EXPORT void CenterWindow(aura::Window* window); | 61 ASH_EXPORT void CenterWindow(aura::Window* window); |
58 | 62 |
| 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 |
| 65 // children, maintaining the hierarchy. |
| 66 ASH_EXPORT ui::Layer* RecreateWindowLayers(aura::Window* window); |
| 67 |
| 68 // Deletes |layer| and all its child layers. |
| 69 ASH_EXPORT void DeepDeleteLayers(ui::Layer* layer); |
| 70 |
59 } // namespace wm | 71 } // namespace wm |
60 } // namespace ash | 72 } // namespace ash |
61 | 73 |
62 #endif // ASH_WM_WINDOW_UTIL_H_ | 74 #endif // ASH_WM_WINDOW_UTIL_H_ |
OLD | NEW |