| 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 [use_movable_types=true] 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; |
| 11 | 11 |
| 12 // The y-coordinate of the upper-left corner. | 12 // The y-coordinate of the upper-left corner. |
| 13 long top; | 13 long top; |
| 14 | 14 |
| 15 // The width of the display in pixels. | 15 // The width of the display in pixels. |
| 16 long width; | 16 long width; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // enables the feature, but will not change the actual desktop mode. | 146 // enables the feature, but will not change the actual desktop mode. |
| 147 // (That is, if the desktop is in mirror mode, it will stay in mirror mode) | 147 // (That is, if the desktop is in mirror mode, it will stay in mirror mode) |
| 148 static void enableUnifiedDesktop(boolean enabled); | 148 static void enableUnifiedDesktop(boolean enabled); |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 interface Events { | 151 interface Events { |
| 152 // Fired when anything changes to the display configuration. | 152 // Fired when anything changes to the display configuration. |
| 153 static void onDisplayChanged(); | 153 static void onDisplayChanged(); |
| 154 }; | 154 }; |
| 155 }; | 155 }; |
| OLD | NEW |