Chromium Code Reviews| 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 // Increase zoom on internal display. | |
| 16 InternalDisplayIncreaseZoom(); | |
|
James Cook
2016/12/01 18:59:47
IncreaseInternalDisplayZoom to start with verb?
kylechar
2016/12/01 19:02:12
Done.
| |
| 17 | |
| 18 // Decrease zoom on internal display. | |
| 19 InternalDisplayDecreaseZoom(); | |
| 20 | |
| 21 // Reset zoom on internal display to default level. | |
| 22 InternalDisplayResetZoom(); | |
| 23 | |
| 24 // Rotate the current display by 90° CW. The current display is the display | |
| 25 // closest to the mouse cursor. | |
| 26 RotateCurrentDisplayCW(); | |
| 27 | |
| 13 // Swap the primary display and the next display. | 28 // Swap the primary display and the next display. |
| 14 SwapPrimaryDisplay(); | 29 SwapPrimaryDisplay(); |
| 15 | 30 |
| 31 // Toggles between mirroring and extended mode. | |
| 32 ToggleMirrorMode(); | |
| 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 |