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

Side by Side Diff: third_party/closure_compiler/interfaces/system_display_interface.js

Issue 2802603005: MD Settings: Display: Add unified desktop control and modify api (Closed)
Patch Set: Created 3 years, 8 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 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. */
11 11
12 assertNotReached('Interface file for Closure Compiler should not be executed.'); 12 assertNotReached('Interface file for Closure Compiler should not be executed.');
13 13
14 /** @interface */ 14 /** @interface */
15 function SystemDisplay() {} 15 function SystemDisplay() {}
16 16
17 SystemDisplay.prototype = { 17 SystemDisplay.prototype = {
18 /** 18 /**
19 * Get the information of all attached display devices. 19 * Get the information of all attached display devices.
20 * @param {function(!Array<!chrome.system.display.DisplayUnitInfo>):void} 20 * @param {function(!Array<!chrome.system.display.DisplayUnitInfo>):void}
21 * callback 21 * callback
22 * @see https://developer.chrome.com/extensions/system.display#method-getInfo 22 * @see https://developer.chrome.com/extensions/system.display#method-getInfo
23 */ 23 */
24 getInfo: assertNotReached, 24 getInfo: assertNotReached,
25 25
26 /** 26 /**
27 * Get the layout info for all displays. NOTE: This is only available to
28 * Chrome OS Kiosk apps and Web UI.
29 * @param {function(!Array<!chrome.system.display.DisplayLayout>):void}
30 * callback
31 * @see https://developer.chrome.com/extensions/system.display#method-getDispl ayLayout
32 */
33 getDisplayLayout: assertNotReached,
34
35 /**
27 * Updates the properties for the display specified by |id|, according to the 36 * Updates the properties for the display specified by |id|, according to the
28 * information provided in |info|. On failure, $(ref:runtime.lastError) will 37 * information provided in |info|. On failure, $(ref:runtime.lastError) will
29 * be set. NOTE: This is only available to Chrome OS Kiosk apps and Web UI. 38 * be set. NOTE: This is only available to Chrome OS Kiosk apps and Web UI.
30 * @param {string} id The display's unique identifier. 39 * @param {string} id The display's unique identifier.
31 * @param {!chrome.system.display.DisplayProperties} info The information 40 * @param {!chrome.system.display.DisplayProperties} info The information
32 * about display properties that should be changed. A property will be 41 * about display properties that should be changed. A property will be
33 * changed only if a new value for it is specified in |info|. 42 * changed only if a new value for it is specified in |info|.
34 * @param {function():void=} callback Empty function called when the function 43 * @param {function():void=} callback Empty function called when the function
35 * finishes. To find out whether the function succeeded, 44 * finishes. To find out whether the function succeeded,
36 * $(ref:runtime.lastError) should be queried. 45 * $(ref:runtime.lastError) should be queried.
37 * @see https://developer.chrome.com/extensions/system.display#method-setDispl ayProperties 46 * @see https://developer.chrome.com/extensions/system.display#method-setDispl ayProperties
38 */ 47 */
39 setDisplayProperties: assertNotReached, 48 setDisplayProperties: assertNotReached,
40 49
41 /** 50 /**
42 * Set the layout for all displays. Any display not included will use the 51 * 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 52 * 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 53 * be adjusted to a valid layout. After layout is resolved, an
45 * onDisplayChanged event will be triggered. 54 * onDisplayChanged event will be triggered. NOTE: This is only available to
46 * @param {!Array<!chrome.system.display.DisplayLayout>} layouts 55 * Chrome OS Kiosk apps and Web UI.
56 * @param {!Array<!chrome.system.display.DisplayLayout>} layouts The layout
57 * information, required for all displays except the primary display.
58 * @param {function():void=} callback Empty function called when the function
59 * finishes. To find out whether the function succeeded,
60 * $(ref:runtime.lastError) should be queried.
xiyuan 2017/04/05 21:41:45 nit: fix the extra spaces ?
stevenjb 2017/04/06 01:56:09 ditto
47 * @see https://developer.chrome.com/extensions/system.display#method-setDispl ayLayout 61 * @see https://developer.chrome.com/extensions/system.display#method-setDispl ayLayout
48 */ 62 */
49 setDisplayLayout: assertNotReached, 63 setDisplayLayout: assertNotReached,
50 64
51 /** 65 /**
52 * Enables/disables the unified desktop feature. Note that this simply enables 66 * Enables/disables the unified desktop feature. Note that this simply enables
53 * the feature, but will not change the actual desktop mode. (That is, if the 67 * the feature, but will not change the actual desktop mode. (That is, if the
54 * desktop is in mirror mode, it will stay in mirror mode) NOTE: This is only 68 * desktop is in mirror mode, it will stay in mirror mode) NOTE: This is only
55 * available to Chrome OS Kiosk apps and Web UI. 69 * available to Chrome OS Kiosk apps and Web UI.
56 * @param {boolean} enabled True if unified desktop should be enabled. 70 * @param {boolean} enabled True if unified desktop should be enabled.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 103
90 /** 104 /**
91 * Complete overscan adjustments for a display by saving the current values 105 * Complete overscan adjustments for a display by saving the current values
92 * and hiding the overlay. 106 * and hiding the overlay.
93 * @param {string} id The display's unique identifier. 107 * @param {string} id The display's unique identifier.
94 * @see https://developer.chrome.com/extensions/system.display#method-overscan CalibrationComplete 108 * @see https://developer.chrome.com/extensions/system.display#method-overscan CalibrationComplete
95 */ 109 */
96 overscanCalibrationComplete: assertNotReached, 110 overscanCalibrationComplete: assertNotReached,
97 111
98 /** 112 /**
99 * Starts native touch calibration for a display. This will show an overlay on 113 * Displays the native touch calibration UX for the display with |id| as
100 * the screen and initialize the UX for touch calibration. If another native 114 * display id. This will show an overlay on the screen with required
101 * touch calibration is already in progress this will throw an error. 115 * instructions on how to proceed. The callback will be invoked in case of
116 * successful calibraion only. If the calibration fails, this will throw an
117 * error.
102 * @param {string} id The display's unique identifier. 118 * @param {string} id The display's unique identifier.
119 * @param {function(boolean):void=} callback Optional callback to inform the
120 * caller that the touch calibration has ended. The argument of the
121 * callback informs if the calibration was a success or not.
xiyuan 2017/04/05 21:41:45 nit: fix extra spaces ?
stevenjb 2017/04/06 01:56:09 ditto
103 * @see https://developer.chrome.com/extensions/system.display#method-showNati veTouchCalibration 122 * @see https://developer.chrome.com/extensions/system.display#method-showNati veTouchCalibration
104 */ 123 */
105 showNativeTouchCalibration: assertNotReached, 124 showNativeTouchCalibration: assertNotReached,
106 125
107 /** 126 /**
108 * Starts custom touch calibration for a display. This should be called when 127 * Starts custom touch calibration for a display. This should be called when
109 * using a custom UX for collecting calibration data. If another touch 128 * using a custom UX for collecting calibration data. If another touch
110 * calibration is already in progress this will throw an error. 129 * calibration is already in progress this will throw an error.
111 * @param {string} id The display's unique identifier. 130 * @param {string} id The display's unique identifier.
112 * @see https://developer.chrome.com/extensions/system.display#method-startCus tomTouchCalibration 131 * @see https://developer.chrome.com/extensions/system.display#method-startCus tomTouchCalibration
113 */ 132 */
114 startCustomTouchCalibration: assertNotReached, 133 startCustomTouchCalibration: assertNotReached,
115 134
116 /** 135 /**
117 * Sets the touch calibration pairs for a display. These |pairs| would be used 136 * Sets the touch calibration pairs for a display. These |pairs| would be used
118 * to calibrate the touch screen for display with |id| called in 137 * to calibrate the touch screen for display with |id| called in
119 * startCustomTouchCalibration(). Always call |startCustomTouchCalibration| 138 * startCustomTouchCalibration(). Always call |startCustomTouchCalibration|
120 * before calling this method. If another touch calibration is already in 139 * before calling this method. If another touch calibration is already in
121 * progress this will throw an error. 140 * progress this will throw an error.
122 * @param {!chrome.system.display.TouchCalibrationPairQuad} pairs The pairs of 141 * @param {!chrome.system.display.TouchCalibrationPairQuad} pairs The pairs of
123 * point used to calibrate the display. 142 * point used to calibrate the display.
124 * @param {!chrome.system.display.Bounds} bounds Bounds of the display when 143 * @param {!chrome.system.display.Bounds} bounds Bounds of the display when
125 * the touch calibration was performed. |bounds.left| and |bounds.top| 144 * the touch calibration was performed. |bounds.left| and |bounds.top|
126 * values are ignored. 145 * values are ignored.
127 * @see https://developer.chrome.com/extensions/system.display#method-complete CustomTouchCalibration 146 * @see https://developer.chrome.com/extensions/system.display#method-complete CustomTouchCalibration
128 */ 147 */
129 completeCustomTouchCalibration: assertNotReached, 148 completeCustomTouchCalibration: assertNotReached,
130 149
131 /** 150 /**
132 * Resets the touch calibration for the display and removes the saved 151 * Resets the touch calibration for the display and brings it back to its
133 * calibration data. 152 * default state by clearing any touch calibration data associated with the
153 * display.
134 * @param {string} id The display's unique identifier. 154 * @param {string} id The display's unique identifier.
135 * @see https://developer.chrome.com/extensions/system.display#method-clearTou chCalibration 155 * @see https://developer.chrome.com/extensions/system.display#method-clearTou chCalibration
136 */ 156 */
137 clearTouchCalibration: assertNotReached, 157 clearTouchCalibration: assertNotReached,
138 }; 158 };
139 159
140 /** 160 /**
141 * Fired when anything changes to the display configuration. 161 * Fired when anything changes to the display configuration.
142 * @type {!ChromeEvent} 162 * @type {!ChromeEvent}
143 * @see https://developer.chrome.com/extensions/system.display#event-onDisplayCh anged 163 * @see https://developer.chrome.com/extensions/system.display#event-onDisplayCh anged
144 */ 164 */
145 SystemDisplay.prototype.onDisplayChanged; 165 SystemDisplay.prototype.onDisplayChanged;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698