| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 // File-level comment to appease parser. Eventually this will not be necessary. | |
| 6 namespace experimental.systemInfo.display { | 5 namespace experimental.systemInfo.display { |
| 7 | 6 |
| 8 dictionary DisplayUnitInfo { | 7 dictionary DisplayUnitInfo { |
| 9 // The unique identifier of the display device. | 8 // The unique identifier of the display device. |
| 10 DOMString id; | 9 DOMString id; |
| 11 // The ordinal index for each display device. | 10 // The ordinal index for each display device. |
| 12 long index; | 11 long index; |
| 13 // True if the display is the primary one. | 12 // True if the display is the primary one. |
| 14 boolean isPrimary; | 13 boolean isPrimary; |
| 15 // The y-coordinate of the upper-left corner of the work area on the | 14 // The y-coordinate of the upper-left corner of the work area on the |
| (...skipping 27 matching lines...) Expand all Loading... |
| 43 }; | 42 }; |
| 44 | 43 |
| 45 callback DisplayInfoCallback = void (DisplayUnitInfo[] info); | 44 callback DisplayInfoCallback = void (DisplayUnitInfo[] info); |
| 46 | 45 |
| 47 interface Functions { | 46 interface Functions { |
| 48 // Get all display information on the system. The argument passed to the | 47 // Get all display information on the system. The argument passed to the |
| 49 // callback is an array of DisplayUnitInfo objects. | 48 // callback is an array of DisplayUnitInfo objects. |
| 50 static void get(DisplayInfoCallback callback); | 49 static void get(DisplayInfoCallback callback); |
| 51 }; | 50 }; |
| 52 }; | 51 }; |
| OLD | NEW |