| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/common/wm_shell.h" | 5 #include "ash/common/wm_shell.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "ash/common/accelerators/accelerator_controller.h" | 9 #include "ash/common/accelerators/accelerator_controller.h" |
| 10 #include "ash/common/accelerators/ash_focus_manager_factory.h" | 10 #include "ash/common/accelerators/ash_focus_manager_factory.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 #include "ash/common/wm/overview/window_selector_controller.h" | 40 #include "ash/common/wm/overview/window_selector_controller.h" |
| 41 #include "ash/common/wm/root_window_finder.h" | 41 #include "ash/common/wm/root_window_finder.h" |
| 42 #include "ash/common/wm/system_modal_container_layout_manager.h" | 42 #include "ash/common/wm/system_modal_container_layout_manager.h" |
| 43 #include "ash/common/wm/window_cycle_controller.h" | 43 #include "ash/common/wm/window_cycle_controller.h" |
| 44 #include "ash/common/wm_root_window_controller.h" | 44 #include "ash/common/wm_root_window_controller.h" |
| 45 #include "ash/common/wm_window.h" | 45 #include "ash/common/wm_window.h" |
| 46 #include "ash/public/cpp/shell_window_ids.h" | 46 #include "ash/public/cpp/shell_window_ids.h" |
| 47 #include "base/bind.h" | 47 #include "base/bind.h" |
| 48 #include "base/logging.h" | 48 #include "base/logging.h" |
| 49 #include "base/memory/ptr_util.h" | 49 #include "base/memory/ptr_util.h" |
| 50 #include "ui/app_list/presenter/app_list.h" |
| 50 #include "ui/app_list/presenter/app_list_presenter.h" | 51 #include "ui/app_list/presenter/app_list_presenter.h" |
| 51 #include "ui/display/display.h" | 52 #include "ui/display/display.h" |
| 52 #include "ui/views/focus/focus_manager_factory.h" | 53 #include "ui/views/focus/focus_manager_factory.h" |
| 53 | 54 |
| 54 #if defined(OS_CHROMEOS) | 55 #if defined(OS_CHROMEOS) |
| 55 #include "ash/common/system/chromeos/brightness/brightness_controller_chromeos.h
" | 56 #include "ash/common/system/chromeos/brightness/brightness_controller_chromeos.h
" |
| 56 #include "ash/common/system/chromeos/keyboard_brightness_controller.h" | 57 #include "ash/common/system/chromeos/keyboard_brightness_controller.h" |
| 57 #include "ash/common/system/chromeos/network/vpn_list.h" | 58 #include "ash/common/system/chromeos/network/vpn_list.h" |
| 58 #include "ash/common/system/chromeos/session/logout_confirmation_controller.h" | 59 #include "ash/common/system/chromeos/session/logout_confirmation_controller.h" |
| 59 #endif | 60 #endif |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 shelf_delegate_ = std::move(test_delegate); | 243 shelf_delegate_ = std::move(test_delegate); |
| 243 } | 244 } |
| 244 | 245 |
| 245 void WmShell::SetPaletteDelegateForTesting( | 246 void WmShell::SetPaletteDelegateForTesting( |
| 246 std::unique_ptr<PaletteDelegate> palette_delegate) { | 247 std::unique_ptr<PaletteDelegate> palette_delegate) { |
| 247 palette_delegate_ = std::move(palette_delegate); | 248 palette_delegate_ = std::move(palette_delegate); |
| 248 } | 249 } |
| 249 | 250 |
| 250 WmShell::WmShell(std::unique_ptr<ShellDelegate> shell_delegate) | 251 WmShell::WmShell(std::unique_ptr<ShellDelegate> shell_delegate) |
| 251 : delegate_(std::move(shell_delegate)), | 252 : delegate_(std::move(shell_delegate)), |
| 253 app_list_(base::MakeUnique<app_list::AppList>()), |
| 252 cast_config_(base::MakeUnique<CastConfigController>()), | 254 cast_config_(base::MakeUnique<CastConfigController>()), |
| 253 focus_cycler_(base::MakeUnique<FocusCycler>()), | 255 focus_cycler_(base::MakeUnique<FocusCycler>()), |
| 254 immersive_context_(base::MakeUnique<ImmersiveContextAsh>()), | 256 immersive_context_(base::MakeUnique<ImmersiveContextAsh>()), |
| 255 locale_notification_controller_( | 257 locale_notification_controller_( |
| 256 base::MakeUnique<LocaleNotificationController>()), | 258 base::MakeUnique<LocaleNotificationController>()), |
| 257 new_window_controller_(base::MakeUnique<NewWindowController>()), | 259 new_window_controller_(base::MakeUnique<NewWindowController>()), |
| 258 session_controller_(base::MakeUnique<SessionController>()), | 260 session_controller_(base::MakeUnique<SessionController>()), |
| 259 shelf_controller_(base::MakeUnique<ShelfController>()), | 261 shelf_controller_(base::MakeUnique<ShelfController>()), |
| 260 shutdown_controller_(base::MakeUnique<ShutdownController>()), | 262 shutdown_controller_(base::MakeUnique<ShutdownController>()), |
| 261 system_tray_controller_(base::MakeUnique<SystemTrayController>()), | 263 system_tray_controller_(base::MakeUnique<SystemTrayController>()), |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 void WmShell::DeleteToastManager() { | 408 void WmShell::DeleteToastManager() { |
| 407 toast_manager_.reset(); | 409 toast_manager_.reset(); |
| 408 } | 410 } |
| 409 | 411 |
| 410 void WmShell::SetAcceleratorController( | 412 void WmShell::SetAcceleratorController( |
| 411 std::unique_ptr<AcceleratorController> accelerator_controller) { | 413 std::unique_ptr<AcceleratorController> accelerator_controller) { |
| 412 accelerator_controller_ = std::move(accelerator_controller); | 414 accelerator_controller_ = std::move(accelerator_controller); |
| 413 } | 415 } |
| 414 | 416 |
| 415 } // namespace ash | 417 } // namespace ash |
| OLD | NEW |