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 "input.mojom"; | 10 import "input.mojom"; |
11 import "intent.mojom"; | |
11 import "notifications.mojom"; | 12 import "notifications.mojom"; |
12 import "power.mojom"; | 13 import "power.mojom"; |
13 import "process.mojom"; | 14 import "process.mojom"; |
14 import "settings.mojom"; | 15 import "settings.mojom"; |
15 import "video.mojom"; | 16 import "video.mojom"; |
16 | 17 |
17 interface ArcBridgeHost { | 18 interface ArcBridgeHost { |
18 // Keep the entries alphabetical. In order to do so without breaking | 19 // Keep the entries alphabetical. In order to do so without breaking |
19 // compatibility with the ARC instance, explicitly assign each interface a | 20 // compatibility with the ARC instance, explicitly assign each interface a |
20 // unique ordinal. | 21 // unique ordinal. |
21 | 22 |
22 // Notifies Chrome that the AppInstance interface is ready. | 23 // Notifies Chrome that the AppInstance interface is ready. |
23 OnAppInstanceReady@100(AppInstance instance_ptr); | 24 OnAppInstanceReady@100(AppInstance instance_ptr); |
24 | 25 |
25 // Notifies Chrome that the AuthInstance interface is ready. | 26 // Notifies Chrome that the AuthInstance interface is ready. |
26 [MinVersion=1] OnAuthInstanceReady@106(AuthInstance instance_ptr); | 27 [MinVersion=1] OnAuthInstanceReady@106(AuthInstance instance_ptr); |
27 | 28 |
28 // Notifies Chrome that the ClipboardInstance interface is ready. | 29 // Notifies Chrome that the ClipboardInstance interface is ready. |
29 [MinVersion=2] OnClipboardInstanceReady@109(ClipboardInstance instance_ptr); | 30 [MinVersion=2] OnClipboardInstanceReady@109(ClipboardInstance instance_ptr); |
30 | 31 |
31 // Notifies Chrome that the InputInstnace interface is ready. | 32 // Notifies Chrome that the InputInstnace interface is ready. |
32 OnInputInstanceReady@101(InputInstance instance_ptr); | 33 OnInputInstanceReady@101(InputInstance instance_ptr); |
33 | 34 |
35 // Notifies Chrome that the IntentHelpernstnace interface is ready. | |
36 OnIntentHelperInstanceReady@111(IntentHelperInstance instance_ptr); | |
hidehiko
2016/01/15 09:04:55
nit: MinVersion = 4 or later? (Please re-check thi
Yusuke Sato
2016/01/16 00:11:07
Will do when I submit this.
Yusuke Sato
2016/01/19 20:31:41
Done.
| |
37 | |
34 // Notifies Chrome that the NotificationsInstance interface is ready. | 38 // Notifies Chrome that the NotificationsInstance interface is ready. |
35 OnNotificationsInstanceReady@102(NotificationsInstance instance_ptr); | 39 OnNotificationsInstanceReady@102(NotificationsInstance instance_ptr); |
36 | 40 |
37 // Notifies Chrome that the PowerInstance interface is ready. | 41 // Notifies Chrome that the PowerInstance interface is ready. |
38 OnPowerInstanceReady@103(PowerInstance instance_ptr); | 42 OnPowerInstanceReady@103(PowerInstance instance_ptr); |
39 | 43 |
40 // Notifies Chrome that the ProcessInstance interface is ready. | 44 // Notifies Chrome that the ProcessInstance interface is ready. |
41 OnProcessInstanceReady@104(ProcessInstance instance_ptr); | 45 OnProcessInstanceReady@104(ProcessInstance instance_ptr); |
42 | 46 |
43 // Notifies Chrome that the SettingsInstance interface is ready. | 47 // Notifies Chrome that the SettingsInstance interface is ready. |
44 OnSettingsInstanceReady@105(SettingsInstance instance_ptr); | 48 OnSettingsInstanceReady@105(SettingsInstance instance_ptr); |
45 | 49 |
46 // Notifies Chrome that the VideoInstance interface is ready. | 50 // Notifies Chrome that the VideoInstance interface is ready. |
47 [MinVersion=2] OnVideoInstanceReady@107(VideoInstance instance_ptr); | 51 [MinVersion=2] OnVideoInstanceReady@107(VideoInstance instance_ptr); |
48 }; | 52 }; |
49 | 53 |
50 interface ArcBridgeInstance { | 54 interface ArcBridgeInstance { |
51 // Establishes full-duplex communication with the host. | 55 // Establishes full-duplex communication with the host. |
52 // |host_ptr| is the MessagePipe endpoint that is bound to the | 56 // |host_ptr| is the MessagePipe endpoint that is bound to the |
53 // ArcBridgeHostPtr binding. | 57 // ArcBridgeHostPtr binding. |
54 Init@0(ArcBridgeHost host_ptr); | 58 Init@0(ArcBridgeHost host_ptr); |
55 }; | 59 }; |
OLD | NEW |