| 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: 16 | 5 // Next MinVersion: 17 |
| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // Page for ShowPackageInfoOnPage. | 62 // Page for ShowPackageInfoOnPage. |
| 63 [Extensible] | 63 [Extensible] |
| 64 enum ShowPackageInfoPage { | 64 enum ShowPackageInfoPage { |
| 65 // The main package info page. | 65 // The main package info page. |
| 66 MAIN = 0, | 66 MAIN = 0, |
| 67 | 67 |
| 68 // Page for managing links assigned to the app. | 68 // Page for managing links assigned to the app. |
| 69 MANAGE_LINKS = 1, | 69 MANAGE_LINKS = 1, |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 // Next method ID: 14 | 72 // Next method ID: 16 |
| 73 interface AppHost { | 73 interface AppHost { |
| 74 // Sends newly added ARC app to Chrome. This message is sent when ARC receives | 74 // Sends newly added ARC app to Chrome. This message is sent when ARC receives |
| 75 // package added notification. Multiple apps may be added in the one package. | 75 // package added notification. Multiple apps may be added in the one package. |
| 76 [MinVersion=1] OnAppAddedDeprecated@2(AppInfo app); | 76 [MinVersion=1] OnAppAddedDeprecated@2(AppInfo app); |
| 77 | 77 |
| 78 // Receives an icon of required |scale_factor| for specific ARC app. The app | 78 // Receives an icon of required |scale_factor| for specific ARC app. The app |
| 79 // is defined by |package_name| and |activity|. The icon content cannot be | 79 // is defined by |package_name| and |activity|. The icon content cannot be |
| 80 // empty and must match to |scale_factor| assuming 48x48 for | 80 // empty and must match to |scale_factor| assuming 48x48 for |
| 81 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h. | 81 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h. |
| 82 // |icon_png_data| is a png-encoded image. | 82 // |icon_png_data| is a png-encoded image. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // Notifies that task has been activated. | 122 // Notifies that task has been activated. |
| 123 [MinVersion=4] OnTaskSetActive@6(int32 task_id); | 123 [MinVersion=4] OnTaskSetActive@6(int32 task_id); |
| 124 | 124 |
| 125 // Notifies that notifications enabled settings in Android is changed. | 125 // Notifies that notifications enabled settings in Android is changed. |
| 126 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name, | 126 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name, |
| 127 bool enabled); | 127 bool enabled); |
| 128 | 128 |
| 129 // Notifies that an application shortcut needs to be created. | 129 // Notifies that an application shortcut needs to be created. |
| 130 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut); | 130 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut); |
| 131 | 131 |
| 132 // Notifies that Play Store installation has been started. |
| 133 [MinVersion=16] OnInstallationStarted@14(); |
| 134 |
| 135 // Notifies that Play Store installation is finished. |
| 136 [MinVersion=16] OnInstallationFinished@15(); |
| 137 |
| 132 // Notifies that task requested orientation lock. | 138 // Notifies that task requested orientation lock. |
| 133 [MinVersion=12] OnTaskOrientationLockRequested@12(int32 task_id, | 139 [MinVersion=12] OnTaskOrientationLockRequested@12(int32 task_id, |
| 134 OrientationLock lock); | 140 OrientationLock lock); |
| 135 }; | 141 }; |
| 136 | 142 |
| 137 // TODO(lhchavez): Migrate all request/response messages to Mojo. | 143 // TODO(lhchavez): Migrate all request/response messages to Mojo. |
| 138 // Next method ID: 16 | 144 // Next method ID: 16 |
| 139 // Deprecated method ID: 9 | 145 // Deprecated method ID: 9 |
| 140 interface AppInstance { | 146 interface AppInstance { |
| 141 Init@0(AppHost host_ptr); | 147 Init@0(AppHost host_ptr); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 ShowPackageInfoPage page, | 207 ShowPackageInfoPage page, |
| 202 ScreenRect dimension_on_screen); | 208 ScreenRect dimension_on_screen); |
| 203 | 209 |
| 204 // Sets notification setting for the package. | 210 // Sets notification setting for the package. |
| 205 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); | 211 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); |
| 206 | 212 |
| 207 // Sends a request to ARC to uninstall the given package. Error (if ever | 213 // Sends a request to ARC to uninstall the given package. Error (if ever |
| 208 // happens) is ignored, and uninstall option should appear in the UI. | 214 // happens) is ignored, and uninstall option should appear in the UI. |
| 209 [MinVersion=2] UninstallPackage@5(string package_name); | 215 [MinVersion=2] UninstallPackage@5(string package_name); |
| 210 }; | 216 }; |
| OLD | NEW |