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

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: Fixes. 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
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | components/arc/test/fake_app_instance.h » ('j') | 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: 10 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 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;
(...skipping 12 matching lines...) Expand all
28 }; 28 };
29 29
30 // Describes ARC app shortcut. 30 // Describes ARC app shortcut.
31 struct ShortcutInfo { 31 struct ShortcutInfo {
32 string name; 32 string name;
33 string package_name; 33 string package_name;
34 string icon_resource_id; 34 string icon_resource_id;
35 string intent_uri; 35 string intent_uri;
36 }; 36 };
37 37
38 // Page for ShowPackageInfoOnPage.
39 [Extensible]
40 enum ShowPackageInfoPage {
41 // The main package info page.
42 MAIN = 0,
43
44 // Page for managing links assigned to the app.
45 MANAGE_LINKS = 1,
46 };
47
38 // Next method ID: 12 48 // Next method ID: 12
39 interface AppHost { 49 interface AppHost {
40 // Sends newly added ARC app to Chrome. This message is sent when ARC receives 50 // Sends newly added ARC app to Chrome. This message is sent when ARC receives
41 // package added notification. Multiple apps may be added in the one package. 51 // package added notification. Multiple apps may be added in the one package.
42 [MinVersion=1] OnAppAdded@2(AppInfo app); 52 [MinVersion=1] OnAppAdded@2(AppInfo app);
43 53
44 // Receives an icon of required |scale_factor| for specific ARC app. The app 54 // Receives an icon of required |scale_factor| for specific ARC app. The app
45 // is defined by |package_name| and |activity|. The icon content cannot be 55 // is defined by |package_name| and |activity|. The icon content cannot be
46 // empty and must match to |scale_factor| assuming 48x48 for 56 // empty and must match to |scale_factor| assuming 48x48 for
47 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h. 57 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 91
82 // Notifies that notifications enabled settings in Android is changed. 92 // Notifies that notifications enabled settings in Android is changed.
83 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name, 93 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name,
84 bool enabled); 94 bool enabled);
85 95
86 // Notifies that an application shortcut needs to be created. 96 // Notifies that an application shortcut needs to be created.
87 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut); 97 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut);
88 }; 98 };
89 99
90 // TODO(lhchavez): Migrate all request/response messages to Mojo. 100 // TODO(lhchavez): Migrate all request/response messages to Mojo.
91 // Next method ID: 15 101 // Next method ID: 16
102 // Deprecated method ID: 9
92 interface AppInstance { 103 interface AppInstance {
93 Init@0(AppHost host_ptr); 104 Init@0(AppHost host_ptr);
94 105
95 // Query if a given resolution can be handled by the application. Returns true 106 // Query if a given resolution can be handled by the application. Returns true
96 // if it can. 107 // if it can.
97 [MinVersion=1] CanHandleResolution@4(string package_name, string activity, 108 [MinVersion=1] CanHandleResolution@4(string package_name, string activity,
98 ScreenRect dimension) => 109 ScreenRect dimension) =>
99 (bool can_handle); 110 (bool can_handle);
100 111
101 // Closes the the given task. 112 // Closes the the given task.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 ScaleFactor scale_factor) => 148 ScaleFactor scale_factor) =>
138 (array<uint8> icon_png_data); 149 (array<uint8> icon_png_data);
139 150
140 // Removes cached shortcut icon with the given resource id. 151 // Removes cached shortcut icon with the given resource id.
141 [MinVersion=9] RemoveCachedIcon@14(string icon_resource_id); 152 [MinVersion=9] RemoveCachedIcon@14(string icon_resource_id);
142 153
143 // Activates the given task and move it to foreground. 154 // Activates the given task and move it to foreground.
144 [MinVersion=4] SetTaskActive@7(int32 task_id); 155 [MinVersion=4] SetTaskActive@7(int32 task_id);
145 156
146 // Sends a request to ARC to show package info for given package. 157 // Sends a request to ARC to show package info for given package.
147 [MinVersion=5] ShowPackageInfo@9(string package_name, 158 [MinVersion=5] ShowPackageInfoDeprecated@9(string package_name,
148 ScreenRect dimension_on_screen); 159 ScreenRect dimension_on_screen);
160
161 // Sends a request to ARC to show package info for given package on the
162 // specified page.
163 [MinVersion=10] ShowPackageInfoOnPage@15(string package_name,
164 ShowPackageInfoPage page,
165 ScreenRect dimension_on_screen);
149 166
150 // Sets notification setting for the package. 167 // Sets notification setting for the package.
151 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); 168 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled);
152 169
153 // Sends a request to ARC to uninstall the given package. Error (if ever 170 // Sends a request to ARC to uninstall the given package. Error (if ever
154 // happens) is ignored, and uninstall option should appear in the UI. 171 // happens) is ignored, and uninstall option should appear in the UI.
155 [MinVersion=2] UninstallPackage@5(string package_name); 172 [MinVersion=2] UninstallPackage@5(string package_name);
156 }; 173 };
OLDNEW
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | components/arc/test/fake_app_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698