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

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

Issue 2638903003: Updates touch calibration API and plumbs through the native touch calibration method (Closed)
Patch Set: Update histogram.xml Created 3 years, 11 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 /** 232 /**
233 * Complete overscan adjustments for a display by saving the current values and 233 * Complete overscan adjustments for a display by saving the current values and
234 * hiding the overlay. 234 * hiding the overlay.
235 * @param {string} id The display's unique identifier. 235 * @param {string} id The display's unique identifier.
236 * @see https://developer.chrome.com/extensions/system.display#method-overscanCa librationComplete 236 * @see https://developer.chrome.com/extensions/system.display#method-overscanCa librationComplete
237 */ 237 */
238 chrome.system.display.overscanCalibrationComplete = function(id) {}; 238 chrome.system.display.overscanCalibrationComplete = function(id) {};
239 239
240 /** 240 /**
241 * Starts touch calibration for a display. This will show an overlay on the 241 * Starts native touch calibration for a display. This will show an overlay on
242 * screen and initialize the UX for touch calibration. If touch calibration for 242 * the screen and initialize the UX for touch calibration. If another native
243 * display |id| is in progress this will reset calibration. 243 * touch calibration is already in progress this will throw an error.
244 * @param {string} id The display's unique identifier. 244 * @param {string} id The display's unique identifier.
245 * @see https://developer.chrome.com/extensions/system.display#method-touchCalib rationStart 245 * @see https://developer.chrome.com/extensions/system.display#method-showNative TouchCalibration
246 */ 246 */
247 chrome.system.display.touchCalibrationStart = function(id) {}; 247 chrome.system.display.showNativeTouchCalibration = function(id) {};
248
249 /**
250 * Starts custom touch calibration for a display. This should be called when
251 * using a custom UX for collecting calibration data. If another touch
252 * calibration is already in progress this will throw an error.
253 * @param {string} id The display's unique identifier.
254 * @see https://developer.chrome.com/extensions/system.display#method-startCusto mTouchCalibration
255 */
256 chrome.system.display.startCustomTouchCalibration = function(id) {};
248 257
249 /** 258 /**
250 * Sets the touch calibration pairs for a display. These |pairs| would be used 259 * Sets the touch calibration pairs for a display. These |pairs| would be used
251 * to calibrate the touch screen for display |id|. If touch calibration for 260 * to calibrate the touch screen for display with |id| called in
252 * display |id| is in progress this will do nothing. 261 * startCustomTouchCalibration(). Always call |startCustomTouchCalibration|
253 * @param {string} id The display's unique identifier. 262 * before calling this method. If another touch calibration is already in
263 * progress this will throw an error.
254 * @param {!chrome.system.display.TouchCalibrationPairQuad} pairs The pairs of 264 * @param {!chrome.system.display.TouchCalibrationPairQuad} pairs The pairs of
255 * point used to calibrate the display. 265 * point used to calibrate the display.
256 * @param {!chrome.system.display.Bounds} bounds Bounds of the display when the 266 * @param {!chrome.system.display.Bounds} bounds Bounds of the display when the
257 * touch calibration was performed. |bounds.left| and |bounds.top| 267 * touch calibration was performed. |bounds.left| and |bounds.top|
258 * values are no-op. 268 * values are ignored.
259 * @see https://developer.chrome.com/extensions/system.display#method-touchCalib rationSet 269 * @see https://developer.chrome.com/extensions/system.display#method-completeCu stomTouchCalibration
260 */ 270 */
261 chrome.system.display.touchCalibrationSet = function(id, pairs, bounds) {}; 271 chrome.system.display.completeCustomTouchCalibration = function(pairs, bounds) { };
262 272
263 /** 273 /**
264 * Resets the touch calibration for the display and removes the saved 274 * Resets the touch calibration for the display and removes the saved
265 * calibration data. 275 * calibration data.
266 * @param {string} id The display's unique identifier. 276 * @param {string} id The display's unique identifier.
267 * @see https://developer.chrome.com/extensions/system.display#method-touchCalib rationReset 277 * @see https://developer.chrome.com/extensions/system.display#method-clearTouch Calibration
268 */ 278 */
269 chrome.system.display.touchCalibrationReset = function(id) {}; 279 chrome.system.display.clearTouchCalibration = function(id) {};
270 280
271 /** 281 /**
272 * Fired when anything changes to the display configuration. 282 * Fired when anything changes to the display configuration.
273 * @type {!ChromeEvent} 283 * @type {!ChromeEvent}
274 * @see https://developer.chrome.com/extensions/system.display#event-onDisplayCh anged 284 * @see https://developer.chrome.com/extensions/system.display#event-onDisplayCh anged
275 */ 285 */
276 chrome.system.display.onDisplayChanged; 286 chrome.system.display.onDisplayChanged;
OLDNEW
« no previous file with comments | « extensions/common/api/system_display.idl ('k') | third_party/closure_compiler/interfaces/system_display_interface.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698