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

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

Issue 2929273002: Add the Play Store app search to the launcher. (Closed)
Patch Set: Merge API and implementation. 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
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
Luis Héctor Chávez 2017/06/16 22:24:35 Next MinVersion: 21
Jiaquan He 2017/06/22 04:30:04 Done.
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";
11 11
12 // Describes OrientationLock request. 12 // Describes OrientationLock request.
13 // Note: ChromeOS currently assumes the internal panel is always landscape. 13 // Note: ChromeOS currently assumes the internal panel is always landscape.
14 // All rotation angles mentioned here are measured clockwise. 14 // All rotation angles mentioned here are measured clockwise.
15 [Extensible] 15 [Extensible]
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Page for ShowPackageInfoOnPage. 68 // Page for ShowPackageInfoOnPage.
69 [Extensible] 69 [Extensible]
70 enum ShowPackageInfoPage { 70 enum ShowPackageInfoPage {
71 // The main package info page. 71 // The main package info page.
72 MAIN = 0, 72 MAIN = 0,
73 73
74 // Page for managing links assigned to the app. 74 // Page for managing links assigned to the app.
75 MANAGE_LINKS = 1, 75 MANAGE_LINKS = 1,
76 }; 76 };
77 77
78 // Describes a Play Store app discovery result.
79 struct AppDiscoveryResult {
80 string launch_intent_uri;
Luis Héctor Chávez 2017/06/19 17:51:53 All the strings seem to be optional from the Andro
Jiaquan He 2017/06/22 04:30:04 Done.
81 string install_intent_uri;
82 string label;
83 bool is_instant_app;
84 bool is_recent;
85 string publisher_name;
86 array<uint8> icon_png_data;
87 };
88
78 // Next method ID: 18 89 // Next method ID: 18
Luis Héctor Chávez 2017/06/16 22:24:35 Next method ID: 19
Jiaquan He 2017/06/22 04:30:04 Done.
79 interface AppHost { 90 interface AppHost {
80 // Sends newly added ARC app to Chrome. This message is sent when ARC receives 91 // Sends newly added ARC app to Chrome. This message is sent when ARC receives
81 // package added notification. Multiple apps may be added in the one package. 92 // package added notification. Multiple apps may be added in the one package.
82 [MinVersion=1] OnAppAddedDeprecated@2(AppInfo app); 93 [MinVersion=1] OnAppAddedDeprecated@2(AppInfo app);
83 94
84 // Receives an icon of required |scale_factor| for specific ARC app. The app 95 // Receives an icon of required |scale_factor| for specific ARC app. The app
85 // is defined by |package_name| and |activity|. The icon content cannot be 96 // is defined by |package_name| and |activity|. The icon content cannot be
86 // empty and must match to |scale_factor| assuming 48x48 for 97 // empty and must match to |scale_factor| assuming 48x48 for
87 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h. 98 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h.
88 // |icon_png_data| is a png-encoded image. 99 // |icon_png_data| is a png-encoded image.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 [MinVersion=10] ShowPackageInfoOnPage@15(string package_name, 237 [MinVersion=10] ShowPackageInfoOnPage@15(string package_name,
227 ShowPackageInfoPage page, 238 ShowPackageInfoPage page,
228 ScreenRect dimension_on_screen); 239 ScreenRect dimension_on_screen);
229 240
230 // Sets notification setting for the package. 241 // Sets notification setting for the package.
231 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); 242 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled);
232 243
233 // Sends a request to ARC to uninstall the given package. Error (if ever 244 // 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. 245 // happens) is ignored, and uninstall option should appear in the UI.
235 [MinVersion=2] UninstallPackage@5(string package_name); 246 [MinVersion=2] UninstallPackage@5(string package_name);
247
248 // Starts a query for Play Store apps.
249 [MinVersion=18] GetRecentAndSuggestedAppsFromPlayStore@16(
Luis Héctor Chávez 2017/06/16 22:24:35 MinVersion=20
Jiaquan He 2017/06/22 04:30:04 Done.
250 string query, int32 max_results) =>
251 (array<AppDiscoveryResult> results);
236 }; 252 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698