OLD | NEW |
---|---|
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 module arc; | 5 module arc; |
6 | 6 |
7 // Describes the boot phase of the ARC instance, as defined by AOSP in | 7 // Describes the boot phase of the ARC instance, as defined by AOSP in |
8 // com.android.server.SystemService | 8 // com.android.server.SystemService |
9 enum InstanceBootPhase { | 9 enum InstanceBootPhase { |
10 // Boot phase indicating that the instance is not running | 10 // Boot phase indicating that the instance is not running |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
133 // |notification_data| is the data of notification (id, texts, icon and ...). | 133 // |notification_data| is the data of notification (id, texts, icon and ...). |
134 OnNotificationPosted(ArcNotificationData notification_data); | 134 OnNotificationPosted(ArcNotificationData notification_data); |
135 | 135 |
136 // Notifies that a notification is removed on Android. | 136 // Notifies that a notification is removed on Android. |
137 // |key| is the identifier of the notification. | 137 // |key| is the identifier of the notification. |
138 OnNotificationRemoved(string key); | 138 OnNotificationRemoved(string key); |
139 | 139 |
140 // Acquire and release wake locks on the host side. | 140 // Acquire and release wake locks on the host side. |
141 OnAcquireDisplayWakeLock(DisplayWakeLockType type); | 141 OnAcquireDisplayWakeLock(DisplayWakeLockType type); |
142 OnReleaseDisplayWakeLock(DisplayWakeLockType type); | 142 OnReleaseDisplayWakeLock(DisplayWakeLockType type); |
143 | |
144 OnRequestArcVideoAcceleratorChannel(); | |
Pawel Osciak
2015/12/16 10:17:58
Please document.
kcwu
2015/12/16 14:05:33
Done.
| |
143 }; | 145 }; |
144 | 146 |
145 interface ArcBridgeInstance { | 147 interface ArcBridgeInstance { |
146 // Establishes full-duplex communication with the host. | 148 // Establishes full-duplex communication with the host. |
147 // |pipe| is the MessagePipe endpoint that is bound to the ArcBridgeHostPtr | 149 // |pipe| is the MessagePipe endpoint that is bound to the ArcBridgeHostPtr |
148 // binding. | 150 // binding. |
149 Init(ArcBridgeHost host_ptr); | 151 Init(ArcBridgeHost host_ptr); |
150 | 152 |
151 // Registers a virtual input device on the container side. | 153 // Registers a virtual input device on the container side. |
152 // |name| is the device name, like "Chrome OS Keyboard". | 154 // |name| is the device name, like "Chrome OS Keyboard". |
(...skipping 17 matching lines...) Expand all Loading... | |
170 | 172 |
171 // Sends a request to ARC for the ARC app icon of a required scale factor. | 173 // Sends a request to ARC for the ARC app icon of a required scale factor. |
172 // Scale factor is an enum defined at ui/base/layout.h. App is defined by | 174 // Scale factor is an enum defined at ui/base/layout.h. App is defined by |
173 // package and activity, which cannot be empty. | 175 // package and activity, which cannot be empty. |
174 RequestAppIcon(string package, string activity, | 176 RequestAppIcon(string package, string activity, |
175 ScaleFactor scale_factor); | 177 ScaleFactor scale_factor); |
176 | 178 |
177 // Sends an event from Chrome notification UI to Android. | 179 // Sends an event from Chrome notification UI to Android. |
178 // |event| is a type of occured event. | 180 // |event| is a type of occured event. |
179 SendNotificationEventToAndroid(string key, ArcNotificationEvent event); | 181 SendNotificationEventToAndroid(string key, ArcNotificationEvent event); |
182 | |
183 NotifyVideoAcceleratorChannelCreated(handle channel_handle); | |
Pawel Osciak
2015/12/16 10:17:58
Please document.
kcwu
2015/12/16 14:05:32
Done.
| |
180 }; | 184 }; |
OLD | NEW |