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/mojo_interface_factory.h" | 5 #include "ash/mojo_interface_factory.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/accelerators/accelerator_controller.h" | 9 #include "ash/accelerators/accelerator_controller.h" |
10 #include "ash/cast_config_controller.h" | 10 #include "ash/cast_config_controller.h" |
| 11 #include "ash/login/lock_screen_controller.h" |
11 #include "ash/media_controller.h" | 12 #include "ash/media_controller.h" |
12 #include "ash/new_window_controller.h" | 13 #include "ash/new_window_controller.h" |
13 #include "ash/session/session_controller.h" | 14 #include "ash/session/session_controller.h" |
14 #include "ash/shelf/shelf_controller.h" | 15 #include "ash/shelf/shelf_controller.h" |
15 #include "ash/shell.h" | 16 #include "ash/shell.h" |
16 #include "ash/shell_delegate.h" | 17 #include "ash/shell_delegate.h" |
17 #include "ash/shutdown_controller.h" | 18 #include "ash/shutdown_controller.h" |
18 #include "ash/system/locale/locale_notification_controller.h" | 19 #include "ash/system/locale/locale_notification_controller.h" |
19 #include "ash/system/network/vpn_list.h" | 20 #include "ash/system/network/vpn_list.h" |
20 #include "ash/system/tray/system_tray_controller.h" | 21 #include "ash/system/tray/system_tray_controller.h" |
(...skipping 27 matching lines...) Expand all Loading... |
48 Shell::Get()->cast_config()->BindRequest(std::move(request)); | 49 Shell::Get()->cast_config()->BindRequest(std::move(request)); |
49 } | 50 } |
50 | 51 |
51 void BindLocaleNotificationControllerOnMainThread( | 52 void BindLocaleNotificationControllerOnMainThread( |
52 const service_manager::BindSourceInfo& source_info, | 53 const service_manager::BindSourceInfo& source_info, |
53 mojom::LocaleNotificationControllerRequest request) { | 54 mojom::LocaleNotificationControllerRequest request) { |
54 Shell::Get()->locale_notification_controller()->BindRequest( | 55 Shell::Get()->locale_notification_controller()->BindRequest( |
55 std::move(request)); | 56 std::move(request)); |
56 } | 57 } |
57 | 58 |
| 59 void BindLockScreenRequestOnMainThread( |
| 60 const service_manager::BindSourceInfo& source_info, |
| 61 mojom::LockScreenRequest request) { |
| 62 Shell::Get()->lock_screen_controller()->BindRequest(std::move(request)); |
| 63 } |
| 64 |
58 void BindMediaControllerRequestOnMainThread( | 65 void BindMediaControllerRequestOnMainThread( |
59 const service_manager::BindSourceInfo& source_info, | 66 const service_manager::BindSourceInfo& source_info, |
60 mojom::MediaControllerRequest request) { | 67 mojom::MediaControllerRequest request) { |
61 Shell::Get()->media_controller()->BindRequest(std::move(request)); | 68 Shell::Get()->media_controller()->BindRequest(std::move(request)); |
62 } | 69 } |
63 | 70 |
64 void BindNewWindowControllerRequestOnMainThread( | 71 void BindNewWindowControllerRequestOnMainThread( |
65 const service_manager::BindSourceInfo& source_info, | 72 const service_manager::BindSourceInfo& source_info, |
66 mojom::NewWindowControllerRequest request) { | 73 mojom::NewWindowControllerRequest request) { |
67 Shell::Get()->new_window_controller()->BindRequest(std::move(request)); | 74 Shell::Get()->new_window_controller()->BindRequest(std::move(request)); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 registry->AddInterface( | 132 registry->AddInterface( |
126 base::Bind(&BindAcceleratorControllerRequestOnMainThread), | 133 base::Bind(&BindAcceleratorControllerRequestOnMainThread), |
127 main_thread_task_runner); | 134 main_thread_task_runner); |
128 registry->AddInterface(base::Bind(&BindAppListRequestOnMainThread), | 135 registry->AddInterface(base::Bind(&BindAppListRequestOnMainThread), |
129 main_thread_task_runner); | 136 main_thread_task_runner); |
130 registry->AddInterface(base::Bind(&BindCastConfigOnMainThread), | 137 registry->AddInterface(base::Bind(&BindCastConfigOnMainThread), |
131 main_thread_task_runner); | 138 main_thread_task_runner); |
132 registry->AddInterface( | 139 registry->AddInterface( |
133 base::Bind(&BindLocaleNotificationControllerOnMainThread), | 140 base::Bind(&BindLocaleNotificationControllerOnMainThread), |
134 main_thread_task_runner); | 141 main_thread_task_runner); |
| 142 registry->AddInterface(base::Bind(&BindLockScreenRequestOnMainThread), |
| 143 main_thread_task_runner); |
135 registry->AddInterface(base::Bind(&BindMediaControllerRequestOnMainThread), | 144 registry->AddInterface(base::Bind(&BindMediaControllerRequestOnMainThread), |
136 main_thread_task_runner); | 145 main_thread_task_runner); |
137 registry->AddInterface( | 146 registry->AddInterface( |
138 base::Bind(&BindNewWindowControllerRequestOnMainThread), | 147 base::Bind(&BindNewWindowControllerRequestOnMainThread), |
139 main_thread_task_runner); | 148 main_thread_task_runner); |
140 registry->AddInterface(base::Bind(&BindSessionControllerRequestOnMainThread), | 149 registry->AddInterface(base::Bind(&BindSessionControllerRequestOnMainThread), |
141 main_thread_task_runner); | 150 main_thread_task_runner); |
142 registry->AddInterface(base::Bind(&BindShelfRequestOnMainThread), | 151 registry->AddInterface(base::Bind(&BindShelfRequestOnMainThread), |
143 main_thread_task_runner); | 152 main_thread_task_runner); |
144 registry->AddInterface(base::Bind(&BindShutdownControllerRequestOnMainThread), | 153 registry->AddInterface(base::Bind(&BindShutdownControllerRequestOnMainThread), |
145 main_thread_task_runner); | 154 main_thread_task_runner); |
146 registry->AddInterface(base::Bind(&BindSystemTrayRequestOnMainThread), | 155 registry->AddInterface(base::Bind(&BindSystemTrayRequestOnMainThread), |
147 main_thread_task_runner); | 156 main_thread_task_runner); |
148 registry->AddInterface(base::Bind(&BindTouchViewRequestOnMainThread), | 157 registry->AddInterface(base::Bind(&BindTouchViewRequestOnMainThread), |
149 main_thread_task_runner); | 158 main_thread_task_runner); |
150 registry->AddInterface(base::Bind(&BindTrayActionRequestOnMainThread), | 159 registry->AddInterface(base::Bind(&BindTrayActionRequestOnMainThread), |
151 main_thread_task_runner); | 160 main_thread_task_runner); |
152 registry->AddInterface(base::Bind(&BindVpnListRequestOnMainThread), | 161 registry->AddInterface(base::Bind(&BindVpnListRequestOnMainThread), |
153 main_thread_task_runner); | 162 main_thread_task_runner); |
154 registry->AddInterface(base::Bind(&BindWallpaperRequestOnMainThread), | 163 registry->AddInterface(base::Bind(&BindWallpaperRequestOnMainThread), |
155 main_thread_task_runner); | 164 main_thread_task_runner); |
156 } | 165 } |
157 | 166 |
158 } // namespace mojo_interface_factory | 167 } // namespace mojo_interface_factory |
159 | 168 |
160 } // namespace ash | 169 } // namespace ash |
OLD | NEW |