| 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"; |
| 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 |
| 11 // a second display is added. If there is more than one display then the last | 13 // Swap the primary display and the next display. |
| 12 // display is removed. | 14 SwapPrimaryDisplay(); |
| 13 ToggleVirtualDisplay(); | 15 |
| 16 // 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. |
| 18 SetDisplayWorkArea(int64 display_id, |
| 19 gfx.mojom.Size size, |
| 20 gfx.mojom.Insets insets); |
| 14 | 21 |
| 15 // TODO(kylechar): This interface will need to be expanded to provide | 22 // TODO(kylechar): This interface will need to be expanded to provide |
| 16 // additional functionality for the display settings page and other ash | 23 // additional functionality for the display settings page and other ash |
| 17 // keyboard accelerators. | 24 // keyboard accelerators. |
| 18 }; | 25 }; |
| OLD | NEW |