| 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: 15 | 5 // Next MinVersion: 15 |
| 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. |
| 14 // All rotation angles mentioned here are measured clockwise. |
| 13 [Extensible] | 15 [Extensible] |
| 14 enum OrientationLock { | 16 enum OrientationLock { |
| 15 NONE = 0, | 17 NONE = 0, |
| 18 // Rotated 90 or 270 deg. |
| 16 PORTRAIT = 1, | 19 PORTRAIT = 1, |
| 20 // Rotated 0 or 180 deg. |
| 17 LANDSCAPE = 2, | 21 LANDSCAPE = 2, |
| 22 // Keep the current orientation. |
| 18 CURRENT = 3, | 23 CURRENT = 3, |
| 24 // Rotated 90 deg. |
| 25 PORTRAIT_PRIMARY = 4, |
| 26 // Rotated 0 deg. |
| 27 LANDSCAPE_PRIMARY = 5, |
| 28 // Rotated 270 deg. |
| 29 PORTRAIT_SECONDARY = 6, |
| 30 // Rotated 180 deg. |
| 31 LANDSCAPE_SECONDARY = 7, |
| 19 }; | 32 }; |
| 20 | 33 |
| 21 // Describes ARC app. | 34 // Describes ARC app. |
| 22 struct AppInfo { | 35 struct AppInfo { |
| 23 string name; | 36 string name; |
| 24 string package_name; | 37 string package_name; |
| 25 string activity; | 38 string activity; |
| 26 [MinVersion=2] bool sticky; // true if the app cannot be uninstalled | 39 [MinVersion=2] bool sticky; // true if the app cannot be uninstalled |
| 27 [MinVersion=7] bool notifications_enabled; | 40 [MinVersion=7] bool notifications_enabled; |
| 28 [MinVersion=12] OrientationLock orientation_lock; | 41 [MinVersion=12] OrientationLock orientation_lock; |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 ShowPackageInfoPage page, | 198 ShowPackageInfoPage page, |
| 186 ScreenRect dimension_on_screen); | 199 ScreenRect dimension_on_screen); |
| 187 | 200 |
| 188 // Sets notification setting for the package. | 201 // Sets notification setting for the package. |
| 189 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); | 202 [MinVersion=6] SetNotificationsEnabled@10(string package_name, bool enabled); |
| 190 | 203 |
| 191 // Sends a request to ARC to uninstall the given package. Error (if ever | 204 // Sends a request to ARC to uninstall the given package. Error (if ever |
| 192 // happens) is ignored, and uninstall option should appear in the UI. | 205 // happens) is ignored, and uninstall option should appear in the UI. |
| 193 [MinVersion=2] UninstallPackage@5(string package_name); | 206 [MinVersion=2] UninstallPackage@5(string package_name); |
| 194 }; | 207 }; |
| OLD | NEW |