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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « services/ui/display/platform_screen_ozone.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module display.mojom; 5 module display.mojom;
6 6
7 import "ui/gfx/geometry/mojo/geometry.mojom";
8
7 // An interface for clients that are allowed to make changes to the display 9 // An interface for clients that are allowed to make changes to the display
8 // state. 10 // state.
9 interface DisplayController { 11 interface DisplayController {
10 // Toggles adding or removing a virtual display. If there is only one display 12
13 // Toggles adding or removing a fake display. If there is only one display
11 // a second display is added. If there is more than one display then the last 14 // a second display is added. If there is more than one display then the last
12 // display is removed. 15 // display is removed.
13 ToggleVirtualDisplay(); 16 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
17
18 // Swap the primary display and the next display.
19 SwapPrimaryDisplay();
20
21 // Sets the display work area with the provided insets. The display size is
22 // included to ensure that the insets are for the current display size.
23 SetDisplayWorkArea(int64 display_id,
24 gfx.mojom.Size size,
25 gfx.mojom.Insets insets);
14 26
15 // TODO(kylechar): This interface will need to be expanded to provide 27 // TODO(kylechar): This interface will need to be expanded to provide
16 // additional functionality for the display settings page and other ash 28 // additional functionality for the display settings page and other ash
17 // keyboard accelerators. 29 // keyboard accelerators.
18 }; 30 };
OLDNEW
« 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