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

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

Issue 2738133003: Promotes a handful of members from WmShell to Shell (Closed)
Patch Set: merge Created 3 years, 9 months 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/keyboard/keyboard_ui.cc ('k') | ash/common/shelf/shelf_widget.cc » ('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/mojo_interface_factory.h" 5 #include "ash/common/mojo_interface_factory.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/cast_config_controller.h" 10 #include "ash/common/cast_config_controller.h"
11 #include "ash/common/media_controller.h" 11 #include "ash/common/media_controller.h"
12 #include "ash/common/new_window_controller.h" 12 #include "ash/common/new_window_controller.h"
13 #include "ash/common/session/session_controller.h" 13 #include "ash/common/session/session_controller.h"
14 #include "ash/common/shelf/shelf_controller.h" 14 #include "ash/common/shelf/shelf_controller.h"
15 #include "ash/common/shell_delegate.h" 15 #include "ash/common/shell_delegate.h"
16 #include "ash/common/shutdown_controller.h" 16 #include "ash/common/shutdown_controller.h"
17 #include "ash/common/system/chromeos/network/vpn_list.h" 17 #include "ash/common/system/chromeos/network/vpn_list.h"
18 #include "ash/common/system/locale/locale_notification_controller.h" 18 #include "ash/common/system/locale/locale_notification_controller.h"
19 #include "ash/common/system/tray/system_tray_controller.h" 19 #include "ash/common/system/tray/system_tray_controller.h"
20 #include "ash/common/wallpaper/wallpaper_controller.h" 20 #include "ash/common/wallpaper/wallpaper_controller.h"
21 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" 21 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
22 #include "ash/common/wm_shell.h" 22 #include "ash/common/wm_shell.h"
23 #include "ash/shell.h"
23 #include "base/bind.h" 24 #include "base/bind.h"
24 #include "services/service_manager/public/cpp/interface_registry.h" 25 #include "services/service_manager/public/cpp/interface_registry.h"
25 #include "ui/app_list/presenter/app_list.h" 26 #include "ui/app_list/presenter/app_list.h"
26 27
27 namespace ash { 28 namespace ash {
28 29
29 namespace { 30 namespace {
30 31
31 void BindAcceleratorControllerRequestOnMainThread( 32 void BindAcceleratorControllerRequestOnMainThread(
32 mojom::AcceleratorControllerRequest request) { 33 mojom::AcceleratorControllerRequest request) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 void BindTouchViewRequestOnMainThread(mojom::TouchViewManagerRequest request) { 79 void BindTouchViewRequestOnMainThread(mojom::TouchViewManagerRequest request) {
79 WmShell::Get()->maximize_mode_controller()->BindRequest(std::move(request)); 80 WmShell::Get()->maximize_mode_controller()->BindRequest(std::move(request));
80 } 81 }
81 82
82 void BindVpnListRequestOnMainThread(mojom::VpnListRequest request) { 83 void BindVpnListRequestOnMainThread(mojom::VpnListRequest request) {
83 WmShell::Get()->vpn_list()->BindRequest(std::move(request)); 84 WmShell::Get()->vpn_list()->BindRequest(std::move(request));
84 } 85 }
85 86
86 void BindWallpaperRequestOnMainThread( 87 void BindWallpaperRequestOnMainThread(
87 mojom::WallpaperControllerRequest request) { 88 mojom::WallpaperControllerRequest request) {
88 WmShell::Get()->wallpaper_controller()->BindRequest(std::move(request)); 89 Shell::GetInstance()->wallpaper_controller()->BindRequest(std::move(request));
89 } 90 }
90 91
91 } // namespace 92 } // namespace
92 93
93 namespace mojo_interface_factory { 94 namespace mojo_interface_factory {
94 95
95 void RegisterInterfaces( 96 void RegisterInterfaces(
96 service_manager::InterfaceRegistry* registry, 97 service_manager::InterfaceRegistry* registry,
97 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner) { 98 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner) {
98 registry->AddInterface( 99 registry->AddInterface(
(...skipping 23 matching lines...) Expand all
122 main_thread_task_runner); 123 main_thread_task_runner);
123 registry->AddInterface(base::Bind(&BindVpnListRequestOnMainThread), 124 registry->AddInterface(base::Bind(&BindVpnListRequestOnMainThread),
124 main_thread_task_runner); 125 main_thread_task_runner);
125 registry->AddInterface(base::Bind(&BindWallpaperRequestOnMainThread), 126 registry->AddInterface(base::Bind(&BindWallpaperRequestOnMainThread),
126 main_thread_task_runner); 127 main_thread_task_runner);
127 } 128 }
128 129
129 } // namespace mojo_interface_factory 130 } // namespace mojo_interface_factory
130 131
131 } // namespace ash 132 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/keyboard/keyboard_ui.cc ('k') | ash/common/shelf/shelf_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698