OLD | NEW |
---|---|
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"; | 7 import "ui/gfx/geometry/mojo/geometry.mojom"; |
8 | 8 |
9 // 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 |
10 // state. | 10 // state. |
11 interface DisplayController { | 11 interface DisplayController { |
12 | 12 |
13 // =========================== Keyboard Shortcuts =========================== | |
14 | |
15 // Rotate the current display by 90° CW. The current display is the display | |
16 // closest to the mouse cursor. | |
17 RotateCurrentDisplay(); | |
James Cook
2016/12/01 16:38:50
How about calling this RotateCurrentDisplayCW() so
kylechar
2016/12/01 18:43:31
Done.
| |
18 | |
13 // Swap the primary display and the next display. | 19 // Swap the primary display and the next display. |
14 SwapPrimaryDisplay(); | 20 SwapPrimaryDisplay(); |
15 | 21 |
22 // Toggles between mirroring and extended mode. | |
23 ToggleMirrorMode(); | |
24 | |
25 // Increase zoom on internal display. | |
26 ZoomInternalDisplayUp(); | |
James Cook
2016/12/01 16:38:50
As a non-graphics person I'm not sure if ZoomUp me
kylechar
2016/12/01 18:43:31
I agree, up/down doesn't make much sense. Changed.
| |
27 | |
28 // Decrease zoom on internal display. | |
29 ZoomInternalDisplayDown(); | |
30 | |
31 // Reset zoom on internal display to default level. | |
32 ResetInternalDisplayZoom(); | |
33 | |
34 // ========================= Configuration Changes ========================== | |
35 | |
16 // Sets the display work area with the provided insets. The display size is | 36 // Sets the display work area with the provided insets. The display size is |
17 // included to ensure that the insets are for the current display size. | 37 // included to ensure that the insets are for the current display size. |
18 SetDisplayWorkArea(int64 display_id, | 38 SetDisplayWorkArea(int64 display_id, |
19 gfx.mojom.Size size, | 39 gfx.mojom.Size size, |
20 gfx.mojom.Insets insets); | 40 gfx.mojom.Insets insets); |
21 | 41 |
22 // TODO(kylechar): This interface will need to be expanded to provide | 42 // TODO(kylechar): This interface will need to be expanded to provide |
23 // additional functionality for the display settings page and other ash | 43 // additional functionality for the display settings page and other ash |
24 // keyboard accelerators. | 44 // keyboard accelerators. |
25 }; | 45 }; |
OLD | NEW |