Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7948)

Unified Diff: chrome/common/extensions/api/system_info_display.idl

Issue 11882009: Multi-monitor extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to 179043. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/extension_manifest_constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e6462371da48cb19560ccbbceccd4672e649cf3e
--- /dev/null
+++ b/chrome/common/extensions/api/system_info_display.idl
@@ -0,0 +1,50 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// 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;
+ // The usable work area of the display.
+ Bounds workArea;
+ };
+
+ 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();
+ };
+};
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/extension_manifest_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698