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

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

Issue 2368673002: arc: Rename UrlHandlerInfo to IntentHandlerInfo. (Closed)
Patch Set: Created 4 years, 2 months 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
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: 11 5 // Next MinVersion: 11
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 23 matching lines...) Expand all
34 34
35 struct IntentFilter { 35 struct IntentFilter {
36 array<string> actions; 36 array<string> actions;
37 array<string> categories; 37 array<string> categories;
38 array<string> data_schemes; 38 array<string> data_schemes;
39 [MinVersion=10] array<AuthorityEntry>? data_authorities; 39 [MinVersion=10] array<AuthorityEntry>? data_authorities;
40 [MinVersion=10] array<PatternMatcher>? data_paths; 40 [MinVersion=10] array<PatternMatcher>? data_paths;
41 [MinVersion=10] array<PatternMatcher>? deprecated_data_scheme_specific_parts; 41 [MinVersion=10] array<PatternMatcher>? deprecated_data_scheme_specific_parts;
42 }; 42 };
43 43
44 // Describes a package that can handle a URL. 44 // Describes a package that can handle an intent.
45 struct UrlHandlerInfo { 45 struct IntentHandlerInfo {
46 string name; 46 string name;
47 string package_name; 47 string package_name;
48 string activity_name; // A hint for retrieving the package's icon. 48 string activity_name; // A hint for retrieving the package's icon.
49 [MinVersion=4] ActionType action; 49 [MinVersion=4] ActionType action;
50 [MinVersion=6] bool is_preferred; 50 [MinVersion=6] bool is_preferred;
51 }; 51 };
52 52
53 // Describes an activity. 53 // Describes an activity.
54 struct ActivityName { 54 struct ActivityName {
55 string package_name; 55 string package_name;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 Init@0(IntentHelperHost host_ptr); 123 Init@0(IntentHelperHost host_ptr);
124 124
125 // Requests 48dp * 48dp icons of the |activities| suitable for the 125 // Requests 48dp * 48dp icons of the |activities| suitable for the
126 // |scale_factor|. An array of icon data will be returned. 126 // |scale_factor|. An array of icon data will be returned.
127 [MinVersion=3] RequestActivityIcons@4(array<ActivityName> activities, 127 [MinVersion=3] RequestActivityIcons@4(array<ActivityName> activities,
128 ScaleFactor scale_factor) 128 ScaleFactor scale_factor)
129 => (array<ActivityIcon> icons); 129 => (array<ActivityIcon> icons);
130 130
131 // Requests a list of packages that can handle the URL. 131 // Requests a list of packages that can handle the URL.
132 [MinVersion=2] RequestUrlHandlerList@3(string url) 132 [MinVersion=2] RequestUrlHandlerList@3(string url)
133 => (array<UrlHandlerInfo> handlers); 133 => (array<IntentHandlerInfo> handlers);
134 134
135 // Requests a list of packages that can handle the list of files. 135 // Requests a list of packages that can handle the list of files.
136 [MinVersion=4] RequestUrlListHandlerList@6(array<UrlWithMimeType> urls) 136 [MinVersion=4] RequestUrlListHandlerList@6(array<UrlWithMimeType> urls)
137 => (array<UrlHandlerInfo> handlers); 137 => (array<IntentHandlerInfo> handlers);
138 138
139 // Send an Android broadcast message to the Android package and class 139 // Send an Android broadcast message to the Android package and class
140 // specified. Data can be sent as extras by including a JSON map string which 140 // specified. Data can be sent as extras by including a JSON map string which
141 // will be automatically converted to a bundle accessible by the receiver. 141 // will be automatically converted to a bundle accessible by the receiver.
142 // 142 //
143 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be 143 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be
144 // added to the whitelist in ArcBridgeService.java in the Android source. 144 // added to the whitelist in ArcBridgeService.java in the Android source.
145 [MinVersion=1] SendBroadcast@1(string action, 145 [MinVersion=1] SendBroadcast@1(string action,
146 string package_name, 146 string package_name,
147 string cls, 147 string cls,
148 string extras); 148 string extras);
149 }; 149 };
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/file_manager/arc_file_tasks.cc ('k') | components/arc/intent_helper/arc_intent_helper_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698