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

Unified Diff: third_party/chrome/idl/experimental_system_info_display.idl

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
Index: third_party/chrome/idl/experimental_system_info_display.idl
diff --git a/third_party/chrome/idl/experimental_system_info_display.idl b/third_party/chrome/idl/experimental_system_info_display.idl
new file mode 100644
index 0000000000000000000000000000000000000000..4d45bb0bdead3006b46e677b2f5bf63c5fa83e6b
--- /dev/null
+++ b/third_party/chrome/idl/experimental_system_info_display.idl
@@ -0,0 +1,52 @@
+// Copyright (c) 2012 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.
+
+// File-level comment to appease parser. Eventually this will not be necessary.
+namespace experimental.systemInfo.display {
+
+ dictionary DisplayUnitInfo {
+ // The unique identifier of the display device.
+ DOMString id;
+ // The ordinal index for each display device.
+ long index;
+ // True if the display is the primary one.
+ boolean isPrimary;
+ // The y-coordinate of the upper-left corner of the work area on the
+ // display's screen.
+ long availTop;
+ // The x-coordinate of the upper-left corner of the work area on the
+ // display's screen.
+ long availLeft;
+ // The height of the work area on the display's screen in pixels.
+ long availHeight;
+ // The width of the work area on the display's screen in pixels.
+ long availWidth;
+ // The color depth of the display's screen.
+ long colorDepth;
+ // The pixel depth of the display's screen.
+ long pixelDepth;
+ // The height of the display's screen in pixels.
+ long height;
+ // The width of the display's screen in pixels.
+ long width;
+ // The absolute offset of the upper-left corner of the display's screen in
+ // the virtual-screen coordinate.
+ long absoluteTopOffset;
+ // The absolute offset of the upper-left corner of the display's screen in
+ // the virtual-screen coodinate.
+ long absoluteLeftOffset;
+ // The number of pixel per logic inch along the display's screen width.
+ long dpiX;
+ // The number of pixel per logic inch along the display's screen height.
+ long dpiY;
+ };
+
+ callback DisplayInfoCallback = void (DisplayUnitInfo[] info);
+
+ interface Functions {
+ // Get all display information on the system. The argument passed to the
+ // callback is an array of DisplayUnitInfo objects.
+ static void get(DisplayInfoCallback callback);
+ };
+};
« no previous file with comments | « third_party/chrome/idl/experimental_system_info_cpu.idl ('k') | third_party/chrome/idl/experimental_system_info_memory.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698