Chromium Code Reviews| OLD | NEW |
|---|---|
| 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: 18 | 5 // Next MinVersion: 19 |
| 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 Loading... | |
| 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: 16 | 78 // Next method ID: 17 |
| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 141 [MinVersion=17] string? package_name@0); | 141 [MinVersion=17] string? package_name@0); |
| 142 | 142 |
| 143 // Notifies that Play Store installation is finished. |result| contains | 143 // Notifies that Play Store installation is finished. |result| contains |
| 144 // details of installation result. | 144 // details of installation result. |
| 145 [MinVersion=16] OnInstallationFinished@15( | 145 [MinVersion=16] OnInstallationFinished@15( |
| 146 [MinVersion=17] InstallationResult? result@1); | 146 [MinVersion=17] InstallationResult? result@1); |
| 147 | 147 |
| 148 // Notifies that task requested orientation lock. | 148 // Notifies that task requested orientation lock. |
| 149 [MinVersion=12] OnTaskOrientationLockRequested@12(int32 task_id, | 149 [MinVersion=12] OnTaskOrientationLockRequested@12(int32 task_id, |
| 150 OrientationLock lock); | 150 OrientationLock lock); |
| 151 | |
| 152 // Notifies that an application shortcut needs to be deleted. Shortcut is | |
| 153 // defined by it's |intent_uri| and |package_name|. | |
|
nasko
2017/05/03 18:34:45
nit: s/it's/its/
| |
| 154 [MinVersion=18] OnUninstallShortcut@16(string package_name, | |
| 155 string intent_uri); | |
| 151 }; | 156 }; |
| 152 | 157 |
| 153 // TODO(lhchavez): Migrate all request/response messages to Mojo. | 158 // TODO(lhchavez): Migrate all request/response messages to Mojo. |
| 154 // Next method ID: 16 | 159 // Next method ID: 16 |
| 155 // Deprecated method ID: 9 | 160 // Deprecated method ID: 9 |
| 156 interface AppInstance { | 161 interface AppInstance { |
| 157 Init@0(AppHost host_ptr); | 162 Init@0(AppHost host_ptr); |
| 158 | 163 |
| 159 // Query if a given resolution can be handled by the application. Returns true | 164 // Query if a given resolution can be handled by the application. Returns true |
| 160 // if it can. | 165 // if it can. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 217 ShowPackageInfoPage page, | 222 ShowPackageInfoPage page, |
| 218 ScreenRect dimension_on_screen); | 223 ScreenRect dimension_on_screen); |
| 219 | 224 |
| 220 // Sets notification setting for the package. | 225 // Sets notification setting for the package. |
| 221 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); | 226 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); |
| 222 | 227 |
| 223 // Sends a request to ARC to uninstall the given package. Error (if ever | 228 // Sends a request to ARC to uninstall the given package. Error (if ever |
| 224 // happens) is ignored, and uninstall option should appear in the UI. | 229 // happens) is ignored, and uninstall option should appear in the UI. |
| 225 [MinVersion=2] UninstallPackage@5(string package_name); | 230 [MinVersion=2] UninstallPackage@5(string package_name); |
| 226 }; | 231 }; |
| OLD | NEW |