OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // This file was generated by: | 5 // This file was generated by: |
6 // ./tools/json_schema_compiler/compiler.py. | 6 // ./tools/json_schema_compiler/compiler.py. |
7 // NOTE: The format of types has changed. 'FooType' is now | 7 // NOTE: The format of types has changed. 'FooType' is now |
8 // 'chrome.system.display.FooType'. | 8 // 'chrome.system.display.FooType'. |
9 // Please run the closure compiler before committing changes. | 9 // Please run the closure compiler before committing changes. |
10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp
ilation.md | 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp
ilation.md |
(...skipping 27 matching lines...) Expand all Loading... |
38 * top: number, | 38 * top: number, |
39 * right: number, | 39 * right: number, |
40 * bottom: number | 40 * bottom: number |
41 * }} | 41 * }} |
42 * @see https://developer.chrome.com/extensions/system.display#type-Insets | 42 * @see https://developer.chrome.com/extensions/system.display#type-Insets |
43 */ | 43 */ |
44 chrome.system.display.Insets; | 44 chrome.system.display.Insets; |
45 | 45 |
46 /** | 46 /** |
47 * @typedef {{ | 47 * @typedef {{ |
| 48 * x: number, |
| 49 * y: number |
| 50 * }} |
| 51 * @see https://developer.chrome.com/extensions/system.display#type-Point |
| 52 */ |
| 53 chrome.system.display.Point; |
| 54 |
| 55 /** |
| 56 * @typedef {{ |
| 57 * displayPoint: !chrome.system.display.Point, |
| 58 * touchPoint: !chrome.system.display.Point |
| 59 * }} |
| 60 * @see https://developer.chrome.com/extensions/system.display#type-TouchCalibra
tionPair |
| 61 */ |
| 62 chrome.system.display.TouchCalibrationPair; |
| 63 |
| 64 /** |
| 65 * @typedef {{ |
| 66 * pair1: !chrome.system.display.TouchCalibrationPair, |
| 67 * pair2: !chrome.system.display.TouchCalibrationPair, |
| 68 * pair3: !chrome.system.display.TouchCalibrationPair, |
| 69 * pair4: !chrome.system.display.TouchCalibrationPair |
| 70 * }} |
| 71 * @see https://developer.chrome.com/extensions/system.display#type-TouchCalibra
tionPairQuad |
| 72 */ |
| 73 chrome.system.display.TouchCalibrationPairQuad; |
| 74 |
| 75 /** |
| 76 * @typedef {{ |
48 * width: number, | 77 * width: number, |
49 * height: number, | 78 * height: number, |
50 * widthInNativePixels: number, | 79 * widthInNativePixels: number, |
51 * heightInNativePixels: number, | 80 * heightInNativePixels: number, |
52 * uiScale: number, | 81 * uiScale: number, |
53 * deviceScaleFactor: number, | 82 * deviceScaleFactor: number, |
54 * isNative: boolean, | 83 * isNative: boolean, |
55 * isSelected: boolean | 84 * isSelected: boolean |
56 * }} | 85 * }} |
57 * @see https://developer.chrome.com/extensions/system.display#type-DisplayMode | 86 * @see https://developer.chrome.com/extensions/system.display#type-DisplayMode |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 230 |
202 /** | 231 /** |
203 * Complete overscan adjustments for a display by saving the current values and | 232 * Complete overscan adjustments for a display by saving the current values and |
204 * hiding the overlay. | 233 * hiding the overlay. |
205 * @param {string} id The display's unique identifier. | 234 * @param {string} id The display's unique identifier. |
206 * @see https://developer.chrome.com/extensions/system.display#method-overscanCa
librationComplete | 235 * @see https://developer.chrome.com/extensions/system.display#method-overscanCa
librationComplete |
207 */ | 236 */ |
208 chrome.system.display.overscanCalibrationComplete = function(id) {}; | 237 chrome.system.display.overscanCalibrationComplete = function(id) {}; |
209 | 238 |
210 /** | 239 /** |
| 240 * Starts touch calibration for a display. This will show an overlay on the |
| 241 * screen and initialize the UX for touch calibration. If touch calibration for |
| 242 * display |id| is in progress this will reset calibration. |
| 243 * @param {string} id The display's unique identifier. |
| 244 * @see https://developer.chrome.com/extensions/system.display#method-touchCalib
rationStart |
| 245 */ |
| 246 chrome.system.display.touchCalibrationStart = function(id) {}; |
| 247 |
| 248 /** |
| 249 * Sets the touch calibration pairs for a display. These |pairs| would be used |
| 250 * to calibrate the touch screen for display |id|. If touch calibration for |
| 251 * display |id| is in progress this will do nothing. |
| 252 * @param {string} id The display's unique identifier. |
| 253 * @param {!chrome.system.display.TouchCalibrationPairQuad} pairs The pairs of |
| 254 * point used to calibrate the display. |
| 255 * @param {!chrome.system.display.Bounds} bounds Bounds of the display when the |
| 256 * touch calibration was performed. |bounds.left| and |bounds.top| |
| 257 * values are no-op. |
| 258 * @see https://developer.chrome.com/extensions/system.display#method-touchCalib
rationSet |
| 259 */ |
| 260 chrome.system.display.touchCalibrationSet = function(id, pairs, bounds) {}; |
| 261 |
| 262 /** |
| 263 * Resets the touch calibration for the display and removes the saved |
| 264 * calibration data. |
| 265 * @param {string} id The display's unique identifier. |
| 266 * @see https://developer.chrome.com/extensions/system.display#method-touchCalib
rationReset |
| 267 */ |
| 268 chrome.system.display.touchCalibrationReset = function(id) {}; |
| 269 |
| 270 /** |
211 * Fired when anything changes to the display configuration. | 271 * Fired when anything changes to the display configuration. |
212 * @type {!ChromeEvent} | 272 * @type {!ChromeEvent} |
213 * @see https://developer.chrome.com/extensions/system.display#event-onDisplayCh
anged | 273 * @see https://developer.chrome.com/extensions/system.display#event-onDisplayCh
anged |
214 */ | 274 */ |
215 chrome.system.display.onDisplayChanged; | 275 chrome.system.display.onDisplayChanged; |
OLD | NEW |