OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // Handles intents from ARC in Chrome. | 7 // Handles intents from ARC in Chrome. |
8 interface IntentHelperHost { | 8 interface IntentHelperHost { |
9 // Opens the url with Chrome for Chrome OS. | 9 // Opens the url with Chrome for Chrome OS. |
10 OnOpenUrl@0(string url); | 10 OnOpenUrl@0(string url); |
11 }; | 11 }; |
12 | 12 |
13 // Sends intents to ARC on behalf of Chrome. | 13 // Sends intents to ARC on behalf of Chrome. |
14 interface IntentHelperInstance { | 14 interface IntentHelperInstance { |
15 // Establishes full-duplex communication with the host. | 15 // Establishes full-duplex communication with the host. |
16 Init@0(IntentHelperHost host_ptr); | 16 Init@0(IntentHelperHost host_ptr); |
17 | 17 |
18 // TODO(yusukes): Merge settings.mojom into intent_helper.mojom. | 18 // Send an Android broadcast message to the Android package and class |
| 19 // specified. Data can be sent as extras by including a JSON map string which |
| 20 // will be automatically converted to a bundle accessible by the receiver. |
| 21 // |
| 22 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be |
| 23 // added to the whitelist in ArcBridgeService.java in the Android source. |
| 24 [MinVersion=1] SendBroadcast@1(string action, |
| 25 string package, |
| 26 string cls, |
| 27 string extras); |
19 }; | 28 }; |
OLD | NEW |