| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // File-level comment to appease parser. Eventually this will not be necessary. |
| 6 namespace experimental.systemInfo.display { |
| 7 |
| 8 dictionary DisplayUnitInfo { |
| 9 // The unique identifier of the display device. |
| 10 DOMString id; |
| 11 // The ordinal index for each display device. |
| 12 long index; |
| 13 // True if the display is the primary one. |
| 14 boolean isPrimary; |
| 15 // The y-coordinate of the upper-left corner of the work area on the |
| 16 // display's screen. |
| 17 long availTop; |
| 18 // The x-coordinate of the upper-left corner of the work area on the |
| 19 // display's screen. |
| 20 long availLeft; |
| 21 // The height of the work area on the display's screen in pixels. |
| 22 long availHeight; |
| 23 // The width of the work area on the display's screen in pixels. |
| 24 long availWidth; |
| 25 // The color depth of the display's screen. |
| 26 long colorDepth; |
| 27 // The pixel depth of the display's screen. |
| 28 long pixelDepth; |
| 29 // The height of the display's screen in pixels. |
| 30 long height; |
| 31 // The width of the display's screen in pixels. |
| 32 long width; |
| 33 // The absolute offset of the upper-left corner of the display's screen in |
| 34 // the virtual-screen coordinate. |
| 35 long absoluteTopOffset; |
| 36 // The absolute offset of the upper-left corner of the display's screen in |
| 37 // the virtual-screen coodinate. |
| 38 long absoluteLeftOffset; |
| 39 // The number of pixel per logic inch along the display's screen width. |
| 40 long dpiX; |
| 41 // The number of pixel per logic inch along the display's screen height. |
| 42 long dpiY; |
| 43 }; |
| 44 |
| 45 callback DisplayInfoCallback = void (DisplayUnitInfo[] info); |
| 46 |
| 47 interface Functions { |
| 48 // Get all display information on the system. The argument passed to the |
| 49 // callback is an array of DisplayUnitInfo objects. |
| 50 static void get(DisplayInfoCallback callback); |
| 51 }; |
| 52 }; |
| OLD | NEW |