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

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

Issue 2415163002: Expand and split DisplayController mojom. (Closed)
Patch Set: Actually fix case statements. 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
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..c4e126d824ea64e82ef841089fe7ccfc44e2d51d 100644
--- a/services/ui/public/interfaces/display/display_controller.mojom
+++ b/services/ui/public/interfaces/display/display_controller.mojom
@@ -4,13 +4,20 @@
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
- // a second display is added. If there is more than one display then the last
- // display is removed.
- ToggleVirtualDisplay();
+
+ // 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/public/interfaces/display/BUILD.gn ('k') | services/ui/public/interfaces/display/test_display_controller.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698