Chromium Code Reviews| Index: extensions/common/api/system_display.idl |
| diff --git a/extensions/common/api/system_display.idl b/extensions/common/api/system_display.idl |
| index 97d2c3c995aba90f22325625febda68dfaf5ba2c..33bcce737b38a6ac8e0c0dc9b57b4ae439f083ce 100644 |
| --- a/extensions/common/api/system_display.idl |
| +++ b/extensions/common/api/system_display.idl |
| @@ -276,27 +276,33 @@ namespace system.display { |
| // |id|: The display's unique identifier. |
| static void overscanCalibrationComplete(DOMString id); |
| - // Starts touch calibration for a display. This will show an overlay on the |
| - // screen and initialize the UX for touch calibration. If touch calibration |
| - // for display |id| is already in progress this will throw an error. |
| + // Starts native touch calibration for a display. This will show an overlay |
| + // on the screen and initialize the UX for touch calibration. If another |
| + // native touch calibration is already in progress this will throw an error. |
| // |id|: The display's unique identifier. |
| - static void touchCalibrationStart(DOMString id); |
| + static void startNativeTouchCalibration(DOMString id); |
|
stevenjb
2017/01/18 21:58:05
If startNativeTouchCalibration doesn't require a c
malaykeshav
2017/01/19 01:30:51
Renamed to showNativeTouchCalibration() and added
|
| - // Sets the touch calibration pairs for a display. These |pairs| would be |
| - // used to calibrate the touch screen for display |id|. If touch calibration |
| - // for display |id| is in progress this will do nothing. |
| + // Starts custom touch calibration for a display. This should be called when |
| + // using a custom UX for collecting calibration data. If another touch |
| + // calibration is already in progress this will throw an error. |
| // |id|: The display's unique identifier. |
| + static void startCustomTouchCalibration(DOMString id); |
|
stevenjb
2017/01/18 21:01:35
I find having multiple 'start' methods confusing.
malaykeshav
2017/01/19 01:30:51
Acknowledged.
|
| + |
| + // Sets the touch calibration pairs for a display. These |pairs| would be |
| + // used to calibrate the touch screen for display with |id| called in |
| + // startCustomTouchCalibration(). Always call |startCustomTouchCalibration| |
| + // before calling this method. If another touch calibration is already in |
| + // progress this will throw an error. |
| // |pairs|: The pairs of point used to calibrate the display. |
| // |bounds|: Bounds of the display when the touch calibration was performed. |
| // |bounds.left| and |bounds.top| values are ignored. |
| - static void touchCalibrationSet(DOMString id, |
| - TouchCalibrationPairQuad pairs, |
| - Bounds bounds); |
| + static void completeCustomTouchCalibration(TouchCalibrationPairQuad pairs, |
| + Bounds bounds); |
| // Resets the touch calibration for the display and removes the saved |
| // calibration data. |
| // |id|: The display's unique identifier. |
| - static void touchCalibrationReset(DOMString id); |
| + static void resetTouchCalibration(DOMString id); |
|
stevenjb
2017/01/18 21:58:05
resetCustomTouchCalibration?
malaykeshav
2017/01/19 01:30:51
This resets any stored touch calibration data and
stevenjb
2017/01/19 17:19:01
Hmm. Unfortunately this is different behavior from
malaykeshav
2017/01/19 23:49:06
Done
|
| }; |
| interface Events { |