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 "app.mojom"; | 7 import "app.mojom"; |
| 8 import "auth.mojom"; | 8 import "auth.mojom"; |
| 9 import "clipboard.mojom"; | 9 import "clipboard.mojom"; |
| 10 import "ime.mojom"; | 10 import "ime.mojom"; |
| 11 import "input.mojom"; | 11 import "input.mojom"; |
| 12 import "net.mojom"; | |
| 12 import "notifications.mojom"; | 13 import "notifications.mojom"; |
| 13 import "power.mojom"; | 14 import "power.mojom"; |
| 14 import "process.mojom"; | 15 import "process.mojom"; |
| 15 import "settings.mojom"; | 16 import "settings.mojom"; |
| 16 import "video.mojom"; | 17 import "video.mojom"; |
| 17 | 18 |
| 18 interface ArcBridgeHost { | 19 interface ArcBridgeHost { |
| 19 // Keep the entries alphabetical. In order to do so without breaking | 20 // Keep the entries alphabetical. In order to do so without breaking |
| 20 // compatibility with the ARC instance, explicitly assign each interface a | 21 // compatibility with the ARC instance, explicitly assign each interface a |
| 21 // unique ordinal. | 22 // unique ordinal. |
| 22 | 23 |
| 23 // Notifies Chrome that the AppInstance interface is ready. | 24 // Notifies Chrome that the AppInstance interface is ready. |
| 24 OnAppInstanceReady@100(AppInstance instance_ptr); | 25 OnAppInstanceReady@100(AppInstance instance_ptr); |
| 25 | 26 |
| 26 // Notifies Chrome that the AuthInstance interface is ready. | 27 // Notifies Chrome that the AuthInstance interface is ready. |
| 27 [MinVersion=1] OnAuthInstanceReady@106(AuthInstance instance_ptr); | 28 [MinVersion=1] OnAuthInstanceReady@106(AuthInstance instance_ptr); |
| 28 | 29 |
| 29 // Notifies Chrome that the ClipboardInstance interface is ready. | 30 // Notifies Chrome that the ClipboardInstance interface is ready. |
| 30 [MinVersion=2] OnClipboardInstanceReady@109(ClipboardInstance instance_ptr); | 31 [MinVersion=2] OnClipboardInstanceReady@109(ClipboardInstance instance_ptr); |
| 31 | 32 |
| 32 // Notifies Chrome that the ImeInstance interface is ready. | 33 // Notifies Chrome that the ImeInstance interface is ready. |
| 33 [MinVersion=3] OnImeInstanceReady@110(ImeInstance instance_ptr); | 34 [MinVersion=3] OnImeInstanceReady@110(ImeInstance instance_ptr); |
| 34 | 35 |
| 35 // Notifies Chrome that the InputInstnace interface is ready. | 36 // Notifies Chrome that the InputInstnace interface is ready. |
| 36 OnInputInstanceReady@101(InputInstance instance_ptr); | 37 OnInputInstanceReady@101(InputInstance instance_ptr); |
| 37 | 38 |
| 39 // Notifies Chrome that the NetInstance interface is ready. | |
| 40 [MinVersion=4] OnNetInstanceReady@108(NetInstance instance_ptr); | |
|
Luis Héctor Chávez
2016/01/19 20:51:58
FYI: If https://codereview.chromium.org/1590723003
cernekee
2016/01/20 01:37:17
Done.
| |
| 41 | |
| 38 // Notifies Chrome that the NotificationsInstance interface is ready. | 42 // Notifies Chrome that the NotificationsInstance interface is ready. |
| 39 OnNotificationsInstanceReady@102(NotificationsInstance instance_ptr); | 43 OnNotificationsInstanceReady@102(NotificationsInstance instance_ptr); |
| 40 | 44 |
| 41 // Notifies Chrome that the PowerInstance interface is ready. | 45 // Notifies Chrome that the PowerInstance interface is ready. |
| 42 OnPowerInstanceReady@103(PowerInstance instance_ptr); | 46 OnPowerInstanceReady@103(PowerInstance instance_ptr); |
| 43 | 47 |
| 44 // Notifies Chrome that the ProcessInstance interface is ready. | 48 // Notifies Chrome that the ProcessInstance interface is ready. |
| 45 OnProcessInstanceReady@104(ProcessInstance instance_ptr); | 49 OnProcessInstanceReady@104(ProcessInstance instance_ptr); |
| 46 | 50 |
| 47 // Notifies Chrome that the SettingsInstance interface is ready. | 51 // Notifies Chrome that the SettingsInstance interface is ready. |
| 48 OnSettingsInstanceReady@105(SettingsInstance instance_ptr); | 52 OnSettingsInstanceReady@105(SettingsInstance instance_ptr); |
| 49 | 53 |
| 50 // Notifies Chrome that the VideoInstance interface is ready. | 54 // Notifies Chrome that the VideoInstance interface is ready. |
| 51 [MinVersion=2] OnVideoInstanceReady@107(VideoInstance instance_ptr); | 55 [MinVersion=2] OnVideoInstanceReady@107(VideoInstance instance_ptr); |
| 52 }; | 56 }; |
| 53 | 57 |
| 54 interface ArcBridgeInstance { | 58 interface ArcBridgeInstance { |
| 55 // Establishes full-duplex communication with the host. | 59 // Establishes full-duplex communication with the host. |
| 56 // |host_ptr| is the MessagePipe endpoint that is bound to the | 60 // |host_ptr| is the MessagePipe endpoint that is bound to the |
| 57 // ArcBridgeHostPtr binding. | 61 // ArcBridgeHostPtr binding. |
| 58 Init@0(ArcBridgeHost host_ptr); | 62 Init@0(ArcBridgeHost host_ptr); |
| 59 }; | 63 }; |
| OLD | NEW |