Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: third_party/closure_compiler/externs/system_display.js

Issue 2802603005: MD Settings: Display: Add unified desktop control and modify api (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 chrome.system.display.DisplayLayout; 110 chrome.system.display.DisplayLayout;
111 111
112 /** 112 /**
113 * @typedef {{ 113 * @typedef {{
114 * id: string, 114 * id: string,
115 * name: string, 115 * name: string,
116 * mirroringSourceId: string, 116 * mirroringSourceId: string,
117 * isPrimary: boolean, 117 * isPrimary: boolean,
118 * isInternal: boolean, 118 * isInternal: boolean,
119 * isEnabled: boolean, 119 * isEnabled: boolean,
120 * isUnified: boolean,
120 * dpiX: number, 121 * dpiX: number,
121 * dpiY: number, 122 * dpiY: number,
122 * rotation: number, 123 * rotation: number,
123 * bounds: !chrome.system.display.Bounds, 124 * bounds: !chrome.system.display.Bounds,
124 * overscan: !chrome.system.display.Insets, 125 * overscan: !chrome.system.display.Insets,
125 * workArea: !chrome.system.display.Bounds, 126 * workArea: !chrome.system.display.Bounds,
126 * modes: !Array<!chrome.system.display.DisplayMode>, 127 * modes: !Array<!chrome.system.display.DisplayMode>,
127 * hasTouchSupport: boolean 128 * hasTouchSupport: boolean
128 * }} 129 * }}
129 * @see https://developer.chrome.com/extensions/system.display#type-DisplayUnitI nfo 130 * @see https://developer.chrome.com/extensions/system.display#type-DisplayUnitI nfo
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 232
232 /** 233 /**
233 * Complete overscan adjustments for a display by saving the current values and 234 * Complete overscan adjustments for a display by saving the current values and
234 * hiding the overlay. 235 * hiding the overlay.
235 * @param {string} id The display's unique identifier. 236 * @param {string} id The display's unique identifier.
236 * @see https://developer.chrome.com/extensions/system.display#method-overscanCa librationComplete 237 * @see https://developer.chrome.com/extensions/system.display#method-overscanCa librationComplete
237 */ 238 */
238 chrome.system.display.overscanCalibrationComplete = function(id) {}; 239 chrome.system.display.overscanCalibrationComplete = function(id) {};
239 240
240 /** 241 /**
241 * Starts native touch calibration for a display. This will show an overlay on 242 * Displays the native touch calibration UX for the display with |id| as display
242 * the screen and initialize the UX for touch calibration. If another native 243 * id. This will show an overlay on the screen with required instructions on how
243 * touch calibration is already in progress this will throw an error. 244 * to proceed. The callback will be invoked in case of successful calibraion
245 * only. If the calibration fails, this will throw an error.
244 * @param {string} id The display's unique identifier. 246 * @param {string} id The display's unique identifier.
247 * @param {function(boolean):void=} callback Optional callback to inform the
248 * caller that the touch calibration has ended. The argument of the
xiyuan 2017/04/05 21:41:45 nit: The space between "touch" and "calibration" h
stevenjb 2017/04/06 01:56:09 This is generated.
249 * callback informs if the calibration was a success or not.
245 * @see https://developer.chrome.com/extensions/system.display#method-showNative TouchCalibration 250 * @see https://developer.chrome.com/extensions/system.display#method-showNative TouchCalibration
246 */ 251 */
247 chrome.system.display.showNativeTouchCalibration = function(id) {}; 252 chrome.system.display.showNativeTouchCalibration = function(id, callback) {};
248 253
249 /** 254 /**
250 * Starts custom touch calibration for a display. This should be called when 255 * Starts custom touch calibration for a display. This should be called when
251 * using a custom UX for collecting calibration data. If another touch 256 * using a custom UX for collecting calibration data. If another touch
252 * calibration is already in progress this will throw an error. 257 * calibration is already in progress this will throw an error.
253 * @param {string} id The display's unique identifier. 258 * @param {string} id The display's unique identifier.
254 * @see https://developer.chrome.com/extensions/system.display#method-startCusto mTouchCalibration 259 * @see https://developer.chrome.com/extensions/system.display#method-startCusto mTouchCalibration
255 */ 260 */
256 chrome.system.display.startCustomTouchCalibration = function(id) {}; 261 chrome.system.display.startCustomTouchCalibration = function(id) {};
257 262
258 /** 263 /**
259 * Sets the touch calibration pairs for a display. These |pairs| would be used 264 * Sets the touch calibration pairs for a display. These |pairs| would be used
260 * to calibrate the touch screen for display with |id| called in 265 * to calibrate the touch screen for display with |id| called in
261 * startCustomTouchCalibration(). Always call |startCustomTouchCalibration| 266 * startCustomTouchCalibration(). Always call |startCustomTouchCalibration|
262 * before calling this method. If another touch calibration is already in 267 * before calling this method. If another touch calibration is already in
263 * progress this will throw an error. 268 * progress this will throw an error.
264 * @param {!chrome.system.display.TouchCalibrationPairQuad} pairs The pairs of 269 * @param {!chrome.system.display.TouchCalibrationPairQuad} pairs The pairs of
265 * point used to calibrate the display. 270 * point used to calibrate the display.
266 * @param {!chrome.system.display.Bounds} bounds Bounds of the display when the 271 * @param {!chrome.system.display.Bounds} bounds Bounds of the display when the
267 * touch calibration was performed. |bounds.left| and |bounds.top| 272 * touch calibration was performed. |bounds.left| and |bounds.top|
xiyuan 2017/04/05 21:41:45 nit: remove extra spaces ?
stevenjb 2017/04/06 01:56:09 ditto.
268 * values are ignored. 273 * values are ignored.
269 * @see https://developer.chrome.com/extensions/system.display#method-completeCu stomTouchCalibration 274 * @see https://developer.chrome.com/extensions/system.display#method-completeCu stomTouchCalibration
270 */ 275 */
271 chrome.system.display.completeCustomTouchCalibration = function(pairs, bounds) { }; 276 chrome.system.display.completeCustomTouchCalibration = function(pairs, bounds) { };
272 277
273 /** 278 /**
274 * Resets the touch calibration for the display and removes the saved 279 * Resets the touch calibration for the display and brings it back to its
275 * calibration data. 280 * default state by clearing any touch calibration data associated with the
281 * display.
276 * @param {string} id The display's unique identifier. 282 * @param {string} id The display's unique identifier.
277 * @see https://developer.chrome.com/extensions/system.display#method-clearTouch Calibration 283 * @see https://developer.chrome.com/extensions/system.display#method-clearTouch Calibration
278 */ 284 */
279 chrome.system.display.clearTouchCalibration = function(id) {}; 285 chrome.system.display.clearTouchCalibration = function(id) {};
280 286
281 /** 287 /**
282 * Fired when anything changes to the display configuration. 288 * Fired when anything changes to the display configuration.
283 * @type {!ChromeEvent} 289 * @type {!ChromeEvent}
284 * @see https://developer.chrome.com/extensions/system.display#event-onDisplayCh anged 290 * @see https://developer.chrome.com/extensions/system.display#event-onDisplayCh anged
285 */ 291 */
286 chrome.system.display.onDisplayChanged; 292 chrome.system.display.onDisplayChanged;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698