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: 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: 18 |
| 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. |name| specifies na me | |
|
xiyuan
2016/12/15 22:07:21
nit: wrap
khmel
2016/12/16 00:35:30
Done
| |
| 133 // of installation and |package_name| specifies installation package. | |
| 134 [MinVersion=16] OnInstallationStarted@14(string name@0, | |
| 135 string package_name@1); | |
| 136 | |
| 137 // Notifies that Play Store active installation is changed. |package_name| | |
| 138 // specifies installation which becomes active. | |
| 139 [MinVersion=16] OnInstallationSetActive@15(string package_name@0); | |
| 140 | |
| 141 // Notifies that Play Store installation progress. |package_name| specifies | |
| 142 // installation package and |progress| current progress. | |
| 143 [MinVersion=16] OnInstallationProgress@16(string package_name@0, | |
| 144 float progress@1); | |
| 145 | |
| 146 // Notifies that Play Store installation is finished. |package_name| specifies | |
| 147 // installation package and |success| contains true if installation has | |
| 148 // completed successfully. | |
| 149 [MinVersion=16] OnInstallationFinished@17(string package_name@0, | |
| 150 bool success@1); | |
| 151 | |
| 132 // Notifies that task requested orientation lock. | 152 // Notifies that task requested orientation lock. |
| 133 [MinVersion=12] OnTaskOrientationLockRequested@12(int32 task_id, | 153 [MinVersion=12] OnTaskOrientationLockRequested@12(int32 task_id, |
| 134 OrientationLock lock); | 154 OrientationLock lock); |
| 135 }; | 155 }; |
| 136 | 156 |
| 137 // TODO(lhchavez): Migrate all request/response messages to Mojo. | 157 // TODO(lhchavez): Migrate all request/response messages to Mojo. |
| 138 // Next method ID: 16 | 158 // Next method ID: 16 |
| 139 // Deprecated method ID: 9 | 159 // Deprecated method ID: 9 |
| 140 interface AppInstance { | 160 interface AppInstance { |
| 141 Init@0(AppHost host_ptr); | 161 Init@0(AppHost host_ptr); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 201 ShowPackageInfoPage page, | 221 ShowPackageInfoPage page, |
| 202 ScreenRect dimension_on_screen); | 222 ScreenRect dimension_on_screen); |
| 203 | 223 |
| 204 // Sets notification setting for the package. | 224 // Sets notification setting for the package. |
| 205 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); | 225 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); |
| 206 | 226 |
| 207 // Sends a request to ARC to uninstall the given package. Error (if ever | 227 // 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. | 228 // happens) is ignored, and uninstall option should appear in the UI. |
| 209 [MinVersion=2] UninstallPackage@5(string package_name); | 229 [MinVersion=2] UninstallPackage@5(string package_name); |
| 210 }; | 230 }; |
| OLD | NEW |