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

Unified Diff: third_party/closure_compiler/interfaces/system_display_interface.js

Issue 2538623002: Adds touch calibration methods to system_display.idl API (Closed)
Patch Set: Adds touch calibration methods to system.idl API Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/closure_compiler/interfaces/system_display_interface.js
diff --git a/third_party/closure_compiler/interfaces/system_display_interface.js b/third_party/closure_compiler/interfaces/system_display_interface.js
index bc0947d11979a04edb3bd26a956c0f5438861aeb..683e7d829eec528be177cc5e45c76aa67ce5b309 100644
--- a/third_party/closure_compiler/interfaces/system_display_interface.js
+++ b/third_party/closure_compiler/interfaces/system_display_interface.js
@@ -94,6 +94,37 @@ SystemDisplay.prototype = {
* @see https://developer.chrome.com/extensions/system.display#method-overscanCalibrationComplete
*/
overscanCalibrationComplete: assertNotReached,
+
+ /**
+ * 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 in progress this will reset calibration.
+ * @param {string} id The display's unique identifier.
+ * @see https://developer.chrome.com/extensions/system.display#method-touchCalibrationStart
+ */
+ touchCalibrationStart: assertNotReached,
+
+ /**
+ * 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.
+ * @param {string} id The display's unique identifier.
+ * @param {!chrome.system.display.TouchCalibrationPairQuad} pairs The pairs of
+ * point used to calibrate the display.
+ * @param {!chrome.system.display.Bounds} bounds Bounds of the display when
+ * the touch calibration was performed. |bounds.left| and |bounds.top|
+ * values are no-op.
+ * @see https://developer.chrome.com/extensions/system.display#method-touchCalibrationSet
+ */
+ touchCalibrationSet: assertNotReached,
+
+ /**
+ * Resets the touch calibration for the display and removes the saved
+ * calibration data.
+ * @param {string} id The display's unique identifier.
+ * @see https://developer.chrome.com/extensions/system.display#method-touchCalibrationReset
+ */
+ touchCalibrationReset: assertNotReached,
};
/**

Powered by Google App Engine
This is Rietveld 408576698