| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 WmShelf; | 66 class WmShelf; |
| 67 class WorkspaceController; | 67 class WorkspaceController; |
| 68 | 68 |
| 69 namespace mus { | 69 namespace mus { |
| 70 class RootWindowController; | 70 class WindowManager; |
| 71 } | 71 } |
| 72 | 72 |
| 73 namespace wm { | 73 namespace wm { |
| 74 class RootWindowLayoutManager; | 74 class RootWindowLayoutManager; |
| 75 } | 75 } |
| 76 | 76 |
| 77 // This class maintains the per root window state for ash. This class | 77 // This class maintains the per root window state for ash. This class |
| 78 // owns the root window and other dependent objects that should be | 78 // owns the root window and other dependent objects that should be |
| 79 // deleted upon the deletion of the root window. This object is | 79 // deleted upon the deletion of the root window. This object is |
| 80 // indirectly owned and deleted by |WindowTreeHostManager|. | 80 // indirectly owned and deleted by |WindowTreeHostManager|. |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 void ShowContextMenu(const gfx::Point& location_in_screen, | 284 void ShowContextMenu(const gfx::Point& location_in_screen, |
| 285 ui::MenuSourceType source_type); | 285 ui::MenuSourceType source_type); |
| 286 | 286 |
| 287 // Called when the login status changes after login (such as lock/unlock). | 287 // Called when the login status changes after login (such as lock/unlock). |
| 288 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|. | 288 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|. |
| 289 void UpdateAfterLoginStatusChange(LoginStatus status); | 289 void UpdateAfterLoginStatusChange(LoginStatus status); |
| 290 | 290 |
| 291 private: | 291 private: |
| 292 // TODO(sky): remove this. Temporary during ash-mus unification. | 292 // TODO(sky): remove this. Temporary during ash-mus unification. |
| 293 // http://crbug.com/671246. | 293 // http://crbug.com/671246. |
| 294 friend class mus::RootWindowController; | 294 friend class mus::WindowManager; |
| 295 | 295 |
| 296 // Creates a new RootWindowController with the specified host. Only one of | 296 // Creates a new RootWindowController with the specified host. Only one of |
| 297 // |ash_host| or |window_tree_host| should be specified. This takes ownership | 297 // |ash_host| or |window_tree_host| should be specified. This takes ownership |
| 298 // of the supplied arguments. | 298 // of the supplied arguments. |
| 299 // TODO(sky): mash should create AshWindowTreeHost, http://crbug.com/671246. | 299 // TODO(sky): mash should create AshWindowTreeHost, http://crbug.com/671246. |
| 300 RootWindowController(AshWindowTreeHost* ash_host, | 300 RootWindowController(AshWindowTreeHost* ash_host, |
| 301 aura::WindowTreeHost* window_tree_host); | 301 aura::WindowTreeHost* window_tree_host); |
| 302 | 302 |
| 303 // Initializes the RootWindowController based on |root_window_type|. | 303 // Initializes the RootWindowController based on |root_window_type|. |
| 304 void Init(RootWindowType root_window_type); | 304 void Init(RootWindowType root_window_type); |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 | 384 |
| 385 // On classic ash, returns the RootWindowController for the given |root_window|. | 385 // On classic ash, returns the RootWindowController for the given |root_window|. |
| 386 // On mus ash, returns the RootWindowController for the primary display. | 386 // On mus ash, returns the RootWindowController for the primary display. |
| 387 // See RootWindowController class comment above. | 387 // See RootWindowController class comment above. |
| 388 ASH_EXPORT RootWindowController* GetRootWindowController( | 388 ASH_EXPORT RootWindowController* GetRootWindowController( |
| 389 const aura::Window* root_window); | 389 const aura::Window* root_window); |
| 390 | 390 |
| 391 } // namespace ash | 391 } // namespace ash |
| 392 | 392 |
| 393 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 393 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
| OLD | NEW |