| 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. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // Rotate the current display by 90° CW. The current display is the display | 24 // Rotate the current display by 90° CW. The current display is the display |
| 25 // closest to the mouse cursor. | 25 // closest to the mouse cursor. |
| 26 RotateCurrentDisplayCW(); | 26 RotateCurrentDisplayCW(); |
| 27 | 27 |
| 28 // Swap the primary display and the next display. | 28 // Swap the primary display and the next display. |
| 29 SwapPrimaryDisplay(); | 29 SwapPrimaryDisplay(); |
| 30 | 30 |
| 31 // Toggles between mirroring and extended mode. | 31 // Toggles between mirroring and extended mode. |
| 32 ToggleMirrorMode(); | 32 ToggleMirrorMode(); |
| 33 | 33 |
| 34 // ============================ Virtual Terminal ============================ |
| 35 |
| 36 // Take control of all display output. This is called when switching from the |
| 37 // virtual terminal back to Chrome in response to a dbus message. |
| 38 TakeDisplayControl() => (bool status); |
| 39 |
| 40 // Relinquish control of all display output. This is called when switching |
| 41 // from Chrome to the virtual terminal in response to a dbus message. |
| 42 RelinquishDisplayControl() => (bool status); |
| 43 |
| 34 // ========================= Configuration Changes ========================== | 44 // ========================= Configuration Changes ========================== |
| 35 | 45 |
| 36 // Sets the display work area with the provided insets. The display size is | 46 // Sets the display work area with the provided insets. The display size is |
| 37 // included to ensure that the insets are for the current display size. | 47 // included to ensure that the insets are for the current display size. |
| 38 SetDisplayWorkArea(int64 display_id, | 48 SetDisplayWorkArea(int64 display_id, |
| 39 gfx.mojom.Size size, | 49 gfx.mojom.Size size, |
| 40 gfx.mojom.Insets insets); | 50 gfx.mojom.Insets insets); |
| 41 | 51 |
| 42 // TODO(kylechar): This interface will need to be expanded to provide | 52 // TODO(kylechar): This interface will need to be expanded to provide |
| 43 // additional functionality for the display settings page and other ash | 53 // additional functionality for the display settings page and other ash |
| 44 // keyboard accelerators. | 54 // keyboard accelerators. |
| 45 }; | 55 }; |
| OLD | NEW |