Chromium Code Reviews| Index: chrome/common/extensions/api/system_info_display.idl |
| diff --git a/chrome/common/extensions/api/system_info_display.idl b/chrome/common/extensions/api/system_info_display.idl |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d5c88cb6adc136eef1e651216eeb7fa294b391f6 |
| --- /dev/null |
| +++ b/chrome/common/extensions/api/system_info_display.idl |
| @@ -0,0 +1,48 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +namespace systemInfo.display { |
| + |
| + dictionary Bounds { |
| + // The x-coordinate of the upper-left corner. |
| + long left; |
| + // The y-coordinate of the upper-left corner. |
| + long top; |
| + // The width of the display in pixels. |
| + long width; |
| + // The height of the display in pixels. |
| + long height; |
| + }; |
| + |
| + dictionary DisplayUnitInfo { |
| + // The unique identifier of the display. |
| + DOMString id; |
| + // The user-friendly name (e.g. "HP LCD monitor"). |
| + DOMString name; |
| + // True if this is the primary display. |
| + boolean isPrimary; |
| + // True if this is an internal display. |
| + boolean isInternal; |
| + // True if this display is enabled. |
| + boolean isEnabled; |
| + // The number of pixels per inch along the x-axis. |
| + double dpiX; |
| + // The number of pixels per inch along the y-axis. |
| + double dpiY; |
| + // The bounds of the display. |
| + 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.
|
| + }; |
| + |
| + callback DisplayInfoCallback = void (DisplayUnitInfo[] displayInfo); |
| + |
| + interface Functions { |
| + // Get the information of all attached display devices. |
| + static void getDisplayInfo(DisplayInfoCallback callback); |
| + }; |
| + |
| + interface Events { |
| + // Fired when anything changes to the display configuration. |
| + static void onDisplayChanged(); |
| + }; |
| +}; |