| 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_ROOT_WINDOW_CONTROLLER_H_ | 5 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_ |
| 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ | 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 class Shelf; | 56 class Shelf; |
| 57 class ShelfLayoutManager; | 57 class ShelfLayoutManager; |
| 58 class StackingController; | 58 class StackingController; |
| 59 class StatusAreaWidget; | 59 class StatusAreaWidget; |
| 60 class SystemModalContainerLayoutManager; | 60 class SystemModalContainerLayoutManager; |
| 61 class SystemTray; | 61 class SystemTray; |
| 62 class SystemWallpaperController; | 62 class SystemWallpaperController; |
| 63 class TouchHudDebug; | 63 class TouchHudDebug; |
| 64 class TouchHudProjection; | 64 class TouchHudProjection; |
| 65 class WallpaperWidgetController; | 65 class WallpaperWidgetController; |
| 66 class WmWindow; | |
| 67 class WorkspaceController; | 66 class WorkspaceController; |
| 68 | 67 |
| 69 namespace mus { | 68 namespace mus { |
| 70 class WindowManager; | 69 class WindowManager; |
| 71 } | 70 } |
| 72 | 71 |
| 73 namespace wm { | 72 namespace wm { |
| 74 class RootWindowLayoutManager; | 73 class RootWindowLayoutManager; |
| 75 } | 74 } |
| 76 | 75 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // TODO(sky): move these to a separate class or use AshWindowTreeHost in | 117 // TODO(sky): move these to a separate class or use AshWindowTreeHost in |
| 119 // mash. http://crbug.com/671246. | 118 // mash. http://crbug.com/671246. |
| 120 AshWindowTreeHost* ash_host() { return ash_host_.get(); } | 119 AshWindowTreeHost* ash_host() { return ash_host_.get(); } |
| 121 const AshWindowTreeHost* ash_host() const { return ash_host_.get(); } | 120 const AshWindowTreeHost* ash_host() const { return ash_host_.get(); } |
| 122 | 121 |
| 123 aura::WindowTreeHost* GetHost(); | 122 aura::WindowTreeHost* GetHost(); |
| 124 const aura::WindowTreeHost* GetHost() const; | 123 const aura::WindowTreeHost* GetHost() const; |
| 125 aura::Window* GetRootWindow(); | 124 aura::Window* GetRootWindow(); |
| 126 const aura::Window* GetRootWindow() const; | 125 const aura::Window* GetRootWindow() const; |
| 127 | 126 |
| 128 // TODO(sky): remove these. http://crbug.com/671246. | |
| 129 WmWindow* GetWindow() { | |
| 130 return const_cast<WmWindow*>( | |
| 131 const_cast<const RootWindowController*>(this)->GetWindow()); | |
| 132 } | |
| 133 const WmWindow* GetWindow() const; | |
| 134 | |
| 135 WorkspaceController* workspace_controller() { | 127 WorkspaceController* workspace_controller() { |
| 136 return workspace_controller_.get(); | 128 return workspace_controller_.get(); |
| 137 } | 129 } |
| 138 | 130 |
| 139 wm::WorkspaceWindowState GetWorkspaceWindowState(); | 131 wm::WorkspaceWindowState GetWorkspaceWindowState(); |
| 140 | 132 |
| 141 Shelf* shelf() const { return shelf_.get(); } | 133 Shelf* shelf() const { return shelf_.get(); } |
| 142 | 134 |
| 143 // Initializes the shelf for this root window and notifies observers. | 135 // Initializes the shelf for this root window and notifies observers. |
| 144 void InitializeShelf(); | 136 void InitializeShelf(); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 // may extend outside the bounds of the window. | 192 // may extend outside the bounds of the window. |
| 201 aura::Window* FindEventTarget(const gfx::Point& location_in_screen); | 193 aura::Window* FindEventTarget(const gfx::Point& location_in_screen); |
| 202 | 194 |
| 203 // Gets the last location seen in a mouse event in this root window's | 195 // Gets the last location seen in a mouse event in this root window's |
| 204 // coordinates. This may return a point outside the root window's bounds. | 196 // coordinates. This may return a point outside the root window's bounds. |
| 205 gfx::Point GetLastMouseLocationInRoot(); | 197 gfx::Point GetLastMouseLocationInRoot(); |
| 206 | 198 |
| 207 aura::Window* GetContainer(int container_id); | 199 aura::Window* GetContainer(int container_id); |
| 208 const aura::Window* GetContainer(int container_id) const; | 200 const aura::Window* GetContainer(int container_id) const; |
| 209 | 201 |
| 210 // TODO(sky): remove these. http://crbug.com/671246. | |
| 211 WmWindow* GetWmContainer(int container_id) { | |
| 212 return const_cast<WmWindow*>( | |
| 213 const_cast<const RootWindowController*>(this)->GetWmContainer( | |
| 214 container_id)); | |
| 215 } | |
| 216 const WmWindow* GetWmContainer(int container_id) const; | |
| 217 | |
| 218 WallpaperWidgetController* wallpaper_widget_controller() { | 202 WallpaperWidgetController* wallpaper_widget_controller() { |
| 219 return wallpaper_widget_controller_.get(); | 203 return wallpaper_widget_controller_.get(); |
| 220 } | 204 } |
| 221 void SetWallpaperWidgetController(WallpaperWidgetController* controller); | 205 void SetWallpaperWidgetController(WallpaperWidgetController* controller); |
| 222 | 206 |
| 223 AnimatingWallpaperWidgetController* animating_wallpaper_widget_controller() { | 207 AnimatingWallpaperWidgetController* animating_wallpaper_widget_controller() { |
| 224 return animating_wallpaper_widget_controller_.get(); | 208 return animating_wallpaper_widget_controller_.get(); |
| 225 } | 209 } |
| 226 void SetAnimatingWallpaperWidgetController( | 210 void SetAnimatingWallpaperWidgetController( |
| 227 AnimatingWallpaperWidgetController* controller); | 211 AnimatingWallpaperWidgetController* controller); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 | 361 |
| 378 // On classic ash, returns the RootWindowController for the given |root_window|. | 362 // On classic ash, returns the RootWindowController for the given |root_window|. |
| 379 // On mus ash, returns the RootWindowController for the primary display. | 363 // On mus ash, returns the RootWindowController for the primary display. |
| 380 // See RootWindowController class comment above. | 364 // See RootWindowController class comment above. |
| 381 ASH_EXPORT RootWindowController* GetRootWindowController( | 365 ASH_EXPORT RootWindowController* GetRootWindowController( |
| 382 const aura::Window* root_window); | 366 const aura::Window* root_window); |
| 383 | 367 |
| 384 } // namespace ash | 368 } // namespace ash |
| 385 | 369 |
| 386 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 370 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
| OLD | NEW |