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" |
11 | 11 |
12 namespace aura { | 12 namespace aura { |
13 class Window; | 13 class Window; |
14 } | 14 } |
15 | 15 |
16 namespace gfx { | 16 namespace gfx { |
17 class Point; | 17 class Point; |
18 class Rect; | 18 class Rect; |
19 class Size; | 19 class Size; |
20 } | 20 } |
21 | 21 |
22 namespace ui { | 22 namespace ui { |
23 class Event; | 23 class Event; |
24 } | 24 } |
25 | 25 |
26 namespace ash { | 26 namespace ash { |
27 namespace wm { | |
28 | 27 |
29 class WmWindow; | 28 class WmWindow; |
30 | 29 |
| 30 namespace wm { |
| 31 |
31 // Utility functions for window activation. | 32 // Utility functions for window activation. |
32 ASH_EXPORT void ActivateWindow(aura::Window* window); | 33 ASH_EXPORT void ActivateWindow(aura::Window* window); |
33 ASH_EXPORT void DeactivateWindow(aura::Window* window); | 34 ASH_EXPORT void DeactivateWindow(aura::Window* window); |
34 ASH_EXPORT bool IsActiveWindow(aura::Window* window); | 35 ASH_EXPORT bool IsActiveWindow(aura::Window* window); |
35 ASH_EXPORT aura::Window* GetActiveWindow(); | 36 ASH_EXPORT aura::Window* GetActiveWindow(); |
36 ASH_EXPORT bool CanActivateWindow(aura::Window* window); | 37 ASH_EXPORT bool CanActivateWindow(aura::Window* window); |
37 | 38 |
38 // Retrieves the activatable window for |window|. If |window| is activatable, | 39 // Retrieves the activatable window for |window|. If |window| is activatable, |
39 // 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 |
40 // chain looking for a window that is activatable, per the ActivationController. | 41 // chain looking for a window that is activatable, per the ActivationController. |
(...skipping 23 matching lines...) Expand all Loading... |
64 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( | 65 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( |
65 aura::Window* container); | 66 aura::Window* container); |
66 | 67 |
67 // Traverse the |container| tree and installs SnapToPixelLayoutManager. | 68 // Traverse the |container| tree and installs SnapToPixelLayoutManager. |
68 void InstallSnapLayoutManagerToContainers(aura::Window* container); | 69 void InstallSnapLayoutManagerToContainers(aura::Window* container); |
69 | 70 |
70 } // namespace wm | 71 } // namespace wm |
71 } // namespace ash | 72 } // namespace ash |
72 | 73 |
73 #endif // ASH_WM_WINDOW_UTIL_H_ | 74 #endif // ASH_WM_WINDOW_UTIL_H_ |
OLD | NEW |