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

Side by Side Diff: extensions/common/api/system_display.idl

Issue 2002773002: Add overscanCalibration methods to system_display.idl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // Use the <code>system.display</code> API to query display metadata. 5 // Use the <code>system.display</code> API to query display metadata.
6 namespace system.display { 6 namespace system.display {
7 7
8 dictionary Bounds { 8 dictionary Bounds {
9 // The x-coordinate of the upper-left corner. 9 // The x-coordinate of the upper-left corner.
10 long left; 10 long left;
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 DOMString id, 173 DOMString id,
174 DisplayProperties info, 174 DisplayProperties info,
175 optional SetDisplayUnitInfoCallback callback); 175 optional SetDisplayUnitInfoCallback callback);
176 176
177 // Enables/disables the unified desktop feature. Note that this simply 177 // Enables/disables the unified desktop feature. Note that this simply
178 // enables the feature, but will not change the actual desktop mode. 178 // enables the feature, but will not change the actual desktop mode.
179 // (That is, if the desktop is in mirror mode, it will stay in mirror mode) 179 // (That is, if the desktop is in mirror mode, it will stay in mirror mode)
180 // NOTE: This is only available to Chrome OS Kiosk apps and Web UI. 180 // NOTE: This is only available to Chrome OS Kiosk apps and Web UI.
181 // |enabled|: True if unified desktop should be enabled. 181 // |enabled|: True if unified desktop should be enabled.
182 static void enableUnifiedDesktop(boolean enabled); 182 static void enableUnifiedDesktop(boolean enabled);
183
184 // Starts overscan calibration for a display. This will show an overlay
185 // on the screen indicating the current overscan insets. If overscan
186 // calibration for display |id| is in progress this will reset calibration.
187 // |id|: The display's unique identifier.
188 static void overscanCalibrationStart(DOMString id);
189
190 // Adjusts the current overscan insets for a display. Typically this should
191 // etiher move the display along an axis (e.g. left+right have the same
192 // value) or scale it along an axis (e.g. top+bottom have opposite values).
193 // Each Adjust call is cumulative with previous calls since Start.
194 // |id|: The display's unique identifier.
195 // |delta|: The amount to change the overscan insets.
196 static void overscanCalibrationAdjust(DOMString id, Insets delta);
197
198 // Resets the overscan insets for a display to the last saved value (i.e
199 // before Start was called).
200 // |id|: The display's unique identifier.
201 static void overscanCalibrationReset(DOMString id);
202
203 // Complete overscan adjustments for a display by saving the current values
oshima 2016/05/21 01:16:36 nit: extra space between "display" and "by"
204 // and hiding the overlay.
205 // |id|: The display's unique identifier.
206 static void overscanCalibrationComplete(DOMString id);
183 }; 207 };
184 208
185 interface Events { 209 interface Events {
186 // Fired when anything changes to the display configuration. 210 // Fired when anything changes to the display configuration.
187 static void onDisplayChanged(); 211 static void onDisplayChanged();
188 }; 212 };
189 }; 213 };
OLDNEW
« no previous file with comments | « extensions/browser/extension_function_histogram_value.h ('k') | third_party/closure_compiler/externs/system_display.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698