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

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

Issue 2074543003: ARC: Add a link to "Manage supported links" in the Chrome app info dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: 8 5 // Next MinVersion: 9
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 ARC app. 12 // Describes ARC app.
13 struct AppInfo { 13 struct AppInfo {
14 string name; 14 string name;
15 string package_name; 15 string package_name;
16 string activity; 16 string activity;
17 [MinVersion=2] bool sticky; // true if the app cannot be uninstalled 17 [MinVersion=2] bool sticky; // true if the app cannot be uninstalled
18 [MinVersion=7] bool notifications_enabled; 18 [MinVersion=7] bool notifications_enabled;
19 }; 19 };
20 20
21 // Page for ShowPackageInfoOnPage.
22 [Extensible]
23 enum ShowPackageInfoPage {
24 // The main package info page.
25 MAIN = 0,
26
27 // Page for managing links assigned to the app.
28 MANAGE_LINKS = 1,
29 };
30
21 // Next method ID: 8 31 // Next method ID: 8
22 interface AppHost { 32 interface AppHost {
23 // Sends newly added ARC app to Chrome. This message is sent when ARC receives 33 // Sends newly added ARC app to Chrome. This message is sent when ARC receives
24 // package added notification. Multiple apps may be added in the one package. 34 // package added notification. Multiple apps may be added in the one package.
25 [MinVersion=1] OnAppAdded@2(AppInfo app); 35 [MinVersion=1] OnAppAdded@2(AppInfo app);
26 36
27 // Receives an icon of required |scale_factor| for specific ARC app. The app 37 // Receives an icon of required |scale_factor| for specific ARC app. The app
28 // is defined by |package_name| and |activity|. The icon content cannot be 38 // is defined by |package_name| and |activity|. The icon content cannot be
29 // empty and must match to |scale_factor| assuming 48x48 for 39 // empty and must match to |scale_factor| assuming 48x48 for
30 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h. 40 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h.
(...skipping 20 matching lines...) Expand all
51 61
52 // Notifies that task has been activated. 62 // Notifies that task has been activated.
53 [MinVersion=4] OnTaskSetActive@6(int32 task_id); 63 [MinVersion=4] OnTaskSetActive@6(int32 task_id);
54 64
55 // Notifies that notifications enabled settings in Android is changed. 65 // Notifies that notifications enabled settings in Android is changed.
56 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name, 66 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name,
57 bool enabled); 67 bool enabled);
58 }; 68 };
59 69
60 // TODO(lhchavez): Migrate all request/response messages to Mojo. 70 // TODO(lhchavez): Migrate all request/response messages to Mojo.
61 // Next method ID: 11 71 // Next method ID: 12
72 // Deprecated method ID: 9
62 interface AppInstance { 73 interface AppInstance {
63 Init@0(AppHost host_ptr); 74 Init@0(AppHost host_ptr);
64 75
65 // Query if a given resolution can be handled by the application. Returns true 76 // Query if a given resolution can be handled by the application. Returns true
66 // if it can. 77 // if it can.
67 [MinVersion=1] CanHandleResolution@4(string package_name, string activity, 78 [MinVersion=1] CanHandleResolution@4(string package_name, string activity,
68 ScreenRect dimension) => 79 ScreenRect dimension) =>
69 (bool can_handle); 80 (bool can_handle);
70 81
71 // Closes the the given task. 82 // Closes the the given task.
(...skipping 18 matching lines...) Expand all
90 // Sends a request to ARC for the ARC app icon of a required scale factor. 101 // Sends a request to ARC for the ARC app icon of a required scale factor.
91 // Scale factor is an enum defined at ui/base/layout.h. App is defined by 102 // Scale factor is an enum defined at ui/base/layout.h. App is defined by
92 // |package_name| and |activity|, which cannot be empty. 103 // |package_name| and |activity|, which cannot be empty.
93 RequestAppIcon@3(string package_name, string activity, 104 RequestAppIcon@3(string package_name, string activity,
94 ScaleFactor scale_factor); 105 ScaleFactor scale_factor);
95 106
96 // Activates the given task and move it to foreground. 107 // Activates the given task and move it to foreground.
97 [MinVersion=4] SetTaskActive@7(int32 task_id); 108 [MinVersion=4] SetTaskActive@7(int32 task_id);
98 109
99 // Send a request to ARC to show package info for given package. 110 // Send a request to ARC to show package info for given package.
100 [MinVersion=5] ShowPackageInfo@9(string package_name, 111 [MinVersion=5] ShowPackageInfoDeprecated@9(string package_name,
101 ScreenRect dimension_on_screen); 112 ScreenRect dimension_on_screen);
102 113
114 // Send a request to ARC to show package info for given package on the
115 // specified page.
116 [MinVersion=8] ShowPackageInfoOnPage@11(string package_name,
117 ShowPackageInfoPage page,
118 ScreenRect dimension_on_screen);
119
103 // Sets notification setting for the package. 120 // Sets notification setting for the package.
104 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); 121 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled);
105 122
106 // Sends a request to ARC to uninstall the given package. Error (if ever 123 // Sends a request to ARC to uninstall the given package. Error (if ever
107 // happens) is ignored, and uninstall option should appear in the UI. 124 // happens) is ignored, and uninstall option should appear in the UI.
108 [MinVersion=2] UninstallPackage@5(string package_name); 125 [MinVersion=2] UninstallPackage@5(string package_name);
109 }; 126 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698