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 // 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 // Called when the Android clipboard content is changed. This is | |
| 145 // typically fired when a user initiates a "Copy" action. | |
| 146 // |text| is the text being set in the Android Clipboard. | |
| 147 OnSetClipboardContent(string text); | |
|
Luis Héctor Chávez
2015/12/16 23:16:23
Can you split off this into its own interface?
cl
cnwan
2015/12/21 11:18:01
Will do once crrev.com/1541653002 is relanded.
Luis Héctor Chávez
2015/12/21 17:33:50
Will this only ever support text? Is copy/pasting
Luis Héctor Chávez
2015/12/23 00:07:01
Btw, please use OnClipboardInstanceReady@109.
| |
| 148 | |
| 149 // Called when the Android clipboard decides to update its content. | |
| 150 // This is triggered when a "Paste" action is fired or an app | |
| 151 // or a service tries to retrieve the Android clipboard content. | |
| 152 OnGetClipboardContent(); | |
| 143 }; | 153 }; |
| 144 | 154 |
| 145 interface ArcBridgeInstance { | 155 interface ArcBridgeInstance { |
| 146 // Establishes full-duplex communication with the host. | 156 // Establishes full-duplex communication with the host. |
| 147 // |pipe| is the MessagePipe endpoint that is bound to the ArcBridgeHostPtr | 157 // |pipe| is the MessagePipe endpoint that is bound to the ArcBridgeHostPtr |
| 148 // binding. | 158 // binding. |
| 149 Init(ArcBridgeHost host_ptr); | 159 Init(ArcBridgeHost host_ptr); |
| 150 | 160 |
| 151 // Registers a virtual input device on the container side. | 161 // Registers a virtual input device on the container side. |
| 152 // |name| is the device name, like "Chrome OS Keyboard". | 162 // |name| is the device name, like "Chrome OS Keyboard". |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 170 | 180 |
| 171 // Sends a request to ARC for the ARC app icon of a required scale factor. | 181 // 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 | 182 // Scale factor is an enum defined at ui/base/layout.h. App is defined by |
| 173 // package and activity, which cannot be empty. | 183 // package and activity, which cannot be empty. |
| 174 RequestAppIcon(string package, string activity, | 184 RequestAppIcon(string package, string activity, |
| 175 ScaleFactor scale_factor); | 185 ScaleFactor scale_factor); |
| 176 | 186 |
| 177 // Sends an event from Chrome notification UI to Android. | 187 // Sends an event from Chrome notification UI to Android. |
| 178 // |event| is a type of occured event. | 188 // |event| is a type of occured event. |
| 179 SendNotificationEventToAndroid(string key, ArcNotificationEvent event); | 189 SendNotificationEventToAndroid(string key, ArcNotificationEvent event); |
| 190 | |
| 191 // Sends the Chrome clipboard content to Android. | |
| 192 // |text| is the clipboard content being sent. | |
| 193 SendClipboardContentToAndroid(string text); | |
| 180 }; | 194 }; |
| OLD | NEW |