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: 3 | 5 // Next MinVersion: 4 |
6 | 6 |
7 module arc; | 7 module arc; |
8 | 8 |
9 // Duplicates ui::ScaleFactor enum in order to be accessible on Android side. | 9 // Duplicates ui::ScaleFactor enum in order to be accessible on Android side. |
10 enum ScaleFactor { | 10 enum ScaleFactor { |
11 SCALE_FACTOR_NONE = 0, | 11 SCALE_FACTOR_NONE = 0, |
12 SCALE_FACTOR_100P, | 12 SCALE_FACTOR_100P, |
13 SCALE_FACTOR_125P, | 13 SCALE_FACTOR_125P, |
14 SCALE_FACTOR_133P, | 14 SCALE_FACTOR_133P, |
15 SCALE_FACTOR_140P, | 15 SCALE_FACTOR_140P, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 ScaleFactor scale_factor); | 86 ScaleFactor scale_factor); |
87 | 87 |
88 // Query if a given resolution can be handled by the application. Returns true | 88 // Query if a given resolution can be handled by the application. Returns true |
89 // if it can. | 89 // if it can. |
90 [MinVersion=1] CanHandleResolution(string package_name, string activity, | 90 [MinVersion=1] CanHandleResolution(string package_name, string activity, |
91 ScreenRect dimension) => (bool can_handle); | 91 ScreenRect dimension) => (bool can_handle); |
92 | 92 |
93 // Sends a request to ARC to uninstall the given package. Error (if ever | 93 // Sends a request to ARC to uninstall the given package. Error (if ever |
94 // happens) is ignored, and uninstall option should appear in the UI. | 94 // happens) is ignored, and uninstall option should appear in the UI. |
95 [MinVersion=2] UninstallPackage(string package_name); | 95 [MinVersion=2] UninstallPackage(string package_name); |
| 96 |
| 97 // Requests information about task. |
| 98 [MinVersion=3] GetTaskInfo(int32 task_id) => (string package_name, |
| 99 string activity); |
96 }; | 100 }; |
OLD | NEW |