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 (see documentation | |
| 133 // for <code>enableUnifiedDesktop</code>). | |
|
Devlin
2017/04/06 14:51:43
I think that $(ref:enableUnifiedDesktop) should li
stevenjb
2017/04/06 16:21:12
Done.
| |
| 134 boolean isUnified; | |
| 135 | |
| 132 // The number of pixels per inch along the x-axis. | 136 // The number of pixels per inch along the x-axis. |
| 133 double dpiX; | 137 double dpiX; |
| 134 | 138 |
| 135 // The number of pixels per inch along the y-axis. | 139 // The number of pixels per inch along the y-axis. |
| 136 double dpiY; | 140 double dpiY; |
| 137 | 141 |
| 138 // The display's clockwise rotation in degrees relative to the vertical | 142 // The display's clockwise rotation in degrees relative to the vertical |
| 139 // position. | 143 // position. |
| 140 // Currently exposed only on ChromeOS. Will be set to 0 on other platforms. | 144 // Currently exposed only on ChromeOS. Will be set to 0 on other platforms. |
| 141 long rotation; | 145 long rotation; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 311 // display. | 315 // display. |
| 312 // |id|: The display's unique identifier. | 316 // |id|: The display's unique identifier. |
| 313 static void clearTouchCalibration(DOMString id); | 317 static void clearTouchCalibration(DOMString id); |
| 314 }; | 318 }; |
| 315 | 319 |
| 316 interface Events { | 320 interface Events { |
| 317 // Fired when anything changes to the display configuration. | 321 // Fired when anything changes to the display configuration. |
| 318 static void onDisplayChanged(); | 322 static void onDisplayChanged(); |
| 319 }; | 323 }; |
| 320 }; | 324 }; |
| OLD | NEW |