Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: ash/common/wm_shell.cc

Issue 2522613004: Revert of chromeos: Convert ash VPNDelegate interface to mojo (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/wm_shell.h ('k') | ash/mus/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "base/bind.h" 45 #include "base/bind.h"
46 #include "base/logging.h" 46 #include "base/logging.h"
47 #include "base/memory/ptr_util.h" 47 #include "base/memory/ptr_util.h"
48 #include "ui/app_list/presenter/app_list_presenter.h" 48 #include "ui/app_list/presenter/app_list_presenter.h"
49 #include "ui/display/display.h" 49 #include "ui/display/display.h"
50 #include "ui/views/focus/focus_manager_factory.h" 50 #include "ui/views/focus/focus_manager_factory.h"
51 51
52 #if defined(OS_CHROMEOS) 52 #if defined(OS_CHROMEOS)
53 #include "ash/common/system/chromeos/brightness/brightness_controller_chromeos.h " 53 #include "ash/common/system/chromeos/brightness/brightness_controller_chromeos.h "
54 #include "ash/common/system/chromeos/keyboard_brightness_controller.h" 54 #include "ash/common/system/chromeos/keyboard_brightness_controller.h"
55 #include "ash/common/system/chromeos/network/vpn_list.h"
56 #include "ash/common/system/chromeos/session/logout_confirmation_controller.h" 55 #include "ash/common/system/chromeos/session/logout_confirmation_controller.h"
57 #endif 56 #endif
58 57
59 namespace ash { 58 namespace ash {
60 59
61 // static 60 // static
62 WmShell* WmShell::instance_ = nullptr; 61 WmShell* WmShell::instance_ = nullptr;
63 62
64 // static 63 // static
65 void WmShell::Set(WmShell* instance) { 64 void WmShell::Set(WmShell* instance) {
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 system_tray_controller_(base::MakeUnique<SystemTrayController>( 257 system_tray_controller_(base::MakeUnique<SystemTrayController>(
259 delegate_->GetShellConnector())), 258 delegate_->GetShellConnector())),
260 system_tray_notifier_(base::MakeUnique<SystemTrayNotifier>()), 259 system_tray_notifier_(base::MakeUnique<SystemTrayNotifier>()),
261 wallpaper_delegate_(delegate_->CreateWallpaperDelegate()), 260 wallpaper_delegate_(delegate_->CreateWallpaperDelegate()),
262 window_cycle_controller_(base::MakeUnique<WindowCycleController>()), 261 window_cycle_controller_(base::MakeUnique<WindowCycleController>()),
263 window_selector_controller_( 262 window_selector_controller_(
264 base::MakeUnique<WindowSelectorController>()) { 263 base::MakeUnique<WindowSelectorController>()) {
265 #if defined(OS_CHROMEOS) 264 #if defined(OS_CHROMEOS)
266 brightness_control_delegate_.reset(new system::BrightnessControllerChromeos); 265 brightness_control_delegate_.reset(new system::BrightnessControllerChromeos);
267 keyboard_brightness_control_delegate_.reset(new KeyboardBrightnessController); 266 keyboard_brightness_control_delegate_.reset(new KeyboardBrightnessController);
268 vpn_list_ = base::MakeUnique<VpnList>();
269 #endif 267 #endif
270 } 268 }
271 269
272 WmShell::~WmShell() {} 270 WmShell::~WmShell() {}
273 271
274 WmRootWindowController* WmShell::GetPrimaryRootWindowController() { 272 WmRootWindowController* WmShell::GetPrimaryRootWindowController() {
275 return GetPrimaryRootWindow()->GetRootWindowController(); 273 return GetPrimaryRootWindow()->GetRootWindowController();
276 } 274 }
277 275
278 WmWindow* WmShell::GetRootWindowForNewWindows() { 276 WmWindow* WmShell::GetRootWindowForNewWindows() {
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 void WmShell::DeleteToastManager() { 402 void WmShell::DeleteToastManager() {
405 toast_manager_.reset(); 403 toast_manager_.reset();
406 } 404 }
407 405
408 void WmShell::SetAcceleratorController( 406 void WmShell::SetAcceleratorController(
409 std::unique_ptr<AcceleratorController> accelerator_controller) { 407 std::unique_ptr<AcceleratorController> accelerator_controller) {
410 accelerator_controller_ = std::move(accelerator_controller); 408 accelerator_controller_ = std::move(accelerator_controller);
411 } 409 }
412 410
413 } // namespace ash 411 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm_shell.h ('k') | ash/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698