| 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 // Next MinVersion: 16 | 5 // Next MinVersion: 16 |
| 6 | 6 |
| 7 module arc.mojom; | 7 module arc.mojom; |
| 8 | 8 |
| 9 import "scale_factor.mojom"; | 9 import "scale_factor.mojom"; |
| 10 | 10 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // Handles the list of URLs by sending a specified intent to the handler. | 129 // Handles the list of URLs by sending a specified intent to the handler. |
| 130 [MinVersion=5] HandleUrlList@7(array<UrlWithMimeType> urls, | 130 [MinVersion=5] HandleUrlList@7(array<UrlWithMimeType> urls, |
| 131 ActivityName activity, | 131 ActivityName activity, |
| 132 ActionType action_type); | 132 ActionType action_type); |
| 133 | 133 |
| 134 // Establishes full-duplex communication with the host. | 134 // Establishes full-duplex communication with the host. |
| 135 Init@0(IntentHelperHost host_ptr); | 135 Init@0(IntentHelperHost host_ptr); |
| 136 | 136 |
| 137 // Asks the ContentResolver to get an FD to read the file specified by the | 137 // Asks the ContentResolver to get an FD to read the file specified by the |
| 138 // URL. | 138 // URL. |
| 139 [MinVersion=15] OpenFileToRead@12(string url) => (handle fd); | 139 [MinVersion=15] OpenFileToRead@12(string url) => (handle? fd); |
| 140 | 140 |
| 141 // Requests 48dp * 48dp icons of the |activities| suitable for the | 141 // Requests 48dp * 48dp icons of the |activities| suitable for the |
| 142 // |scale_factor|. An array of icon data will be returned. | 142 // |scale_factor|. An array of icon data will be returned. |
| 143 [MinVersion=3] RequestActivityIcons@4(array<ActivityName> activities, | 143 [MinVersion=3] RequestActivityIcons@4(array<ActivityName> activities, |
| 144 ScaleFactor scale_factor) | 144 ScaleFactor scale_factor) |
| 145 => (array<ActivityIcon> icons); | 145 => (array<ActivityIcon> icons); |
| 146 | 146 |
| 147 // Requests a list of packages that can handle |intent|. | 147 // Requests a list of packages that can handle |intent|. |
| 148 [MinVersion=12] RequestIntentHandlerList@9(IntentInfo intent) | 148 [MinVersion=12] RequestIntentHandlerList@9(IntentInfo intent) |
| 149 => (array<IntentHandlerInfo> handlers); | 149 => (array<IntentHandlerInfo> handlers); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 160 // specified. Data can be sent as extras by including a JSON map string which | 160 // specified. Data can be sent as extras by including a JSON map string which |
| 161 // will be automatically converted to a bundle accessible by the receiver. | 161 // will be automatically converted to a bundle accessible by the receiver. |
| 162 // | 162 // |
| 163 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be | 163 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be |
| 164 // added to the whitelist in ArcBridgeService.java in the Android source. | 164 // added to the whitelist in ArcBridgeService.java in the Android source. |
| 165 [MinVersion=1] SendBroadcast@1(string action, | 165 [MinVersion=1] SendBroadcast@1(string action, |
| 166 string package_name, | 166 string package_name, |
| 167 string cls, | 167 string cls, |
| 168 string extras); | 168 string extras); |
| 169 }; | 169 }; |
| OLD | NEW |