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

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

Issue 2513673004: Reland: chromeos: Convert ash VPNDelegate interface to mojo (Closed)
Patch Set: fix manifest for reland 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"
55 #include "ash/common/system/chromeos/session/logout_confirmation_controller.h" 56 #include "ash/common/system/chromeos/session/logout_confirmation_controller.h"
56 #endif 57 #endif
57 58
58 namespace ash { 59 namespace ash {
59 60
60 // static 61 // static
61 WmShell* WmShell::instance_ = nullptr; 62 WmShell* WmShell::instance_ = nullptr;
62 63
63 // static 64 // static
64 void WmShell::Set(WmShell* instance) { 65 void WmShell::Set(WmShell* instance) {
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 system_tray_controller_(base::MakeUnique<SystemTrayController>( 258 system_tray_controller_(base::MakeUnique<SystemTrayController>(
258 delegate_->GetShellConnector())), 259 delegate_->GetShellConnector())),
259 system_tray_notifier_(base::MakeUnique<SystemTrayNotifier>()), 260 system_tray_notifier_(base::MakeUnique<SystemTrayNotifier>()),
260 wallpaper_delegate_(delegate_->CreateWallpaperDelegate()), 261 wallpaper_delegate_(delegate_->CreateWallpaperDelegate()),
261 window_cycle_controller_(base::MakeUnique<WindowCycleController>()), 262 window_cycle_controller_(base::MakeUnique<WindowCycleController>()),
262 window_selector_controller_( 263 window_selector_controller_(
263 base::MakeUnique<WindowSelectorController>()) { 264 base::MakeUnique<WindowSelectorController>()) {
264 #if defined(OS_CHROMEOS) 265 #if defined(OS_CHROMEOS)
265 brightness_control_delegate_.reset(new system::BrightnessControllerChromeos); 266 brightness_control_delegate_.reset(new system::BrightnessControllerChromeos);
266 keyboard_brightness_control_delegate_.reset(new KeyboardBrightnessController); 267 keyboard_brightness_control_delegate_.reset(new KeyboardBrightnessController);
268 vpn_list_ = base::MakeUnique<VpnList>();
267 #endif 269 #endif
268 } 270 }
269 271
270 WmShell::~WmShell() {} 272 WmShell::~WmShell() {}
271 273
272 WmRootWindowController* WmShell::GetPrimaryRootWindowController() { 274 WmRootWindowController* WmShell::GetPrimaryRootWindowController() {
273 return GetPrimaryRootWindow()->GetRootWindowController(); 275 return GetPrimaryRootWindow()->GetRootWindowController();
274 } 276 }
275 277
276 WmWindow* WmShell::GetRootWindowForNewWindows() { 278 WmWindow* WmShell::GetRootWindowForNewWindows() {
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 void WmShell::DeleteToastManager() { 404 void WmShell::DeleteToastManager() {
403 toast_manager_.reset(); 405 toast_manager_.reset();
404 } 406 }
405 407
406 void WmShell::SetAcceleratorController( 408 void WmShell::SetAcceleratorController(
407 std::unique_ptr<AcceleratorController> accelerator_controller) { 409 std::unique_ptr<AcceleratorController> accelerator_controller) {
408 accelerator_controller_ = std::move(accelerator_controller); 410 accelerator_controller_ = std::move(accelerator_controller);
409 } 411 }
410 412
411 } // namespace ash 413 } // 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