Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(824)

Side by Side Diff: components/arc/common/intent_helper.mojom

Issue 2432013002: Improve intent: URI handling (Closed)
Patch Set: rebase onto Luis' directory reorganize CL Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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: 14 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 }; 50 };
51 51
52 // Describes a package that can handle an intent. 52 // Describes a package that can handle an intent.
53 struct IntentHandlerInfo { 53 struct IntentHandlerInfo {
54 string name; 54 string name;
55 string package_name; 55 string package_name;
56 string activity_name; // A hint for retrieving the package's icon. 56 string activity_name; // A hint for retrieving the package's icon.
57 [MinVersion=4] ActionType action_type; 57 [MinVersion=4] ActionType action_type;
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
61 // intent: URL.
62 [MinVersion=14] string? fallback_url;
60 }; 63 };
61 64
62 // Describes an activity. 65 // Describes an activity.
63 struct ActivityName { 66 struct ActivityName {
64 string package_name; 67 string package_name;
65 string activity_name; 68 string activity_name;
66 }; 69 };
67 70
68 // Describes an icon for the activity. 71 // Describes an icon for the activity.
69 struct ActivityIcon { 72 struct ActivityIcon {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // 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
151 // will be automatically converted to a bundle accessible by the receiver. 154 // will be automatically converted to a bundle accessible by the receiver.
152 // 155 //
153 // 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
154 // added to the whitelist in ArcBridgeService.java in the Android source. 157 // added to the whitelist in ArcBridgeService.java in the Android source.
155 [MinVersion=1] SendBroadcast@1(string action, 158 [MinVersion=1] SendBroadcast@1(string action,
156 string package_name, 159 string package_name,
157 string cls, 160 string cls,
158 string extras); 161 string extras);
159 }; 162 };
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698