OLD | NEW |
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 * finishes. To find out whether the function succeeded, | 142 * finishes. To find out whether the function succeeded, |
143 * $(ref:runtime.lastError) should be queried. | 143 * $(ref:runtime.lastError) should be queried. |
144 * @see https://developer.chrome.com/extensions/system.display#method-setDisplay
Properties | 144 * @see https://developer.chrome.com/extensions/system.display#method-setDisplay
Properties |
145 */ | 145 */ |
146 chrome.system.display.setDisplayProperties = function(id, info, callback) {}; | 146 chrome.system.display.setDisplayProperties = function(id, info, callback) {}; |
147 | 147 |
148 /** | 148 /** |
149 * Set the layout for all displays. Any display not included will use the | 149 * Set the layout for all displays. Any display not included will use the |
150 * default layout. If a layout would overlap or be otherwise invalid it will be | 150 * default layout. If a layout would overlap or be otherwise invalid it will be |
151 * adjusted to a valid layout. After layout is resolved, an onDisplayChanged | 151 * adjusted to a valid layout. After layout is resolved, an onDisplayChanged |
152 * event will be triggered. | 152 * event will be triggered. NOTE: This is only available to Chrome OS Kiosk apps |
153 * @param {!Array<!chrome.system.display.DisplayLayout>} layouts | 153 * and Web UI. |
| 154 * @param {!Array<!chrome.system.display.DisplayLayout>} layouts The layout |
| 155 * information, required for all displays except the primary display. |
| 156 * @param {function():void=} callback Empty function called when the function |
| 157 * finishes. To find out whether the function succeeded, |
| 158 * $(ref:runtime.lastError) should be queried. |
154 * @see https://developer.chrome.com/extensions/system.display#method-setDisplay
Layout | 159 * @see https://developer.chrome.com/extensions/system.display#method-setDisplay
Layout |
155 */ | 160 */ |
156 chrome.system.display.setDisplayLayout = function(layouts) {}; | 161 chrome.system.display.setDisplayLayout = function(layouts, callback) {}; |
157 | 162 |
158 /** | 163 /** |
159 * Enables/disables the unified desktop feature. Note that this simply enables | 164 * Enables/disables the unified desktop feature. Note that this simply enables |
160 * the feature, but will not change the actual desktop mode. (That is, if the | 165 * the feature, but will not change the actual desktop mode. (That is, if the |
161 * desktop is in mirror mode, it will stay in mirror mode) NOTE: This is only | 166 * desktop is in mirror mode, it will stay in mirror mode) NOTE: This is only |
162 * available to Chrome OS Kiosk apps and Web UI. | 167 * available to Chrome OS Kiosk apps and Web UI. |
163 * @param {boolean} enabled True if unified desktop should be enabled. | 168 * @param {boolean} enabled True if unified desktop should be enabled. |
164 * @see https://developer.chrome.com/extensions/system.display#method-enableUnif
iedDesktop | 169 * @see https://developer.chrome.com/extensions/system.display#method-enableUnif
iedDesktop |
165 */ | 170 */ |
166 chrome.system.display.enableUnifiedDesktop = function(enabled) {}; | 171 chrome.system.display.enableUnifiedDesktop = function(enabled) {}; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 * @see https://developer.chrome.com/extensions/system.display#method-overscanCa
librationComplete | 206 * @see https://developer.chrome.com/extensions/system.display#method-overscanCa
librationComplete |
202 */ | 207 */ |
203 chrome.system.display.overscanCalibrationComplete = function(id) {}; | 208 chrome.system.display.overscanCalibrationComplete = function(id) {}; |
204 | 209 |
205 /** | 210 /** |
206 * Fired when anything changes to the display configuration. | 211 * Fired when anything changes to the display configuration. |
207 * @type {!ChromeEvent} | 212 * @type {!ChromeEvent} |
208 * @see https://developer.chrome.com/extensions/system.display#event-onDisplayCh
anged | 213 * @see https://developer.chrome.com/extensions/system.display#event-onDisplayCh
anged |
209 */ | 214 */ |
210 chrome.system.display.onDisplayChanged; | 215 chrome.system.display.onDisplayChanged; |
OLD | NEW |