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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "ui/base/ui_base_types.h" | 12 #include "ui/base/ui_base_types.h" |
13 | 13 |
14 namespace aura { | 14 namespace aura { |
15 class Window; | 15 class Window; |
16 } | 16 } |
17 | 17 |
18 namespace gfx { | 18 namespace gfx { |
19 class Point; | 19 class Point; |
20 } | 20 } |
21 | 21 |
22 namespace ui { | 22 namespace ui { |
23 class Event; | 23 class Event; |
24 class EventHandler; | 24 class EventHandler; |
25 } | 25 } |
26 | 26 |
27 namespace ash { | 27 namespace ash { |
| 28 |
| 29 class ImmersiveFullscreenController; |
| 30 |
28 namespace wm { | 31 namespace wm { |
29 | 32 |
30 // Utility functions for window activation. | 33 // Utility functions for window activation. |
31 ASH_EXPORT void ActivateWindow(aura::Window* window); | 34 ASH_EXPORT void ActivateWindow(aura::Window* window); |
32 ASH_EXPORT void DeactivateWindow(aura::Window* window); | 35 ASH_EXPORT void DeactivateWindow(aura::Window* window); |
33 ASH_EXPORT bool IsActiveWindow(aura::Window* window); | 36 ASH_EXPORT bool IsActiveWindow(aura::Window* window); |
34 ASH_EXPORT aura::Window* GetActiveWindow(); | 37 ASH_EXPORT aura::Window* GetActiveWindow(); |
35 ASH_EXPORT bool CanActivateWindow(aura::Window* window); | 38 ASH_EXPORT bool CanActivateWindow(aura::Window* window); |
36 ASH_EXPORT aura::Window* GetFocusedWindow(); | 39 ASH_EXPORT aura::Window* GetFocusedWindow(); |
37 | 40 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // see ash::GetInternalWidgetForWindow(). Ownership of the handler is not | 95 // see ash::GetInternalWidgetForWindow(). Ownership of the handler is not |
93 // transferred. | 96 // transferred. |
94 // | 97 // |
95 // Also note that the target of these events is always an aura::Window. | 98 // Also note that the target of these events is always an aura::Window. |
96 ASH_EXPORT void AddLimitedPreTargetHandlerForWindow(ui::EventHandler* handler, | 99 ASH_EXPORT void AddLimitedPreTargetHandlerForWindow(ui::EventHandler* handler, |
97 aura::Window* window); | 100 aura::Window* window); |
98 ASH_EXPORT void RemoveLimitedPreTargetHandlerForWindow( | 101 ASH_EXPORT void RemoveLimitedPreTargetHandlerForWindow( |
99 ui::EventHandler* handler, | 102 ui::EventHandler* handler, |
100 aura::Window* window); | 103 aura::Window* window); |
101 | 104 |
| 105 // Installs a resize handler on the window that makes it easier to resize |
| 106 // the window. See ResizeHandleWindowTargeter for the specifics. |
| 107 ASH_EXPORT void InstallResizeHandleWindowTargeterForWindow( |
| 108 aura::Window* window, |
| 109 ImmersiveFullscreenController* immersive_fullscreen_controller); |
| 110 |
102 } // namespace wm | 111 } // namespace wm |
103 } // namespace ash | 112 } // namespace ash |
104 | 113 |
105 #endif // ASH_WM_WINDOW_UTIL_H_ | 114 #endif // ASH_WM_WINDOW_UTIL_H_ |
OLD | NEW |