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/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" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 Shell::Get()->media_controller()->BindRequest(std::move(request)); | 53 Shell::Get()->media_controller()->BindRequest(std::move(request)); |
54 } | 54 } |
55 | 55 |
56 void BindNewWindowControllerRequestOnMainThread( | 56 void BindNewWindowControllerRequestOnMainThread( |
57 mojom::NewWindowControllerRequest request) { | 57 mojom::NewWindowControllerRequest request) { |
58 Shell::Get()->new_window_controller()->BindRequest(std::move(request)); | 58 Shell::Get()->new_window_controller()->BindRequest(std::move(request)); |
59 } | 59 } |
60 | 60 |
61 void BindSessionControllerRequestOnMainThread( | 61 void BindSessionControllerRequestOnMainThread( |
62 mojom::SessionControllerRequest request) { | 62 mojom::SessionControllerRequest request) { |
63 WmShell::Get()->session_controller()->BindRequest(std::move(request)); | 63 Shell::Get()->session_controller()->BindRequest(std::move(request)); |
64 } | 64 } |
65 | 65 |
66 void BindShelfRequestOnMainThread(mojom::ShelfControllerRequest request) { | 66 void BindShelfRequestOnMainThread(mojom::ShelfControllerRequest request) { |
67 WmShell::Get()->shelf_controller()->BindRequest(std::move(request)); | 67 Shell::Get()->shelf_controller()->BindRequest(std::move(request)); |
68 } | 68 } |
69 | 69 |
70 void BindShutdownControllerRequestOnMainThread( | 70 void BindShutdownControllerRequestOnMainThread( |
71 mojom::ShutdownControllerRequest request) { | 71 mojom::ShutdownControllerRequest request) { |
72 WmShell::Get()->shutdown_controller()->BindRequest(std::move(request)); | 72 WmShell::Get()->shutdown_controller()->BindRequest(std::move(request)); |
73 } | 73 } |
74 | 74 |
75 void BindSystemTrayRequestOnMainThread(mojom::SystemTrayRequest request) { | 75 void BindSystemTrayRequestOnMainThread(mojom::SystemTrayRequest request) { |
76 Shell::Get()->system_tray_controller()->BindRequest(std::move(request)); | 76 Shell::Get()->system_tray_controller()->BindRequest(std::move(request)); |
77 } | 77 } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 main_thread_task_runner); | 123 main_thread_task_runner); |
124 registry->AddInterface(base::Bind(&BindVpnListRequestOnMainThread), | 124 registry->AddInterface(base::Bind(&BindVpnListRequestOnMainThread), |
125 main_thread_task_runner); | 125 main_thread_task_runner); |
126 registry->AddInterface(base::Bind(&BindWallpaperRequestOnMainThread), | 126 registry->AddInterface(base::Bind(&BindWallpaperRequestOnMainThread), |
127 main_thread_task_runner); | 127 main_thread_task_runner); |
128 } | 128 } |
129 | 129 |
130 } // namespace mojo_interface_factory | 130 } // namespace mojo_interface_factory |
131 | 131 |
132 } // namespace ash | 132 } // namespace ash |
OLD | NEW |