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] OnAppAddedDeprecated@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. |
| 70 OnAppIcon@1(string package_name, string activity, | 70 OnAppIcon@1(string package_name, string activity, |
| 71 ScaleFactor scale_factor, array<uint8> icon_png_data); | 71 ScaleFactor scale_factor, array<uint8> icon_png_data); |
| 72 | 72 |
| 73 // Receives a list of available ARC apps to Chrome. Members of AppInfo must | 73 // Receives a list of available ARC apps to Chrome. Members of AppInfo must |
| 74 // contain non-empty string. | 74 // contain non-empty string. |
| 75 OnAppListRefreshed@0(array<AppInfo> apps); | 75 OnAppListRefreshed@0(array<AppInfo> apps); |
| 76 | 76 |
| 77 // Notifies that a package has been added. | 77 // Notifies that a package has been added. |
| 78 [MinVersion=8] OnPackageAdded@8(ArcPackageInfo arcPackageInfo); | 78 [MinVersion=8] OnPackageAdded@8(ArcPackageInfo arcPackageInfo); |
| 79 | 79 |
| 80 // Notifies that a package list of apps has been updated. | |
| 81 [MinVersion=13] OnPackageAppListRefreshed@13(string package_name, | |
| 82 array<AppInfo> apps); | |
|
xiyuan
2016/08/09 16:51:14
So we are tracking apps from a package in ARC side
khmel
2016/08/09 17:46:39
Yes, we are sending this event from ARC side. Rela
| |
| 83 | |
| 80 // Receives a list of available ARC packages to Chrome. Members of | 84 // Receives a list of available ARC packages to Chrome. Members of |
| 81 // PackageInfo must contain non-empty string. | 85 // PackageInfo must contain non-empty string. |
| 82 [MinVersion=8] OnPackageListRefreshed@9(array<ArcPackageInfo> packages); | 86 [MinVersion=8] OnPackageListRefreshed@9(array<ArcPackageInfo> packages); |
| 83 | 87 |
| 84 // Notifies that a package has been modified. | 88 // Notifies that a package has been modified. |
| 85 [MinVersion=8] OnPackageModified@10(ArcPackageInfo arcPackageInfo); | 89 [MinVersion=8] OnPackageModified@10(ArcPackageInfo arcPackageInfo); |
| 86 | 90 |
| 87 // Sends removed ARC package to Chrome. |package_name| must contain non-empty | 91 // Sends removed ARC package to Chrome. |package_name| must contain non-empty |
| 88 // string. This message is sent when ARC receives package removed | 92 // string. This message is sent when ARC receives package removed |
| 89 // notification. Removing one package can potentially remove more than one | 93 // notification. Removing one package can potentially remove more than one |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 179 ShowPackageInfoPage page, | 183 ShowPackageInfoPage page, |
| 180 ScreenRect dimension_on_screen); | 184 ScreenRect dimension_on_screen); |
| 181 | 185 |
| 182 // Sets notification setting for the package. | 186 // Sets notification setting for the package. |
| 183 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); | 187 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); |
| 184 | 188 |
| 185 // Sends a request to ARC to uninstall the given package. Error (if ever | 189 // 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. | 190 // happens) is ignored, and uninstall option should appear in the UI. |
| 187 [MinVersion=2] UninstallPackage@5(string package_name); | 191 [MinVersion=2] UninstallPackage@5(string package_name); |
| 188 }; | 192 }; |
| OLD | NEW |