| 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 UI_WM_CORE_WINDOW_UTIL_H_ | 5 #ifndef UI_WM_CORE_WINDOW_UTIL_H_ |
| 6 #define UI_WM_CORE_WINDOW_UTIL_H_ | 6 #define UI_WM_CORE_WINDOW_UTIL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "ui/wm/wm_export.h" | 12 #include "ui/wm/wm_export.h" |
| 13 | 13 |
| 14 namespace aura { | 14 namespace aura { |
| 15 class Window; | 15 class Window; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace ui { | 18 namespace ui { |
| 19 class Layer; | 19 class Layer; |
| 20 class LayerOwner; | 20 class LayerOwner; |
| 21 class LayerTreeOwner; | 21 class LayerTreeOwner; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace wm { | 24 namespace wm { |
| 25 | 25 |
| 26 WM_EXPORT void ActivateWindow(aura::Window* window); | 26 WM_EXPORT void ActivateWindow(aura::Window* window); |
| 27 WM_EXPORT void DeactivateWindow(aura::Window* window); | 27 WM_EXPORT void DeactivateWindow(aura::Window* window); |
| 28 WM_EXPORT bool IsActiveWindow(aura::Window* window); | 28 WM_EXPORT bool IsActiveWindow(const aura::Window* window); |
| 29 WM_EXPORT bool CanActivateWindow(aura::Window* window); | 29 WM_EXPORT bool CanActivateWindow(aura::Window* window); |
| 30 WM_EXPORT void SetWindowFullscreen(aura::Window* window, bool fullscreen); | 30 WM_EXPORT void SetWindowFullscreen(aura::Window* window, bool fullscreen); |
| 31 | 31 |
| 32 // Retrieves the activatable window for |window|. The ActivationClient makes | 32 // Retrieves the activatable window for |window|. The ActivationClient makes |
| 33 // this determination. | 33 // this determination. |
| 34 WM_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); | 34 WM_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); |
| 35 | 35 |
| 36 // Retrieves the toplevel window for |window|. The ActivationClient makes this | 36 // Retrieves the toplevel window for |window|. The ActivationClient makes this |
| 37 // determination. | 37 // determination. |
| 38 WM_EXPORT aura::Window* GetToplevelWindow(aura::Window* window); | 38 WM_EXPORT aura::Window* GetToplevelWindow(aura::Window* window); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 64 WM_EXPORT void RemoveTransientChild(aura::Window* parent, aura::Window* child); | 64 WM_EXPORT void RemoveTransientChild(aura::Window* parent, aura::Window* child); |
| 65 | 65 |
| 66 // Returns true if |window| has |ancestor| as a transient ancestor. A transient | 66 // Returns true if |window| has |ancestor| as a transient ancestor. A transient |
| 67 // ancestor is found by following the transient parent chain of the window. | 67 // ancestor is found by following the transient parent chain of the window. |
| 68 WM_EXPORT bool HasTransientAncestor(const aura::Window* window, | 68 WM_EXPORT bool HasTransientAncestor(const aura::Window* window, |
| 69 const aura::Window* ancestor); | 69 const aura::Window* ancestor); |
| 70 | 70 |
| 71 } // namespace wm | 71 } // namespace wm |
| 72 | 72 |
| 73 #endif // UI_WM_CORE_WINDOW_UTIL_H_ | 73 #endif // UI_WM_CORE_WINDOW_UTIL_H_ |
| OLD | NEW |