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: 13 | 5 // Next MinVersion: 14 |
| 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 [Extensible] | 13 [Extensible] |
| 14 enum OrientationLock { | 14 enum OrientationLock { |
| 15 NONE = 0, | 15 NONE = 0, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 49 // Page for ShowPackageInfoOnPage. | 49 // Page for ShowPackageInfoOnPage. |
| 50 [Extensible] | 50 [Extensible] |
| 51 enum ShowPackageInfoPage { | 51 enum ShowPackageInfoPage { |
| 52 // The main package info page. | 52 // The main package info page. |
| 53 MAIN = 0, | 53 MAIN = 0, |
| 54 | 54 |
| 55 // Page for managing links assigned to the app. | 55 // Page for managing links assigned to the app. |
| 56 MANAGE_LINKS = 1, | 56 MANAGE_LINKS = 1, |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 // Next method ID: 13 | 59 // Next method ID: 14 |
| 60 interface AppHost { | 60 interface AppHost { |
| 61 // Sends newly added ARC app to Chrome. This message is sent when ARC receives | 61 // Sends newly added ARC app to Chrome. This message is sent when ARC receives |
| 62 // package added notification. Multiple apps may be added in the one package. | 62 // package added notification. Multiple apps may be added in the one package. |
| 63 [MinVersion=1] OnAppAdded@2(AppInfo app); | 63 [MinVersion=1] OnAppAdded@2(AppInfo app); |
| 64 | 64 |
| 65 // Receives an icon of required |scale_factor| for specific ARC app. The app | 65 // Receives an icon of required |scale_factor| for specific ARC app. The app |
| 66 // is defined by |package_name| and |activity|. The icon content cannot be | 66 // is defined by |package_name| and |activity|. The icon content cannot be |
| 67 // empty and must match to |scale_factor| assuming 48x48 for | 67 // empty and must match to |scale_factor| assuming 48x48 for |
| 68 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h. | 68 // SCALE_FACTOR_100P. |scale_factor| is an enum defined at ui/base/layout.h. |
| 69 // |icon_png_data| is a png-encoded image. | 69 // |icon_png_data| is a png-encoded image. |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 84 // Notifies that a package has been modified. | 84 // Notifies that a package has been modified. |
| 85 [MinVersion=8] OnPackageModified@10(ArcPackageInfo arcPackageInfo); | 85 [MinVersion=8] OnPackageModified@10(ArcPackageInfo arcPackageInfo); |
| 86 | 86 |
| 87 // Sends removed ARC package to Chrome. |package_name| must contain non-empty | 87 // Sends removed ARC package to Chrome. |package_name| must contain non-empty |
| 88 // string. This message is sent when ARC receives package removed | 88 // string. This message is sent when ARC receives package removed |
| 89 // notification. Removing one package can potentially remove more than one | 89 // notification. Removing one package can potentially remove more than one |
| 90 // app. | 90 // app. |
| 91 [MinVersion=1] OnPackageRemoved@3(string package_name); | 91 [MinVersion=1] OnPackageRemoved@3(string package_name); |
| 92 | 92 |
| 93 // Sends information about newly created task. | 93 // Sends information about newly created task. |
| 94 [MinVersion=4] OnTaskCreated@4(int32 task_id, string package_name, | 94 [MinVersion=4] OnTaskCreated@4(int32 task_id, |
|
Luis Héctor Chávez
2016/08/10 17:48:53
FYI: I was able to add the field in the middle by
| |
| 95 string activity); | 95 string package_name, |
| 96 string activity, | |
| 97 [MinVersion=13] string? name); | |
| 96 | 98 |
| 97 // Notifies that task has been destroyed. | 99 // Notifies that task has been destroyed. |
| 98 [MinVersion=4] OnTaskDestroyed@5(int32 task_id); | 100 [MinVersion=4] OnTaskDestroyed@5(int32 task_id); |
| 99 | 101 |
| 100 // Notifies that task has been activated. | 102 // Notifies that task has been activated. |
| 101 [MinVersion=4] OnTaskSetActive@6(int32 task_id); | 103 [MinVersion=4] OnTaskSetActive@6(int32 task_id); |
| 102 | 104 |
| 103 // Notifies that notifications enabled settings in Android is changed. | 105 // Notifies that notifications enabled settings in Android is changed. |
| 104 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name, | 106 [MinVersion=7] OnNotificationsEnabledChanged@7(string package_name, |
| 105 bool enabled); | 107 bool enabled); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 179 ShowPackageInfoPage page, | 181 ShowPackageInfoPage page, |
| 180 ScreenRect dimension_on_screen); | 182 ScreenRect dimension_on_screen); |
| 181 | 183 |
| 182 // Sets notification setting for the package. | 184 // Sets notification setting for the package. |
| 183 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); | 185 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); |
| 184 | 186 |
| 185 // Sends a request to ARC to uninstall the given package. Error (if ever | 187 // Sends a request to ARC to uninstall the given package. Error (if ever |
| 186 // happens) is ignored, and uninstall option should appear in the UI. | 188 // happens) is ignored, and uninstall option should appear in the UI. |
| 187 [MinVersion=2] UninstallPackage@5(string package_name); | 189 [MinVersion=2] UninstallPackage@5(string package_name); |
| 188 }; | 190 }; |
| OLD | NEW |