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

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

Issue 2894443002: arc: Set custom icon in shelf for ARC apps. (Closed)
Patch Set: cleanup Created 3 years, 7 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: 19 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";
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 // Next method ID: 17 78 // Next method ID: 18
79 interface AppHost { 79 interface AppHost {
80 // Sends newly added ARC app to Chrome. This message is sent when ARC receives 80 // 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. 81 // package added notification. Multiple apps may be added in the one package.
82 [MinVersion=1] OnAppAddedDeprecated@2(AppInfo app); 82 [MinVersion=1] OnAppAddedDeprecated@2(AppInfo app);
83 83
84 // Receives an icon of required |scale_factor| for specific ARC app. The app 84 // 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 85 // is defined by |package_name| and |activity|. The icon content cannot be
86 // empty and must match to |scale_factor| assuming 48x48 for 86 // 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. 87 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h.
88 // |icon_png_data| is a png-encoded image. 88 // |icon_png_data| is a png-encoded image.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 string activity@2, 121 string activity@2,
122 [MinVersion=13] string? name@3, 122 [MinVersion=13] string? name@3,
123 [MinVersion=15] string? intent@4); 123 [MinVersion=15] string? intent@4);
124 124
125 // Notifies that task has been destroyed. 125 // Notifies that task has been destroyed.
126 [MinVersion=4] OnTaskDestroyed@5(int32 task_id); 126 [MinVersion=4] OnTaskDestroyed@5(int32 task_id);
127 127
128 // Notifies that task has been activated. 128 // Notifies that task has been activated.
129 [MinVersion=4] OnTaskSetActive@6(int32 task_id); 129 [MinVersion=4] OnTaskSetActive@6(int32 task_id);
130 130
131 // Sends task description.
132 [MinVersion=19] OnTaskSetDescription@17(int32 task_id,
133 string label,
134 array<uint8> icon_png_data);
reveman 2017/05/18 16:46:03 Sending malicious image data to chrome is a well k
khmel 2017/05/18 17:29:35 We have several places already in this mojo to sen
135
131 // Notifies that notifications enabled settings in Android is changed. 136 // Notifies that notifications enabled settings in Android is changed.
132 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name, 137 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name,
133 bool enabled); 138 bool enabled);
134 139
135 // Notifies that an application shortcut needs to be created. 140 // Notifies that an application shortcut needs to be created.
136 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut); 141 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut);
137 142
138 // Notifies that Play Store installation has been started. |package_name| 143 // Notifies that Play Store installation has been started. |package_name|
139 // specifies installation package 144 // specifies installation package
140 [MinVersion=16] OnInstallationStarted@14( 145 [MinVersion=16] OnInstallationStarted@14(
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 ShowPackageInfoPage page, 227 ShowPackageInfoPage page,
223 ScreenRect dimension_on_screen); 228 ScreenRect dimension_on_screen);
224 229
225 // Sets notification setting for the package. 230 // Sets notification setting for the package.
226 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); 231 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled);
227 232
228 // Sends a request to ARC to uninstall the given package. Error (if ever 233 // Sends a request to ARC to uninstall the given package. Error (if ever
229 // happens) is ignored, and uninstall option should appear in the UI. 234 // happens) is ignored, and uninstall option should appear in the UI.
230 [MinVersion=2] UninstallPackage@5(string package_name); 235 [MinVersion=2] UninstallPackage@5(string package_name);
231 }; 236 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698