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

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

Issue 2929273002: Add the Play Store app search to the launcher. (Closed)
Patch Set: Add the Play Store app search APIs. Created 3 years, 6 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
« no previous file with comments | « no previous file | 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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: 20 5 // Next MinVersion: 20
6 6
7 module arc.mojom; 7 module arc.mojom;
8 8
9 import "scale_factor.mojom"; 9 import "scale_factor.mojom";
10 import "screen_rect.mojom"; 10 import "screen_rect.mojom";
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // details of installation result. 153 // details of installation result.
154 [MinVersion=16] OnInstallationFinished@15( 154 [MinVersion=16] OnInstallationFinished@15(
155 [MinVersion=17] InstallationResult? result@1); 155 [MinVersion=17] InstallationResult? result@1);
156 156
157 // Notifies that an application shortcut needs to be deleted. Shortcut is 157 // Notifies that an application shortcut needs to be deleted. Shortcut is
158 // defined by its |intent_uri| and |package_name|. 158 // defined by its |intent_uri| and |package_name|.
159 [MinVersion=18] OnUninstallShortcut@16(string package_name, 159 [MinVersion=18] OnUninstallShortcut@16(string package_name,
160 string intent_uri); 160 string intent_uri);
161 }; 161 };
162 162
163 // Next method ID: 1
164 // The GetRecentAndSuggestedApps interface calls an Phonesky API that starts
165 // asynchronous tasks and returns results one by one.
166 interface AppDiscoveryResultsReceiver {
167 // Notifies that a result app of a Playstore app query is ready.
Luis Héctor Chávez 2017/06/12 21:03:59 Mention that this is expected to be called multipl
Jiaquan He 2017/06/14 22:31:02 Done.
168 OnResult@0(string launch_intent_uri,
169 string install_intent_uri,
170 string label,
171 bool is_instant_app,
172 bool is_recent,
173 string publisher_name,
174 array<uint8> icon_png_data);
175 // Notifies that all results are returned.
176 OnComplete@1();
177 };
178
163 // TODO(lhchavez): Migrate all request/response messages to Mojo. 179 // TODO(lhchavez): Migrate all request/response messages to Mojo.
164 // Next method ID: 16 180 // Next method ID: 16
165 // Deprecated method ID: 9 181 // Deprecated method ID: 9
166 interface AppInstance { 182 interface AppInstance {
167 Init@0(AppHost host_ptr); 183 Init@0(AppHost host_ptr);
168 184
169 // Query if a given resolution can be handled by the application. Returns true 185 // Query if a given resolution can be handled by the application. Returns true
170 // if it can. 186 // if it can.
171 [MinVersion=1] CanHandleResolution@4(string package_name, string activity, 187 [MinVersion=1] CanHandleResolution@4(string package_name, string activity,
172 ScreenRect dimension) => 188 ScreenRect dimension) =>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 [MinVersion=10] ShowPackageInfoOnPage@15(string package_name, 242 [MinVersion=10] ShowPackageInfoOnPage@15(string package_name,
227 ShowPackageInfoPage page, 243 ShowPackageInfoPage page,
228 ScreenRect dimension_on_screen); 244 ScreenRect dimension_on_screen);
229 245
230 // Sets notification setting for the package. 246 // Sets notification setting for the package.
231 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); 247 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled);
232 248
233 // Sends a request to ARC to uninstall the given package. Error (if ever 249 // Sends a request to ARC to uninstall the given package. Error (if ever
234 // happens) is ignored, and uninstall option should appear in the UI. 250 // happens) is ignored, and uninstall option should appear in the UI.
235 [MinVersion=2] UninstallPackage@5(string package_name); 251 [MinVersion=2] UninstallPackage@5(string package_name);
252
253 // Starts a query for Playstore apps.
254 [MinVersion=18] GetRecentAndSuggestedApps@16(string query,
Luis Héctor Chávez 2017/06/12 21:03:59 nit: [MinVersion=18] GetRecentAndSuggestedApps@
Jiaquan He 2017/06/14 22:31:02 Changed to returning a list of results at once.
255 int32 max_results,
256 AppDiscoveryResultsReceiver recei ver);
236 }; 257 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698