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

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

Issue 2505403003: TouchView Mojom (Closed)
Patch Set: Minor param rename Created 4 years 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 | « no previous file | ash/common/wm/maximize_mode/maximize_mode_controller.h » ('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/shelf/shelf_controller.h" 9 #include "ash/common/shelf/shelf_controller.h"
10 #include "ash/common/shutdown_controller.h" 10 #include "ash/common/shutdown_controller.h"
11 #include "ash/common/system/locale/locale_notification_controller.h" 11 #include "ash/common/system/locale/locale_notification_controller.h"
12 #include "ash/common/system/tray/system_tray_controller.h" 12 #include "ash/common/system/tray/system_tray_controller.h"
13 #include "ash/common/wallpaper/wallpaper_controller.h" 13 #include "ash/common/wallpaper/wallpaper_controller.h"
14 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
14 #include "ash/common/wm_shell.h" 15 #include "ash/common/wm_shell.h"
15 #include "base/bind.h" 16 #include "base/bind.h"
16 #include "services/service_manager/public/cpp/interface_registry.h" 17 #include "services/service_manager/public/cpp/interface_registry.h"
17 18
18 #if defined(OS_CHROMEOS) 19 #if defined(OS_CHROMEOS)
19 #include "ash/common/system/chromeos/network/vpn_list.h" 20 #include "ash/common/system/chromeos/network/vpn_list.h"
20 #endif 21 #endif
21 22
22 namespace ash { 23 namespace ash {
23 24
(...skipping 11 matching lines...) Expand all
35 36
36 void BindShutdownControllerRequestOnMainThread( 37 void BindShutdownControllerRequestOnMainThread(
37 mojom::ShutdownControllerRequest request) { 38 mojom::ShutdownControllerRequest request) {
38 WmShell::Get()->shutdown_controller()->BindRequest(std::move(request)); 39 WmShell::Get()->shutdown_controller()->BindRequest(std::move(request));
39 } 40 }
40 41
41 void BindSystemTrayRequestOnMainThread(mojom::SystemTrayRequest request) { 42 void BindSystemTrayRequestOnMainThread(mojom::SystemTrayRequest request) {
42 WmShell::Get()->system_tray_controller()->BindRequest(std::move(request)); 43 WmShell::Get()->system_tray_controller()->BindRequest(std::move(request));
43 } 44 }
44 45
46 void BindTouchViewRequestOnMainThread(mojom::TouchViewManagerRequest request) {
47 WmShell::Get()->maximize_mode_controller()->BindRequest(std::move(request));
48 }
49
45 #if defined(OS_CHROMEOS) 50 #if defined(OS_CHROMEOS)
46 void BindVpnListRequestOnMainThread(mojom::VpnListRequest request) { 51 void BindVpnListRequestOnMainThread(mojom::VpnListRequest request) {
47 WmShell::Get()->vpn_list()->BindRequest(std::move(request)); 52 WmShell::Get()->vpn_list()->BindRequest(std::move(request));
48 } 53 }
49 #endif 54 #endif
50 55
51 void BindWallpaperRequestOnMainThread( 56 void BindWallpaperRequestOnMainThread(
52 mojom::WallpaperControllerRequest request) { 57 mojom::WallpaperControllerRequest request) {
53 WmShell::Get()->wallpaper_controller()->BindRequest(std::move(request)); 58 WmShell::Get()->wallpaper_controller()->BindRequest(std::move(request));
54 } 59 }
55 60
56 } // namespace 61 } // namespace
57 62
58 namespace mojo_interface_factory { 63 namespace mojo_interface_factory {
59 64
60 void RegisterInterfaces( 65 void RegisterInterfaces(
61 service_manager::InterfaceRegistry* registry, 66 service_manager::InterfaceRegistry* registry,
62 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner) { 67 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner) {
63 registry->AddInterface( 68 registry->AddInterface(
64 base::Bind(&BindLocaleNotificationControllerOnMainThread), 69 base::Bind(&BindLocaleNotificationControllerOnMainThread),
65 main_thread_task_runner); 70 main_thread_task_runner);
66 registry->AddInterface(base::Bind(&BindShelfRequestOnMainThread), 71 registry->AddInterface(base::Bind(&BindShelfRequestOnMainThread),
67 main_thread_task_runner); 72 main_thread_task_runner);
68 registry->AddInterface(base::Bind(&BindShutdownControllerRequestOnMainThread), 73 registry->AddInterface(base::Bind(&BindShutdownControllerRequestOnMainThread),
69 main_thread_task_runner); 74 main_thread_task_runner);
70 registry->AddInterface(base::Bind(&BindSystemTrayRequestOnMainThread), 75 registry->AddInterface(base::Bind(&BindSystemTrayRequestOnMainThread),
71 main_thread_task_runner); 76 main_thread_task_runner);
77 registry->AddInterface(base::Bind(&BindTouchViewRequestOnMainThread),
78 main_thread_task_runner);
72 #if defined(OS_CHROMEOS) 79 #if defined(OS_CHROMEOS)
73 registry->AddInterface(base::Bind(&BindVpnListRequestOnMainThread), 80 registry->AddInterface(base::Bind(&BindVpnListRequestOnMainThread),
74 main_thread_task_runner); 81 main_thread_task_runner);
75 #endif 82 #endif
76 registry->AddInterface(base::Bind(&BindWallpaperRequestOnMainThread), 83 registry->AddInterface(base::Bind(&BindWallpaperRequestOnMainThread),
77 main_thread_task_runner); 84 main_thread_task_runner);
78 } 85 }
79 86
80 } // namespace mojo_interface_factory 87 } // namespace mojo_interface_factory
81 88
82 } // namespace ash 89 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/common/wm/maximize_mode/maximize_mode_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698