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

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

Issue 2766543002: Move even more from WmShell to Shell (Closed)
Patch Set: 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
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"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 44
45 void BindLocaleNotificationControllerOnMainThread( 45 void BindLocaleNotificationControllerOnMainThread(
46 mojom::LocaleNotificationControllerRequest request) { 46 mojom::LocaleNotificationControllerRequest request) {
47 Shell::Get()->locale_notification_controller()->BindRequest( 47 Shell::Get()->locale_notification_controller()->BindRequest(
48 std::move(request)); 48 std::move(request));
49 } 49 }
50 50
51 void BindMediaControllerRequestOnMainThread( 51 void BindMediaControllerRequestOnMainThread(
52 mojom::MediaControllerRequest request) { 52 mojom::MediaControllerRequest request) {
53 WmShell::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 WmShell::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 WmShell::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 WmShell::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 }
78 78
79 void BindTouchViewRequestOnMainThread(mojom::TouchViewManagerRequest request) { 79 void BindTouchViewRequestOnMainThread(mojom::TouchViewManagerRequest request) {
80 WmShell::Get()->maximize_mode_controller()->BindRequest(std::move(request)); 80 Shell::Get()->maximize_mode_controller()->BindRequest(std::move(request));
81 } 81 }
82 82
83 void BindVpnListRequestOnMainThread(mojom::VpnListRequest request) { 83 void BindVpnListRequestOnMainThread(mojom::VpnListRequest request) {
84 WmShell::Get()->vpn_list()->BindRequest(std::move(request)); 84 WmShell::Get()->vpn_list()->BindRequest(std::move(request));
85 } 85 }
86 86
87 void BindWallpaperRequestOnMainThread( 87 void BindWallpaperRequestOnMainThread(
88 mojom::WallpaperControllerRequest request) { 88 mojom::WallpaperControllerRequest request) {
89 Shell::GetInstance()->wallpaper_controller()->BindRequest(std::move(request)); 89 Shell::GetInstance()->wallpaper_controller()->BindRequest(std::move(request));
90 } 90 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « ash/common/metrics/pointer_metrics_recorder_unittest.cc ('k') | ash/common/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698