| OLD | NEW |
| 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 Loading... |
| 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 |
| 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 }; |
| OLD | NEW |