| 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: 15 | 5 // Next MinVersion: 15 |
| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 [MinVersion=6] bool is_preferred; | 58 [MinVersion=6] bool is_preferred; |
| 59 [MinVersion=11] string? action; // e.g. "android.intent.action.VIEW" | 59 [MinVersion=11] string? action; // e.g. "android.intent.action.VIEW" |
| 60 // RequestUrlHandlerList may fill |fallback_url| when it is called with an | 60 // RequestUrlHandlerList may fill |fallback_url| when it is called with an |
| 61 // intent: URL. | 61 // intent: URL. |
| 62 [MinVersion=14] string? fallback_url; | 62 [MinVersion=14] string? fallback_url; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 // Describes an activity. | 65 // Describes an activity. |
| 66 struct ActivityName { | 66 struct ActivityName { |
| 67 string package_name; | 67 string package_name; |
| 68 string activity_name; | 68 string? activity_name; // may be null to indicate any activity within package |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 // Describes an icon for the activity. | 71 // Describes an icon for the activity. |
| 72 struct ActivityIcon { | 72 struct ActivityIcon { |
| 73 ActivityName activity; | 73 ActivityName activity; |
| 74 uint32 width; // in px | 74 uint32 width; // in px |
| 75 uint32 height; // in px | 75 uint32 height; // in px |
| 76 array<uint8> icon; // in BGRA8888 format | 76 array<uint8> icon; // in BGRA8888 format |
| 77 }; | 77 }; |
| 78 | 78 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // specified. Data can be sent as extras by including a JSON map string which | 153 // specified. Data can be sent as extras by including a JSON map string which |
| 154 // will be automatically converted to a bundle accessible by the receiver. | 154 // will be automatically converted to a bundle accessible by the receiver. |
| 155 // | 155 // |
| 156 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be | 156 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be |
| 157 // added to the whitelist in ArcBridgeService.java in the Android source. | 157 // added to the whitelist in ArcBridgeService.java in the Android source. |
| 158 [MinVersion=1] SendBroadcast@1(string action, | 158 [MinVersion=1] SendBroadcast@1(string action, |
| 159 string package_name, | 159 string package_name, |
| 160 string cls, | 160 string cls, |
| 161 string extras); | 161 string extras); |
| 162 }; | 162 }; |
| OLD | NEW |