Chromium Code Reviews| 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 import "video.mojom"; | |
| 8 | |
| 7 // Describes the boot phase of the ARC instance, as defined by AOSP in | 9 // Describes the boot phase of the ARC instance, as defined by AOSP in |
| 8 // com.android.server.SystemService | 10 // com.android.server.SystemService |
| 9 enum InstanceBootPhase { | 11 enum InstanceBootPhase { |
| 10 // Boot phase indicating that the instance is not running | 12 // Boot phase indicating that the instance is not running |
| 11 NOT_RUNNING = 0, | 13 NOT_RUNNING = 0, |
| 12 | 14 |
| 13 // After receiving this boot phase the ARC bridge is ready to receive | 15 // After receiving this boot phase the ARC bridge is ready to receive |
| 14 // IPC messages. This phase is ARC-specific. | 16 // IPC messages. This phase is ARC-specific. |
| 15 BRIDGE_READY, | 17 BRIDGE_READY, |
| 16 | 18 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 216 // Notifies that a notification is removed on Android. | 218 // Notifies that a notification is removed on Android. |
| 217 // |key| is the identifier of the notification. | 219 // |key| is the identifier of the notification. |
| 218 OnNotificationRemoved(string key); | 220 OnNotificationRemoved(string key); |
| 219 | 221 |
| 220 // Acquire and release wake locks on the host side. | 222 // Acquire and release wake locks on the host side. |
| 221 OnAcquireDisplayWakeLock(DisplayWakeLockType type); | 223 OnAcquireDisplayWakeLock(DisplayWakeLockType type); |
| 222 OnReleaseDisplayWakeLock(DisplayWakeLockType type); | 224 OnReleaseDisplayWakeLock(DisplayWakeLockType type); |
| 223 | 225 |
| 224 // Notifies Chrome that the ARC process list has been updated. | 226 // Notifies Chrome that the ARC process list has been updated. |
| 225 OnUpdateProcessList(array<RunningAppProcessInfo> processes); | 227 OnUpdateProcessList(array<RunningAppProcessInfo> processes); |
| 228 | |
| 229 // Notifies Chrome that the VideoInstance interface is ready. | |
| 230 // TODO(kcwu) add @index when rebasing with arc_bridge refactoring. | |
| 231 OnVideoInstanceReady(VideoInstance instance_ptr); | |
|
Luis Héctor Chávez
2015/12/23 00:02:53
OnVideoInstanceReady@107.
kcwu
2015/12/23 01:05:23
Done.
| |
| 226 }; | 232 }; |
| 227 | 233 |
| 228 interface ArcBridgeInstance { | 234 interface ArcBridgeInstance { |
| 229 // Establishes full-duplex communication with the host. | 235 // Establishes full-duplex communication with the host. |
| 230 // |pipe| is the MessagePipe endpoint that is bound to the ArcBridgeHostPtr | 236 // |pipe| is the MessagePipe endpoint that is bound to the ArcBridgeHostPtr |
| 231 // binding. | 237 // binding. |
| 232 Init(ArcBridgeHost host_ptr); | 238 Init(ArcBridgeHost host_ptr); |
| 233 | 239 |
| 234 // Registers a virtual input device on the container side. | 240 // Registers a virtual input device on the container side. |
| 235 // |name| is the device name, like "Chrome OS Keyboard". | 241 // |name| is the device name, like "Chrome OS Keyboard". |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 268 // specified. Data can be sent as extras by including a JSON map string which | 274 // specified. Data can be sent as extras by including a JSON map string which |
| 269 // will be automatically converted to a bundle accessible by the receiver. | 275 // will be automatically converted to a bundle accessible by the receiver. |
| 270 // | 276 // |
| 271 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be | 277 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be |
| 272 // added to the whitelist in ArcBridgeService.java in the Android source. | 278 // added to the whitelist in ArcBridgeService.java in the Android source. |
| 273 SendBroadcast(string action, | 279 SendBroadcast(string action, |
| 274 string package, | 280 string package, |
| 275 string cls, | 281 string cls, |
| 276 string extras); | 282 string extras); |
| 277 }; | 283 }; |
| OLD | NEW |