| 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: 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 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: 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 26 matching lines...) Expand all Loading... |
| 115 | 115 |
| 116 // Sends information about newly created task |package_name| and |activity| | 116 // Sends information about newly created task |package_name| and |activity| |
| 117 // specifies launch activity and |intent| is initial intent used to start | 117 // specifies launch activity and |intent| is initial intent used to start |
| 118 // new task. | 118 // new task. |
| 119 [MinVersion=4] OnTaskCreated@4(int32 task_id@0, | 119 [MinVersion=4] OnTaskCreated@4(int32 task_id@0, |
| 120 string package_name@1, | 120 string package_name@1, |
| 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 // Sends task label and icon. |
| 126 [MinVersion=19] OnTaskDescriptionUpdated@17(int32 task_id, |
| 127 string label, |
| 128 array<uint8> icon_png_data); |
| 129 |
| 125 // Notifies that task has been destroyed. | 130 // Notifies that task has been destroyed. |
| 126 [MinVersion=4] OnTaskDestroyed@5(int32 task_id); | 131 [MinVersion=4] OnTaskDestroyed@5(int32 task_id); |
| 127 | 132 |
| 133 // Notifies that task requested orientation lock. |
| 134 [MinVersion=12] OnTaskOrientationLockRequested@12(int32 task_id, |
| 135 OrientationLock lock); |
| 136 |
| 128 // Notifies that task has been activated. | 137 // Notifies that task has been activated. |
| 129 [MinVersion=4] OnTaskSetActive@6(int32 task_id); | 138 [MinVersion=4] OnTaskSetActive@6(int32 task_id); |
| 130 | 139 |
| 131 // Notifies that notifications enabled settings in Android is changed. | 140 // Notifies that notifications enabled settings in Android is changed. |
| 132 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name, | 141 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name, |
| 133 bool enabled); | 142 bool enabled); |
| 134 | 143 |
| 135 // Notifies that an application shortcut needs to be created. | 144 // Notifies that an application shortcut needs to be created. |
| 136 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut); | 145 [MinVersion=9] OnInstallShortcut@11(ShortcutInfo shortcut); |
| 137 | 146 |
| 138 // Notifies that Play Store installation has been started. |package_name| | 147 // Notifies that Play Store installation has been started. |package_name| |
| 139 // specifies installation package | 148 // specifies installation package |
| 140 [MinVersion=16] OnInstallationStarted@14( | 149 [MinVersion=16] OnInstallationStarted@14( |
| 141 [MinVersion=17] string? package_name@0); | 150 [MinVersion=17] string? package_name@0); |
| 142 | 151 |
| 143 // Notifies that Play Store installation is finished. |result| contains | 152 // Notifies that Play Store installation is finished. |result| contains |
| 144 // details of installation result. | 153 // details of installation result. |
| 145 [MinVersion=16] OnInstallationFinished@15( | 154 [MinVersion=16] OnInstallationFinished@15( |
| 146 [MinVersion=17] InstallationResult? result@1); | 155 [MinVersion=17] InstallationResult? result@1); |
| 147 | 156 |
| 148 // Notifies that task requested orientation lock. | |
| 149 [MinVersion=12] OnTaskOrientationLockRequested@12(int32 task_id, | |
| 150 OrientationLock lock); | |
| 151 | |
| 152 // Notifies that an application shortcut needs to be deleted. Shortcut is | 157 // Notifies that an application shortcut needs to be deleted. Shortcut is |
| 153 // defined by its |intent_uri| and |package_name|. | 158 // defined by its |intent_uri| and |package_name|. |
| 154 [MinVersion=18] OnUninstallShortcut@16(string package_name, | 159 [MinVersion=18] OnUninstallShortcut@16(string package_name, |
| 155 string intent_uri); | 160 string intent_uri); |
| 156 }; | 161 }; |
| 157 | 162 |
| 158 // TODO(lhchavez): Migrate all request/response messages to Mojo. | 163 // TODO(lhchavez): Migrate all request/response messages to Mojo. |
| 159 // Next method ID: 16 | 164 // Next method ID: 16 |
| 160 // Deprecated method ID: 9 | 165 // Deprecated method ID: 9 |
| 161 interface AppInstance { | 166 interface AppInstance { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 }; |
| OLD | NEW |