Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
|
oshima
2013/01/25 17:28:41
2013
hshi1
2013/01/25 18:42:29
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 namespace systemInfo.display { | |
| 6 | |
| 7 dictionary Bounds { | |
| 8 // The x-coordinate of the upper-left corner. | |
| 9 long left; | |
| 10 // The y-coordinate of the upper-left corner. | |
| 11 long top; | |
| 12 // The width of the display in pixels. | |
| 13 long width; | |
| 14 // The height of the display in pixels. | |
| 15 long height; | |
| 16 }; | |
| 17 | |
| 18 dictionary DisplayUnitInfo { | |
| 19 // The unique identifier of the display. | |
| 20 DOMString id; | |
| 21 // The user-friendly name (e.g. "HP LCD monitor"). | |
| 22 DOMString name; | |
| 23 // True if this is the primary display. | |
| 24 boolean isPrimary; | |
| 25 // True if this is an internal display. | |
| 26 boolean isInternal; | |
| 27 // True if this display is enabled. | |
| 28 boolean isEnabled; | |
| 29 // The number of pixels per inch along the x-axis. | |
| 30 double dpiX; | |
| 31 // The number of pixels per inch along the y-axis. | |
| 32 double dpiY; | |
| 33 // The bounds of the display. | |
| 34 Bounds bounds; | |
|
oshima
2013/01/25 17:28:41
Don't you need work area bounds as well?
hshi1
2013/01/25 18:42:29
Done.
| |
| 35 }; | |
| 36 | |
| 37 callback DisplayInfoCallback = void (DisplayUnitInfo[] displayInfo); | |
| 38 | |
| 39 interface Functions { | |
| 40 // Get the information of all attached display devices. | |
| 41 static void getDisplayInfo(DisplayInfoCallback callback); | |
| 42 }; | |
| 43 | |
| 44 interface Events { | |
| 45 // Fired when anything changes to the display configuration. | |
| 46 static void onDisplayChanged(); | |
| 47 }; | |
| 48 }; | |
| OLD | NEW |