| 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 | 7 | 
| 8 // This was modified to replace System.display with SystemDisplay. | 8 // This was modified to replace System.display with SystemDisplay. | 
| 9 | 9 | 
| 10 /** @fileoverview Interface for system.display that can be overriden. */ | 10 /** @fileoverview Interface for system.display that can be overriden. */ | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
| 32    *     about display properties that should be changed.     A property will be | 32    *     about display properties that should be changed.     A property will be | 
| 33    *     changed only if a new value for it is specified in     |info|. | 33    *     changed only if a new value for it is specified in     |info|. | 
| 34    * @param {function():void=} callback Empty function called when the function | 34    * @param {function():void=} callback Empty function called when the function | 
| 35    *     finishes. To find out     whether the function succeeded, | 35    *     finishes. To find out     whether the function succeeded, | 
| 36    *     $(ref:runtime.lastError) should be     queried. | 36    *     $(ref:runtime.lastError) should be     queried. | 
| 37    * @see https://developer.chrome.com/extensions/system.display#method-setDispl
     ayProperties | 37    * @see https://developer.chrome.com/extensions/system.display#method-setDispl
     ayProperties | 
| 38    */ | 38    */ | 
| 39   setDisplayProperties: assertNotReached, | 39   setDisplayProperties: assertNotReached, | 
| 40 | 40 | 
| 41   /** | 41   /** | 
|  | 42    * Set the layout for all displays. Any display not included will use the | 
|  | 43    * default layout. If a layout would overlap or be otherwise invalid it will | 
|  | 44    * be adjusted to a valid layout. After layout is resolved, an | 
|  | 45    * onDisplayChanged event will be triggered. | 
|  | 46    * @param {!Array<!chrome.system.display.DisplayLayout>} layouts | 
|  | 47    * @see https://developer.chrome.com/extensions/system.display#method-setDispl
     ayLayout | 
|  | 48    */ | 
|  | 49   setDisplayLayout: assertNotReached, | 
|  | 50 | 
|  | 51   /** | 
| 42    * Enables/disables the unified desktop feature. Note that this simply enables | 52    * Enables/disables the unified desktop feature. Note that this simply enables | 
| 43    * the feature, but will not change the actual desktop mode. (That is, if the | 53    * the feature, but will not change the actual desktop mode. (That is, if the | 
| 44    * desktop is in mirror mode, it will stay in mirror mode) NOTE: This is only | 54    * desktop is in mirror mode, it will stay in mirror mode) NOTE: This is only | 
| 45    * available to Chrome OS Kiosk apps and Web UI. | 55    * available to Chrome OS Kiosk apps and Web UI. | 
| 46    * @param {boolean} enabled True if unified desktop should be enabled. | 56    * @param {boolean} enabled True if unified desktop should be enabled. | 
| 47    * @see https://developer.chrome.com/extensions/system.display#method-enableUn
     ifiedDesktop | 57    * @see https://developer.chrome.com/extensions/system.display#method-enableUn
     ifiedDesktop | 
| 48    */ | 58    */ | 
| 49   enableUnifiedDesktop: assertNotReached, | 59   enableUnifiedDesktop: assertNotReached, | 
| 50 | 60 | 
| 51   /** | 61   /** | 
| 52    * Starts overscan calibration for a display. This will show an overlay on the | 62    * Starts overscan calibration for a display. This will show an overlay on the | 
| 53    * screen indicating the current overscan insets. | 63    * screen indicating the current overscan insets. If overscan calibration for | 
|  | 64    * display |id| is in progress this will reset calibration. | 
| 54    * @param {string} id The display's unique identifier. | 65    * @param {string} id The display's unique identifier. | 
| 55    * @see https://developer.chrome.com/extensions/system.display#method-overscan
     CalibrationStart | 66    * @see https://developer.chrome.com/extensions/system.display#method-overscan
     CalibrationStart | 
| 56    */ | 67    */ | 
| 57   overscanCalibrationStart: assertNotReached, | 68   overscanCalibrationStart: assertNotReached, | 
| 58 | 69 | 
| 59   /** | 70   /** | 
| 60    * Adjusts the current overscan insets for a display. Typically this should | 71    * Adjusts the current overscan insets for a display. Typically this should | 
| 61    * etiher move the display along an axis (e.g. left+right have the same value) | 72    * etiher move the display along an axis (e.g. left+right have the same value) | 
| 62    * or scale it along an axis (e.g. top+bottom have opposite values). Each | 73    * or scale it along an axis (e.g. top+bottom have opposite values). Each | 
| 63    * Adjust call is cumulative with previous calls since Start. | 74    * Adjust call is cumulative with previous calls since Start. | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
| 84    */ | 95    */ | 
| 85   overscanCalibrationComplete: assertNotReached, | 96   overscanCalibrationComplete: assertNotReached, | 
| 86 }; | 97 }; | 
| 87 | 98 | 
| 88 /** | 99 /** | 
| 89  * Fired when anything changes to the display configuration. | 100  * Fired when anything changes to the display configuration. | 
| 90  * @type {!ChromeEvent} | 101  * @type {!ChromeEvent} | 
| 91  * @see https://developer.chrome.com/extensions/system.display#event-onDisplayCh
     anged | 102  * @see https://developer.chrome.com/extensions/system.display#event-onDisplayCh
     anged | 
| 92  */ | 103  */ | 
| 93 SystemDisplay.prototype.onDisplayChanged; | 104 SystemDisplay.prototype.onDisplayChanged; | 
| OLD | NEW | 
|---|