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

Side by Side Diff: services/ui/public/interfaces/display/display_controller.mojom

Issue 2537643008: Add IPCs for ash display shortcuts. (Closed)
Patch Set: Rebase. Created 4 years 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/screen_manager_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"; 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 IncreaseInternalDisplayZoom();
17
18 // Decrease zoom on internal display.
19 DecreaseInternalDisplayZoom();
20
21 // Reset zoom on internal display to default level.
22 ResetInternalDisplayZoom();
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 };
OLDNEW
« no previous file with comments | « services/ui/display/screen_manager_ozone.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698