Chromium Code Reviews| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 122 | 122 |
| 123 // True if this is the primary display. | 123 // True if this is the primary display. |
| 124 boolean isPrimary; | 124 boolean isPrimary; |
| 125 | 125 |
| 126 // True if this is an internal display. | 126 // True if this is an internal display. |
| 127 boolean isInternal; | 127 boolean isInternal; |
| 128 | 128 |
| 129 // True if this display is enabled. | 129 // True if this display is enabled. |
| 130 boolean isEnabled; | 130 boolean isEnabled; |
| 131 | 131 |
| 132 // True if this display is in unified desktop mode. | |
|
Devlin
2017/04/06 00:03:26
Is it common knowledge what this is?
stevenjb
2017/04/06 01:56:09
None of this API is "common knowledge" :P Expanded
| |
| 133 boolean isUnified; | |
| 134 | |
| 132 // The number of pixels per inch along the x-axis. | 135 // The number of pixels per inch along the x-axis. |
| 133 double dpiX; | 136 double dpiX; |
| 134 | 137 |
| 135 // The number of pixels per inch along the y-axis. | 138 // The number of pixels per inch along the y-axis. |
| 136 double dpiY; | 139 double dpiY; |
| 137 | 140 |
| 138 // The display's clockwise rotation in degrees relative to the vertical | 141 // The display's clockwise rotation in degrees relative to the vertical |
| 139 // position. | 142 // position. |
| 140 // Currently exposed only on ChromeOS. Will be set to 0 on other platforms. | 143 // Currently exposed only on ChromeOS. Will be set to 0 on other platforms. |
| 141 long rotation; | 144 long rotation; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 311 // display. | 314 // display. |
| 312 // |id|: The display's unique identifier. | 315 // |id|: The display's unique identifier. |
| 313 static void clearTouchCalibration(DOMString id); | 316 static void clearTouchCalibration(DOMString id); |
| 314 }; | 317 }; |
| 315 | 318 |
| 316 interface Events { | 319 interface Events { |
| 317 // Fired when anything changes to the display configuration. | 320 // Fired when anything changes to the display configuration. |
| 318 static void onDisplayChanged(); | 321 static void onDisplayChanged(); |
| 319 }; | 322 }; |
| 320 }; | 323 }; |
| OLD | NEW |