Index: services/ui/public/interfaces/display/display_controller.mojom |
diff --git a/services/ui/public/interfaces/display/display_controller.mojom b/services/ui/public/interfaces/display/display_controller.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d6b2ce2efa36199fa92e9378bf19126d67754bfb |
--- /dev/null |
+++ b/services/ui/public/interfaces/display/display_controller.mojom |
@@ -0,0 +1,26 @@ |
+// Copyright 2016 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. |
+ |
+module display.mojom; |
+ |
+// An interface for privileged clients that are allowed to make changes to the |
+// display state. |
+interface DisplayController { |
+ // Toggles adding or removing a virtual display. If there is only one display |
+ // a second display is added. If there is more than one display then the last |
+ // display is removed. |
+ ToggleVirtualDisplay() => (bool success); |
+ |
+ // Increase the resolution of the specified display. |
+ IncreaseResolution(int64 display_id); |
+ |
+ // Decreases the resolution of the specified display. |
+ DecreaseResolution(int64 display_id); |
+ |
+ // Resets specified display to default resolution. |
+ UseDefaultResolution(int64 display_id); |
+ |
+ // TODO(kylechar): This interface will need to be expanded to provide |
+ // additional functionality for the display settings page. |
+}; |