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: 13 | 5 // Next MinVersion: 14 |
6 | 6 |
7 module arc.mojom; | 7 module arc.mojom; |
8 | 8 |
9 import "scale_factor.mojom"; | 9 import "scale_factor.mojom"; |
10 | 10 |
11 // Describes the type of action to invoke. | 11 // Describes the type of action to invoke. |
12 enum ActionType { | 12 enum ActionType { |
13 VIEW, | 13 VIEW, |
14 SEND, | 14 SEND, |
15 SEND_MULTIPLE, | 15 SEND_MULTIPLE, |
(...skipping 14 matching lines...) Expand all Loading... |
30 struct AuthorityEntry { | 30 struct AuthorityEntry { |
31 string host; | 31 string host; |
32 int32 port; | 32 int32 port; |
33 }; | 33 }; |
34 | 34 |
35 struct IntentInfo { | 35 struct IntentInfo { |
36 string action; | 36 string action; |
37 array<string>? categories; | 37 array<string>? categories; |
38 string? data; // URI | 38 string? data; // URI |
39 string? type; // explicit MIME type for data | 39 string? type; // explicit MIME type for data |
| 40 [MinVersion=13] string? clip_data_uri; // optional URI to provide as ClipData |
40 }; | 41 }; |
41 | 42 |
42 struct IntentFilter { | 43 struct IntentFilter { |
43 array<string> actions; | 44 array<string> actions; |
44 array<string> categories; | 45 array<string> categories; |
45 array<string> data_schemes; | 46 array<string> data_schemes; |
46 [MinVersion=10] array<AuthorityEntry>? data_authorities; | 47 [MinVersion=10] array<AuthorityEntry>? data_authorities; |
47 [MinVersion=10] array<PatternMatcher>? data_paths; | 48 [MinVersion=10] array<PatternMatcher>? data_paths; |
48 [MinVersion=10] array<PatternMatcher>? deprecated_data_scheme_specific_parts; | 49 [MinVersion=10] array<PatternMatcher>? deprecated_data_scheme_specific_parts; |
49 }; | 50 }; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // specified. Data can be sent as extras by including a JSON map string which | 150 // specified. Data can be sent as extras by including a JSON map string which |
150 // will be automatically converted to a bundle accessible by the receiver. | 151 // will be automatically converted to a bundle accessible by the receiver. |
151 // | 152 // |
152 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be | 153 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be |
153 // added to the whitelist in ArcBridgeService.java in the Android source. | 154 // added to the whitelist in ArcBridgeService.java in the Android source. |
154 [MinVersion=1] SendBroadcast@1(string action, | 155 [MinVersion=1] SendBroadcast@1(string action, |
155 string package_name, | 156 string package_name, |
156 string cls, | 157 string cls, |
157 string extras); | 158 string extras); |
158 }; | 159 }; |
OLD | NEW |