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: 11 | 5 // Next MinVersion: 12 |
| 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 ARC app. | 12 // Describes ARC app. |
| 13 struct AppInfo { | 13 struct AppInfo { |
| 14 string name; | 14 string name; |
| 15 string package_name; | 15 string package_name; |
| 16 string activity; | 16 string activity; |
| 17 [MinVersion=2] bool sticky; // true if the app cannot be uninstalled | 17 [MinVersion=2] bool sticky; // true if the app cannot be uninstalled |
| 18 [MinVersion=7] bool notifications_enabled; | 18 [MinVersion=7] bool notifications_enabled; |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 // Describes ARC package. | 21 // Describes ARC package. |
| 22 struct ArcPackageInfo { | 22 struct ArcPackageInfo { |
| 23 string package_name; | 23 string package_name; |
| 24 int32 package_version; | 24 int32 package_version; |
| 25 int64 last_backup_android_id; | 25 int64 last_backup_android_id; |
| 26 int64 last_backup_time; | 26 int64 last_backup_time; |
| 27 bool sync; // true if package installation should be synced | 27 bool sync; // true if package installation should be synced |
| 28 [MinVersion=11] bool system; // true if package is system package. | |
|
uekawa-
2016/07/04 02:01:26
do you have a ARC side change?
hirono
2016/07/04 06:53:56
Yes, uploaded ag/1197580.
| |
| 28 }; | 29 }; |
| 29 | 30 |
| 30 // Describes ARC app shortcut. | 31 // Describes ARC app shortcut. |
| 31 struct ShortcutInfo { | 32 struct ShortcutInfo { |
| 32 string name; | 33 string name; |
| 33 string package_name; | 34 string package_name; |
| 34 string icon_resource_id; | 35 string icon_resource_id; |
| 35 string intent_uri; | 36 string intent_uri; |
| 36 }; | 37 }; |
| 37 | 38 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 ShowPackageInfoPage page, | 165 ShowPackageInfoPage page, |
| 165 ScreenRect dimension_on_screen); | 166 ScreenRect dimension_on_screen); |
| 166 | 167 |
| 167 // Sets notification setting for the package. | 168 // Sets notification setting for the package. |
| 168 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); | 169 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); |
| 169 | 170 |
| 170 // Sends a request to ARC to uninstall the given package. Error (if ever | 171 // Sends a request to ARC to uninstall the given package. Error (if ever |
| 171 // happens) is ignored, and uninstall option should appear in the UI. | 172 // happens) is ignored, and uninstall option should appear in the UI. |
| 172 [MinVersion=2] UninstallPackage@5(string package_name); | 173 [MinVersion=2] UninstallPackage@5(string package_name); |
| 173 }; | 174 }; |
| OLD | NEW |