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

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: I had a tough morning. Now fixed builds. 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 enum ShowPackageInfoPage {
Yusuke Sato 2016/06/20 05:00:26 You probably want to add [Extensible] here so you
mtomasz 2016/06/20 05:14:58 Done.
23 MAIN = 0,
24 MANAGE_LINKS = 1,
25 };
26
21 // Next method ID: 8 27 // Next method ID: 8
22 interface AppHost { 28 interface AppHost {
23 // Sends newly added ARC app to Chrome. This message is sent when ARC receives 29 // 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. 30 // package added notification. Multiple apps may be added in the one package.
25 [MinVersion=1] OnAppAdded@2(AppInfo app); 31 [MinVersion=1] OnAppAdded@2(AppInfo app);
26 32
27 // Receives an icon of required |scale_factor| for specific ARC app. The app 33 // 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 34 // is defined by |package_name| and |activity|. The icon content cannot be
29 // empty and must match to |scale_factor| assuming 48x48 for 35 // 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. 36 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h.
(...skipping 20 matching lines...) Expand all
51 57
52 // Notifies that task has been activated. 58 // Notifies that task has been activated.
53 [MinVersion=4] OnTaskSetActive@6(int32 task_id); 59 [MinVersion=4] OnTaskSetActive@6(int32 task_id);
54 60
55 // Notifies that notifications enabled settings in Android is changed. 61 // Notifies that notifications enabled settings in Android is changed.
56 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name, 62 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name,
57 bool enabled); 63 bool enabled);
58 }; 64 };
59 65
60 // TODO(lhchavez): Migrate all request/response messages to Mojo. 66 // TODO(lhchavez): Migrate all request/response messages to Mojo.
61 // Next method ID: 11 67 // Next method ID: 12
68 // Deprecated method ID: 9
62 interface AppInstance { 69 interface AppInstance {
63 Init@0(AppHost host_ptr); 70 Init@0(AppHost host_ptr);
64 71
65 // Query if a given resolution can be handled by the application. Returns true 72 // Query if a given resolution can be handled by the application. Returns true
66 // if it can. 73 // if it can.
67 [MinVersion=1] CanHandleResolution@4(string package_name, string activity, 74 [MinVersion=1] CanHandleResolution@4(string package_name, string activity,
68 ScreenRect dimension) => 75 ScreenRect dimension) =>
69 (bool can_handle); 76 (bool can_handle);
70 77
71 // Closes the the given task. 78 // 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. 97 // 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 98 // Scale factor is an enum defined at ui/base/layout.h. App is defined by
92 // |package_name| and |activity|, which cannot be empty. 99 // |package_name| and |activity|, which cannot be empty.
93 RequestAppIcon@3(string package_name, string activity, 100 RequestAppIcon@3(string package_name, string activity,
94 ScaleFactor scale_factor); 101 ScaleFactor scale_factor);
95 102
96 // Activates the given task and move it to foreground. 103 // Activates the given task and move it to foreground.
97 [MinVersion=4] SetTaskActive@7(int32 task_id); 104 [MinVersion=4] SetTaskActive@7(int32 task_id);
98 105
99 // Send a request to ARC to show package info for given package. 106 // Send a request to ARC to show package info for given package.
107 // Deprecated.
100 [MinVersion=5] ShowPackageInfo@9(string package_name, 108 [MinVersion=5] ShowPackageInfo@9(string package_name,
Yusuke Sato 2016/06/20 05:00:26 Can you rename this to ShowPackageInfoDeprecated@9
mtomasz 2016/06/20 05:14:58 Done.
101 ScreenRect dimension_on_screen); 109 ScreenRect dimension_on_screen);
102 110
111 // Send a request to ARC to show package info for given package on the
112 // specified page.
113 [MinVersion=8] ShowPackageInfoOnPage@11(string package_name,
114 ShowPackageInfoPage page,
115 ScreenRect dimension_on_screen);
116
103 // Sets notification setting for the package. 117 // Sets notification setting for the package.
104 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); 118 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled);
105 119
106 // Sends a request to ARC to uninstall the given package. Error (if ever 120 // 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. 121 // happens) is ignored, and uninstall option should appear in the UI.
108 [MinVersion=2] UninstallPackage@5(string package_name); 122 [MinVersion=2] UninstallPackage@5(string package_name);
109 }; 123 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698