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

Unified Diff: services/ui/public/interfaces/display/display_controller.mojom

Issue 2415163002: Expand and split DisplayController mojom. (Closed)
Patch Set: Created 4 years, 2 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 | « services/ui/display/platform_screen_ozone.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index b9ae186dca3708d4c6225153a71e8f28155f42a4..1e2bd91c18aaf2d1e0026feeaa339f3bd42ecf48 100644
--- a/services/ui/public/interfaces/display/display_controller.mojom
+++ b/services/ui/public/interfaces/display/display_controller.mojom
@@ -4,13 +4,25 @@
module display.mojom;
+import "ui/gfx/geometry/mojo/geometry.mojom";
+
// An interface for 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
+
+ // Toggles adding or removing a fake 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();
+ ToggleAddRemoveDisplay();
sky 2016/10/13 18:11:23 This is more of a testing api where as the other t
kylechar 2016/10/14 15:41:32 Yes, it's definitely more of a testing API. If I m
+
+ // Swap the primary display and the next display.
+ SwapPrimaryDisplay();
+
+ // Sets the display work area with the provided insets. The display size is
+ // included to ensure that the insets are for the current display size.
+ SetDisplayWorkArea(int64 display_id,
+ gfx.mojom.Size size,
+ gfx.mojom.Insets insets);
// TODO(kylechar): This interface will need to be expanded to provide
// additional functionality for the display settings page and other ash
« no previous file with comments | « services/ui/display/platform_screen_ozone.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698