| 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 28 matching lines...) Expand all Loading... |
| 39 #include "ash/common/system/tray/system_tray_notifier.h" | 39 #include "ash/common/system/tray/system_tray_notifier.h" |
| 40 #include "ash/common/wallpaper/wallpaper_controller.h" | 40 #include "ash/common/wallpaper/wallpaper_controller.h" |
| 41 #include "ash/common/wallpaper/wallpaper_delegate.h" | 41 #include "ash/common/wallpaper/wallpaper_delegate.h" |
| 42 #include "ash/common/wm/immersive_context_ash.h" | 42 #include "ash/common/wm/immersive_context_ash.h" |
| 43 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" | 43 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" |
| 44 #include "ash/common/wm/mru_window_tracker.h" | 44 #include "ash/common/wm/mru_window_tracker.h" |
| 45 #include "ash/common/wm/overview/window_selector_controller.h" | 45 #include "ash/common/wm/overview/window_selector_controller.h" |
| 46 #include "ash/common/wm/root_window_finder.h" | 46 #include "ash/common/wm/root_window_finder.h" |
| 47 #include "ash/common/wm/system_modal_container_layout_manager.h" | 47 #include "ash/common/wm/system_modal_container_layout_manager.h" |
| 48 #include "ash/common/wm/window_cycle_controller.h" | 48 #include "ash/common/wm/window_cycle_controller.h" |
| 49 #include "ash/common/wm_root_window_controller.h" | |
| 50 #include "ash/common/wm_window.h" | 49 #include "ash/common/wm_window.h" |
| 51 #include "ash/public/cpp/shell_window_ids.h" | 50 #include "ash/public/cpp/shell_window_ids.h" |
| 51 #include "ash/root_window_controller.h" |
| 52 #include "base/bind.h" | 52 #include "base/bind.h" |
| 53 #include "base/logging.h" | 53 #include "base/logging.h" |
| 54 #include "base/memory/ptr_util.h" | 54 #include "base/memory/ptr_util.h" |
| 55 #include "services/preferences/public/cpp/pref_observer_store.h" | 55 #include "services/preferences/public/cpp/pref_observer_store.h" |
| 56 #include "services/preferences/public/interfaces/preferences.mojom.h" | 56 #include "services/preferences/public/interfaces/preferences.mojom.h" |
| 57 #include "services/service_manager/public/cpp/connector.h" | 57 #include "services/service_manager/public/cpp/connector.h" |
| 58 #include "ui/app_list/presenter/app_list.h" | 58 #include "ui/app_list/presenter/app_list.h" |
| 59 #include "ui/display/display.h" | 59 #include "ui/display/display.h" |
| 60 #include "ui/views/focus/focus_manager_factory.h" | 60 #include "ui/views/focus/focus_manager_factory.h" |
| 61 | 61 |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 // Can be null in tests. | 279 // Can be null in tests. |
| 280 if (!delegate_->GetShellConnector()) | 280 if (!delegate_->GetShellConnector()) |
| 281 return; | 281 return; |
| 282 delegate_->GetShellConnector()->BindInterface(prefs::mojom::kServiceName, | 282 delegate_->GetShellConnector()->BindInterface(prefs::mojom::kServiceName, |
| 283 &pref_manager_ptr); | 283 &pref_manager_ptr); |
| 284 pref_store_ = new preferences::PrefObserverStore(std::move(pref_manager_ptr)); | 284 pref_store_ = new preferences::PrefObserverStore(std::move(pref_manager_ptr)); |
| 285 } | 285 } |
| 286 | 286 |
| 287 WmShell::~WmShell() {} | 287 WmShell::~WmShell() {} |
| 288 | 288 |
| 289 WmRootWindowController* WmShell::GetPrimaryRootWindowController() { | 289 RootWindowController* WmShell::GetPrimaryRootWindowController() { |
| 290 return GetPrimaryRootWindow()->GetRootWindowController(); | 290 return GetPrimaryRootWindow()->GetRootWindowController(); |
| 291 } | 291 } |
| 292 | 292 |
| 293 WmWindow* WmShell::GetRootWindowForNewWindows() { | 293 WmWindow* WmShell::GetRootWindowForNewWindows() { |
| 294 if (scoped_root_window_for_new_windows_) | 294 if (scoped_root_window_for_new_windows_) |
| 295 return scoped_root_window_for_new_windows_; | 295 return scoped_root_window_for_new_windows_; |
| 296 return root_window_for_new_windows_; | 296 return root_window_for_new_windows_; |
| 297 } | 297 } |
| 298 | 298 |
| 299 bool WmShell::IsSystemModalWindowOpen() { | 299 bool WmShell::IsSystemModalWindowOpen() { |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 void WmShell::DeleteToastManager() { | 412 void WmShell::DeleteToastManager() { |
| 413 toast_manager_.reset(); | 413 toast_manager_.reset(); |
| 414 } | 414 } |
| 415 | 415 |
| 416 void WmShell::SetAcceleratorController( | 416 void WmShell::SetAcceleratorController( |
| 417 std::unique_ptr<AcceleratorController> accelerator_controller) { | 417 std::unique_ptr<AcceleratorController> accelerator_controller) { |
| 418 accelerator_controller_ = std::move(accelerator_controller); | 418 accelerator_controller_ = std::move(accelerator_controller); |
| 419 } | 419 } |
| 420 | 420 |
| 421 } // namespace ash | 421 } // namespace ash |
| OLD | NEW |