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

Unified Diff: third_party/closure_compiler/externs/system_display.js

Issue 2002773002: Add overscanCalibration methods to system_display.idl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix non-chromeos + tests Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/closure_compiler/externs/system_display.js
diff --git a/third_party/closure_compiler/externs/system_display.js b/third_party/closure_compiler/externs/system_display.js
index 60a492aa64069fc5787dac28f8795061e7d9399b..82f8db80cd58ae571bb0bb60e2e25beaa1d21cc3 100644
--- a/third_party/closure_compiler/externs/system_display.js
+++ b/third_party/closure_compiler/externs/system_display.js
@@ -126,6 +126,42 @@ chrome.system.display.setDisplayProperties = function(id, info, callback) {};
chrome.system.display.enableUnifiedDesktop = function(enabled) {};
/**
+ * Starts overscan calibration for a display. This will show an overlay on the
+ * screen indicating the current overscan insets.
+ * @param {string} id The display's unique identifier.
+ * @see https://developer.chrome.com/extensions/system.display#method-overscanCalibrationStart
+ */
+chrome.system.display.overscanCalibrationStart = function(id) {};
+
+/**
+ * Adjusts the current overscan insets for a display. Typically this should
+ * etiher move the display along an axis (e.g. left+right have the same value)
+ * or scale it along an axis (e.g. top+bottom have opposite values). Each Adjust
+ * call is cumulative with previous calls since Start.
+ * @param {string} id The display's unique identifier.
+ * @param {!chrome.system.display.Insets} delta The amount to change the
+ * overscan insets.
+ * @see https://developer.chrome.com/extensions/system.display#method-overscanCalibrationAdjust
+ */
+chrome.system.display.overscanCalibrationAdjust = function(id, delta) {};
+
+/**
+ * Resets the overscan insets for a display to the last saved value (i.e before
+ * Start was called).
+ * @param {string} id The display's unique identifier.
+ * @see https://developer.chrome.com/extensions/system.display#method-overscanCalibrationReset
+ */
+chrome.system.display.overscanCalibrationReset = function(id) {};
+
+/**
+ * Complete overscan adjustments for a display by saving the current values and
+ * hiding the overlay.
+ * @param {string} id The display's unique identifier.
+ * @see https://developer.chrome.com/extensions/system.display#method-overscanCalibrationComplete
+ */
+chrome.system.display.overscanCalibrationComplete = function(id) {};
+
+/**
* Fired when anything changes to the display configuration.
* @type {!ChromeEvent}
* @see https://developer.chrome.com/extensions/system.display#event-onDisplayChanged
« 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