Chromium Code Reviews| 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 #include "ash/root_window_controller.h" | 5 #include "ash/root_window_controller.h" |
| 6 | 6 |
| 7 #include <queue> | 7 #include <queue> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/aura/aura_layout_manager_adapter.h" | 10 #include "ash/aura/aura_layout_manager_adapter.h" |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 #include "ash/common/shell_window_ids.h" | 24 #include "ash/common/shell_window_ids.h" |
| 25 #include "ash/common/system/status_area_layout_manager.h" | 25 #include "ash/common/system/status_area_layout_manager.h" |
| 26 #include "ash/common/system/status_area_widget.h" | 26 #include "ash/common/system/status_area_widget.h" |
| 27 #include "ash/common/system/tray/system_tray_delegate.h" | 27 #include "ash/common/system/tray/system_tray_delegate.h" |
| 28 #include "ash/common/wallpaper/wallpaper_delegate.h" | 28 #include "ash/common/wallpaper/wallpaper_delegate.h" |
| 29 #include "ash/common/wallpaper/wallpaper_widget_controller.h" | 29 #include "ash/common/wallpaper/wallpaper_widget_controller.h" |
| 30 #include "ash/common/wm/always_on_top_controller.h" | 30 #include "ash/common/wm/always_on_top_controller.h" |
| 31 #include "ash/common/wm/container_finder.h" | 31 #include "ash/common/wm/container_finder.h" |
| 32 #include "ash/common/wm/dock/docked_window_layout_manager.h" | 32 #include "ash/common/wm/dock/docked_window_layout_manager.h" |
| 33 #include "ash/common/wm/fullscreen_window_finder.h" | 33 #include "ash/common/wm/fullscreen_window_finder.h" |
| 34 #include "ash/common/wm/lock_layout_manager.h" | |
| 34 #include "ash/common/wm/panels/panel_layout_manager.h" | 35 #include "ash/common/wm/panels/panel_layout_manager.h" |
| 35 #include "ash/common/wm/root_window_layout_manager.h" | 36 #include "ash/common/wm/root_window_layout_manager.h" |
| 36 #include "ash/common/wm/switchable_windows.h" | 37 #include "ash/common/wm/switchable_windows.h" |
| 37 #include "ash/common/wm/system_modal_container_layout_manager.h" | 38 #include "ash/common/wm/system_modal_container_layout_manager.h" |
| 38 #include "ash/common/wm/window_state.h" | 39 #include "ash/common/wm/window_state.h" |
| 39 #include "ash/common/wm/workspace/workspace_layout_manager.h" | 40 #include "ash/common/wm/workspace/workspace_layout_manager.h" |
| 40 #include "ash/common/wm/workspace_controller.h" | 41 #include "ash/common/wm/workspace_controller.h" |
| 41 #include "ash/common/wm_shell.h" | 42 #include "ash/common/wm_shell.h" |
| 42 #include "ash/common/wm_window.h" | 43 #include "ash/common/wm_window.h" |
| 43 #include "ash/display/display_manager.h" | 44 #include "ash/display/display_manager.h" |
| 44 #include "ash/high_contrast/high_contrast_controller.h" | 45 #include "ash/high_contrast/high_contrast_controller.h" |
| 45 #include "ash/host/ash_window_tree_host.h" | 46 #include "ash/host/ash_window_tree_host.h" |
| 46 #include "ash/root_window_settings.h" | 47 #include "ash/root_window_settings.h" |
| 47 #include "ash/shelf/shelf_window_targeter.h" | 48 #include "ash/shelf/shelf_window_targeter.h" |
| 48 #include "ash/shell.h" | 49 #include "ash/shell.h" |
| 49 #include "ash/touch/touch_hud_debug.h" | 50 #include "ash/touch/touch_hud_debug.h" |
| 50 #include "ash/touch/touch_hud_projection.h" | 51 #include "ash/touch/touch_hud_projection.h" |
| 51 #include "ash/touch/touch_observer_hud.h" | 52 #include "ash/touch/touch_observer_hud.h" |
| 52 #include "ash/wm/lock_layout_manager.h" | |
| 53 #include "ash/wm/panels/attached_panel_window_targeter.h" | 53 #include "ash/wm/panels/attached_panel_window_targeter.h" |
| 54 #include "ash/wm/panels/panel_window_event_handler.h" | 54 #include "ash/wm/panels/panel_window_event_handler.h" |
| 55 #include "ash/wm/stacking_controller.h" | 55 #include "ash/wm/stacking_controller.h" |
| 56 #include "ash/wm/system_wallpaper_controller.h" | 56 #include "ash/wm/system_wallpaper_controller.h" |
| 57 #include "ash/wm/window_properties.h" | 57 #include "ash/wm/window_properties.h" |
| 58 #include "ash/wm/window_state_aura.h" | 58 #include "ash/wm/window_state_aura.h" |
| 59 #include "ash/wm/window_util.h" | 59 #include "ash/wm/window_util.h" |
| 60 #include "base/command_line.h" | 60 #include "base/command_line.h" |
| 61 #include "base/macros.h" | 61 #include "base/macros.h" |
| 62 #include "base/memory/ptr_util.h" | 62 #include "base/memory/ptr_util.h" |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 610 touch_exploration_manager_.reset(new AshTouchExplorationManager(this)); | 610 touch_exploration_manager_.reset(new AshTouchExplorationManager(this)); |
| 611 } | 611 } |
| 612 #endif | 612 #endif |
| 613 } | 613 } |
| 614 | 614 |
| 615 void RootWindowController::InitLayoutManagers() { | 615 void RootWindowController::InitLayoutManagers() { |
| 616 wm_root_window_controller_->CreateLayoutManagers(); | 616 wm_root_window_controller_->CreateLayoutManagers(); |
| 617 | 617 |
| 618 aura::Window* root_window = GetRootWindow(); | 618 aura::Window* root_window = GetRootWindow(); |
| 619 | 619 |
| 620 aura::Window* lock_container = | 620 WmWindow* lock_container = WmWindowAura::Get( |
| 621 root_window->GetChildById(kShellWindowId_LockScreenContainer); | 621 root_window->GetChildById(kShellWindowId_LockScreenContainer)); |
| 622 DCHECK(lock_container); | 622 DCHECK(lock_container); |
| 623 lock_container->SetLayoutManager(new LockLayoutManager(lock_container)); | 623 lock_container->SetLayoutManager( |
|
James Cook
2016/09/20 18:22:47
Does this need to happen in ash/mus/root_window_co
| |
| 624 base::MakeUnique<LockLayoutManager>(lock_container)); | |
| 624 | 625 |
| 625 WmWindow* always_on_top_container = | 626 WmWindow* always_on_top_container = |
| 626 WmWindowAura::Get(GetContainer(kShellWindowId_AlwaysOnTopContainer)); | 627 WmWindowAura::Get(GetContainer(kShellWindowId_AlwaysOnTopContainer)); |
| 627 always_on_top_controller_.reset( | 628 always_on_top_controller_.reset( |
| 628 new AlwaysOnTopController(always_on_top_container)); | 629 new AlwaysOnTopController(always_on_top_container)); |
| 629 | 630 |
| 630 // Create the shelf and status area widgets. | 631 // Create the shelf and status area widgets. |
| 631 DCHECK(!wm_shelf_aura_->shelf_widget()); | 632 DCHECK(!wm_shelf_aura_->shelf_widget()); |
| 632 aura::Window* shelf_container = GetContainer(kShellWindowId_ShelfContainer); | 633 aura::Window* shelf_container = GetContainer(kShellWindowId_ShelfContainer); |
| 633 aura::Window* status_container = GetContainer(kShellWindowId_StatusContainer); | 634 aura::Window* status_container = GetContainer(kShellWindowId_StatusContainer); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 736 EnableTouchHudProjection(); | 737 EnableTouchHudProjection(); |
| 737 else | 738 else |
| 738 DisableTouchHudProjection(); | 739 DisableTouchHudProjection(); |
| 739 } | 740 } |
| 740 | 741 |
| 741 RootWindowController* GetRootWindowController(const aura::Window* root_window) { | 742 RootWindowController* GetRootWindowController(const aura::Window* root_window) { |
| 742 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr; | 743 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr; |
| 743 } | 744 } |
| 744 | 745 |
| 745 } // namespace ash | 746 } // namespace ash |
| OLD | NEW |