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

Side by Side Diff: components/arc/arc_bridge_service.h

Issue 2731403007: add voice interaction shortcut. (Closed)
Patch Set: Changed mojom comments 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ 5 #ifndef COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_
6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ 6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/arc/instance_holder.h" 9 #include "components/arc/instance_holder.h"
10 10
(...skipping 20 matching lines...) Expand all
31 class NetInstance; 31 class NetInstance;
32 class NotificationsInstance; 32 class NotificationsInstance;
33 class ObbMounterInstance; 33 class ObbMounterInstance;
34 class PolicyInstance; 34 class PolicyInstance;
35 class PowerInstance; 35 class PowerInstance;
36 class PrintInstance; 36 class PrintInstance;
37 class ProcessInstance; 37 class ProcessInstance;
38 class StorageManagerInstance; 38 class StorageManagerInstance;
39 class TtsInstance; 39 class TtsInstance;
40 class VideoInstance; 40 class VideoInstance;
41 class VoiceInteractionArcHomeInstance;
42 class VoiceInteractionCaptureInstance;
41 class WallpaperInstance; 43 class WallpaperInstance;
42 44
43 } // namespace mojom 45 } // namespace mojom
44 46
45 // Holds Mojo channels which proxy to ARC side implementation. The actual 47 // Holds Mojo channels which proxy to ARC side implementation. The actual
46 // instances are set/removed via ArcBridgeHostImpl. 48 // instances are set/removed via ArcBridgeHostImpl.
47 class ArcBridgeService { 49 class ArcBridgeService {
48 public: 50 public:
49 ArcBridgeService(); 51 ArcBridgeService();
50 ~ArcBridgeService(); 52 ~ArcBridgeService();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 86 }
85 InstanceHolder<mojom::PolicyInstance>* policy() { return &policy_; } 87 InstanceHolder<mojom::PolicyInstance>* policy() { return &policy_; }
86 InstanceHolder<mojom::PowerInstance>* power() { return &power_; } 88 InstanceHolder<mojom::PowerInstance>* power() { return &power_; }
87 InstanceHolder<mojom::PrintInstance>* print() { return &print_; } 89 InstanceHolder<mojom::PrintInstance>* print() { return &print_; }
88 InstanceHolder<mojom::ProcessInstance>* process() { return &process_; } 90 InstanceHolder<mojom::ProcessInstance>* process() { return &process_; }
89 InstanceHolder<mojom::StorageManagerInstance>* storage_manager() { 91 InstanceHolder<mojom::StorageManagerInstance>* storage_manager() {
90 return &storage_manager_; 92 return &storage_manager_;
91 } 93 }
92 InstanceHolder<mojom::TtsInstance>* tts() { return &tts_; } 94 InstanceHolder<mojom::TtsInstance>* tts() { return &tts_; }
93 InstanceHolder<mojom::VideoInstance>* video() { return &video_; } 95 InstanceHolder<mojom::VideoInstance>* video() { return &video_; }
96 InstanceHolder<mojom::VoiceInteractionArcHomeInstance>*
97 voice_interaction_home() {
98 return &voice_interaction_home_;
99 }
100 InstanceHolder<mojom::VoiceInteractionCaptureInstance>*
101 voice_interaction_capture() {
102 return &voice_interaction_capture_;
103 }
94 InstanceHolder<mojom::WallpaperInstance>* wallpaper() { return &wallpaper_; } 104 InstanceHolder<mojom::WallpaperInstance>* wallpaper() { return &wallpaper_; }
95 105
96 private: 106 private:
97 InstanceHolder<mojom::AccessibilityHelperInstance> accessibility_helper_; 107 InstanceHolder<mojom::AccessibilityHelperInstance> accessibility_helper_;
98 InstanceHolder<mojom::AppInstance> app_; 108 InstanceHolder<mojom::AppInstance> app_;
99 InstanceHolder<mojom::AudioInstance> audio_; 109 InstanceHolder<mojom::AudioInstance> audio_;
100 InstanceHolder<mojom::AuthInstance> auth_; 110 InstanceHolder<mojom::AuthInstance> auth_;
101 InstanceHolder<mojom::BluetoothInstance> bluetooth_; 111 InstanceHolder<mojom::BluetoothInstance> bluetooth_;
102 InstanceHolder<mojom::BootPhaseMonitorInstance> boot_phase_monitor_; 112 InstanceHolder<mojom::BootPhaseMonitorInstance> boot_phase_monitor_;
103 InstanceHolder<mojom::ClipboardInstance> clipboard_; 113 InstanceHolder<mojom::ClipboardInstance> clipboard_;
104 InstanceHolder<mojom::CrashCollectorInstance> crash_collector_; 114 InstanceHolder<mojom::CrashCollectorInstance> crash_collector_;
105 InstanceHolder<mojom::EnterpriseReportingInstance> enterprise_reporting_; 115 InstanceHolder<mojom::EnterpriseReportingInstance> enterprise_reporting_;
106 InstanceHolder<mojom::FileSystemInstance> file_system_; 116 InstanceHolder<mojom::FileSystemInstance> file_system_;
107 InstanceHolder<mojom::ImeInstance> ime_; 117 InstanceHolder<mojom::ImeInstance> ime_;
108 InstanceHolder<mojom::IntentHelperInstance> intent_helper_; 118 InstanceHolder<mojom::IntentHelperInstance> intent_helper_;
109 InstanceHolder<mojom::KioskInstance> kiosk_; 119 InstanceHolder<mojom::KioskInstance> kiosk_;
110 InstanceHolder<mojom::MetricsInstance> metrics_; 120 InstanceHolder<mojom::MetricsInstance> metrics_;
111 InstanceHolder<mojom::NetInstance> net_; 121 InstanceHolder<mojom::NetInstance> net_;
112 InstanceHolder<mojom::NotificationsInstance> notifications_; 122 InstanceHolder<mojom::NotificationsInstance> notifications_;
113 InstanceHolder<mojom::ObbMounterInstance> obb_mounter_; 123 InstanceHolder<mojom::ObbMounterInstance> obb_mounter_;
114 InstanceHolder<mojom::PolicyInstance> policy_; 124 InstanceHolder<mojom::PolicyInstance> policy_;
115 InstanceHolder<mojom::PowerInstance> power_; 125 InstanceHolder<mojom::PowerInstance> power_;
116 InstanceHolder<mojom::PrintInstance> print_; 126 InstanceHolder<mojom::PrintInstance> print_;
117 InstanceHolder<mojom::ProcessInstance> process_; 127 InstanceHolder<mojom::ProcessInstance> process_;
118 InstanceHolder<mojom::StorageManagerInstance> storage_manager_; 128 InstanceHolder<mojom::StorageManagerInstance> storage_manager_;
119 InstanceHolder<mojom::TtsInstance> tts_; 129 InstanceHolder<mojom::TtsInstance> tts_;
120 InstanceHolder<mojom::VideoInstance> video_; 130 InstanceHolder<mojom::VideoInstance> video_;
131 InstanceHolder<mojom::VoiceInteractionArcHomeInstance>
132 voice_interaction_home_;
133 InstanceHolder<mojom::VoiceInteractionCaptureInstance>
134 voice_interaction_capture_;
121 InstanceHolder<mojom::WallpaperInstance> wallpaper_; 135 InstanceHolder<mojom::WallpaperInstance> wallpaper_;
122 136
123 DISALLOW_COPY_AND_ASSIGN(ArcBridgeService); 137 DISALLOW_COPY_AND_ASSIGN(ArcBridgeService);
124 }; 138 };
125 139
126 } // namespace arc 140 } // namespace arc
127 141
128 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ 142 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698