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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 namespace wm { | 44 namespace wm { |
45 class ScopedCaptureClient; | 45 class ScopedCaptureClient; |
46 } | 46 } |
47 | 47 |
48 namespace ash { | 48 namespace ash { |
49 class AlwaysOnTopController; | 49 class AlwaysOnTopController; |
50 class AnimatingWallpaperWidgetController; | 50 class AnimatingWallpaperWidgetController; |
51 class AshTouchExplorationManager; | 51 class AshTouchExplorationManager; |
52 class AshWindowTreeHost; | 52 class AshWindowTreeHost; |
53 class BootSplashScreen; | 53 class BootSplashScreen; |
54 class DockedWindowLayoutManager; | |
55 enum class LoginStatus; | 54 enum class LoginStatus; |
56 class PanelLayoutManager; | 55 class PanelLayoutManager; |
57 class ShelfLayoutManager; | 56 class ShelfLayoutManager; |
58 class StackingController; | 57 class StackingController; |
59 class StatusAreaWidget; | 58 class StatusAreaWidget; |
60 class SystemModalContainerLayoutManager; | 59 class SystemModalContainerLayoutManager; |
61 class SystemTray; | 60 class SystemTray; |
62 class SystemWallpaperController; | 61 class SystemWallpaperController; |
63 class TouchHudDebug; | 62 class TouchHudDebug; |
64 class TouchHudProjection; | 63 class TouchHudProjection; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 154 |
156 // Set touch HUDs for this root window controller. The root window controller | 155 // Set touch HUDs for this root window controller. The root window controller |
157 // will not own the HUDs; their lifetimes are managed by themselves. Whenever | 156 // will not own the HUDs; their lifetimes are managed by themselves. Whenever |
158 // the widget showing a HUD is being destroyed (e.g. because of detaching a | 157 // the widget showing a HUD is being destroyed (e.g. because of detaching a |
159 // display), the HUD deletes itself. | 158 // display), the HUD deletes itself. |
160 void set_touch_hud_debug(TouchHudDebug* hud) { touch_hud_debug_ = hud; } | 159 void set_touch_hud_debug(TouchHudDebug* hud) { touch_hud_debug_ = hud; } |
161 void set_touch_hud_projection(TouchHudProjection* hud) { | 160 void set_touch_hud_projection(TouchHudProjection* hud) { |
162 touch_hud_projection_ = hud; | 161 touch_hud_projection_ = hud; |
163 } | 162 } |
164 | 163 |
165 DockedWindowLayoutManager* docked_window_layout_manager() { | |
166 return docked_window_layout_manager_; | |
167 } | |
168 | |
169 PanelLayoutManager* panel_layout_manager() { return panel_layout_manager_; } | 164 PanelLayoutManager* panel_layout_manager() { return panel_layout_manager_; } |
170 | 165 |
171 wm::RootWindowLayoutManager* root_window_layout_manager() { | 166 wm::RootWindowLayoutManager* root_window_layout_manager() { |
172 return root_window_layout_manager_; | 167 return root_window_layout_manager_; |
173 } | 168 } |
174 | 169 |
175 // Access the shelf layout manager associated with this root | 170 // Access the shelf layout manager associated with this root |
176 // window controller, NULL if no such shelf exists. | 171 // window controller, NULL if no such shelf exists. |
177 ShelfLayoutManager* GetShelfLayoutManager(); | 172 ShelfLayoutManager* GetShelfLayoutManager(); |
178 | 173 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 // Overridden from ShellObserver. | 325 // Overridden from ShellObserver. |
331 void OnLoginStateChanged(LoginStatus status) override; | 326 void OnLoginStateChanged(LoginStatus status) override; |
332 void OnTouchHudProjectionToggled(bool enabled) override; | 327 void OnTouchHudProjectionToggled(bool enabled) override; |
333 | 328 |
334 std::unique_ptr<AshWindowTreeHost> ash_host_; | 329 std::unique_ptr<AshWindowTreeHost> ash_host_; |
335 std::unique_ptr<aura::WindowTreeHost> mus_window_tree_host_; | 330 std::unique_ptr<aura::WindowTreeHost> mus_window_tree_host_; |
336 // This comes from |ash_host_| or |mus_window_tree_host_|. | 331 // This comes from |ash_host_| or |mus_window_tree_host_|. |
337 aura::WindowTreeHost* window_tree_host_; | 332 aura::WindowTreeHost* window_tree_host_; |
338 | 333 |
339 // LayoutManagers are owned by the window they are installed on. | 334 // LayoutManagers are owned by the window they are installed on. |
340 DockedWindowLayoutManager* docked_window_layout_manager_ = nullptr; | |
341 PanelLayoutManager* panel_layout_manager_ = nullptr; | 335 PanelLayoutManager* panel_layout_manager_ = nullptr; |
342 wm::RootWindowLayoutManager* root_window_layout_manager_ = nullptr; | 336 wm::RootWindowLayoutManager* root_window_layout_manager_ = nullptr; |
343 | 337 |
344 std::unique_ptr<WallpaperWidgetController> wallpaper_widget_controller_; | 338 std::unique_ptr<WallpaperWidgetController> wallpaper_widget_controller_; |
345 std::unique_ptr<AnimatingWallpaperWidgetController> | 339 std::unique_ptr<AnimatingWallpaperWidgetController> |
346 animating_wallpaper_widget_controller_; | 340 animating_wallpaper_widget_controller_; |
347 std::unique_ptr<WorkspaceController> workspace_controller_; | 341 std::unique_ptr<WorkspaceController> workspace_controller_; |
348 | 342 |
349 std::unique_ptr<AlwaysOnTopController> always_on_top_controller_; | 343 std::unique_ptr<AlwaysOnTopController> always_on_top_controller_; |
350 | 344 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 | 378 |
385 // On classic ash, returns the RootWindowController for the given |root_window|. | 379 // On classic ash, returns the RootWindowController for the given |root_window|. |
386 // On mus ash, returns the RootWindowController for the primary display. | 380 // On mus ash, returns the RootWindowController for the primary display. |
387 // See RootWindowController class comment above. | 381 // See RootWindowController class comment above. |
388 ASH_EXPORT RootWindowController* GetRootWindowController( | 382 ASH_EXPORT RootWindowController* GetRootWindowController( |
389 const aura::Window* root_window); | 383 const aura::Window* root_window); |
390 | 384 |
391 } // namespace ash | 385 } // namespace ash |
392 | 386 |
393 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 387 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |