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

Unified Diff: extensions/common/api/system_display.idl

Issue 2802603005: MD Settings: Display: Add unified desktop control and modify api (Closed)
Patch Set: git cl format Created 3 years, 8 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: extensions/common/api/system_display.idl
diff --git a/extensions/common/api/system_display.idl b/extensions/common/api/system_display.idl
index 6a1a921e8530bba82b5c29e53a09d180d3fd2470..d3a7e5386624de78faa9041a4a73f4ff1606a199 100644
--- a/extensions/common/api/system_display.idl
+++ b/extensions/common/api/system_display.idl
@@ -129,6 +129,10 @@ namespace system.display {
// True if this display is enabled.
boolean isEnabled;
+ // True for all displays when in unified desktop mode. See documentation
+ // for $(ref:enableUnifiedDesktop).
+ boolean isUnified;
+
// The number of pixels per inch along the x-axis.
double dpiX;
@@ -163,6 +167,12 @@ namespace system.display {
};
dictionary DisplayProperties {
+ // Chrome OS only. If set to true, changes the display mode to unifed
+ // desktop (see $(ref:enableUnifiedDesktop) for details). This is only valid
+ // for the primary display. If set, mirroringSourceId must not be set and
+ // other properties may not apply.
+ boolean? isUnified;
+
// Chrome OS only. If set and not empty, enables mirroring for this display.
// Otherwise disables mirroring for this display. This value should indicate
// the id of the source display to mirror, which must not be the same as the
@@ -203,6 +213,13 @@ namespace system.display {
DisplayMode? displayMode;
};
+ dictionary GetInfoFlags {
+ // If set to true, only a single $(ref:DisplayUnitInfo) will be returned
+ // by $(ref:getInfo) when in unified desktop mode (see
+ // $(ref:enableUnifiedDesktop)).
+ boolean? singleUnified;
+ };
+
callback DisplayInfoCallback = void (DisplayUnitInfo[] displayInfo);
callback DisplayLayoutCallback = void (DisplayLayout[] layouts);
callback SetDisplayUnitInfoCallback = void();
@@ -210,11 +227,15 @@ namespace system.display {
callback NativeTouchCalibrationCallback = void(boolean success);
interface Functions {
- // Get the information of all attached display devices.
- static void getInfo(DisplayInfoCallback callback);
+ // Requests the information for all attached display devices.
+ // |flags|: See $(ref:GetInfoFlags).
+ // |callback|: This will be invoked with an array of $(ref:DisplayUnitInfo).
+ static void getInfo(optional GetInfoFlags flags,
+ DisplayInfoCallback callback);
- // Get the layout info for all displays.
+ // Requests the layout info for all displays.
// NOTE: This is only available to Chrome OS Kiosk apps and Web UI.
+ // |callback|: This will be invoked with an array of $(ref:DisplayLayout).
static void getDisplayLayout(DisplayLayoutCallback callback);
// Updates the properties for the display specified by |id|, according to

Powered by Google App Engine
This is Rietveld 408576698