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

Side by Side Diff: services/ui/public/interfaces/window_manager_constants.mojom

Issue 2461513002: Primary display change notifications. (Closed)
Patch Set: More fixes. Created 4 years, 1 month 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/public/interfaces/display_manager.mojom ('k') | services/ui/service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 ui.mojom; 5 module ui.mojom;
6 6
7 import "services/ui/public/interfaces/display/display.mojom"; 7 import "services/ui/public/interfaces/display/display.mojom";
8 import "ui/gfx/geometry/mojo/geometry.mojom"; 8 import "ui/gfx/geometry/mojo/geometry.mojom";
9 9
10 enum WindowManagerErrorCode { 10 enum WindowManagerErrorCode {
(...skipping 23 matching lines...) Expand all
34 gfx.mojom.Insets normal_client_area_insets; 34 gfx.mojom.Insets normal_client_area_insets;
35 gfx.mojom.Insets maximized_client_area_insets; 35 gfx.mojom.Insets maximized_client_area_insets;
36 // Max width needed to display the buttons on the title bar. The buttons are 36 // Max width needed to display the buttons on the title bar. The buttons are
37 // aligned to the trailing edge of the titlebar. 37 // aligned to the trailing edge of the titlebar.
38 // TODO(sky): this API is very narrow, and assumes a particular config. 38 // TODO(sky): this API is very narrow, and assumes a particular config.
39 uint32 max_title_bar_button_width; 39 uint32 max_title_bar_button_width;
40 }; 40 };
41 41
42 struct WsDisplay { 42 struct WsDisplay {
43 display.mojom.Display display; 43 display.mojom.Display display;
44 bool is_primary;
45 FrameDecorationValues frame_decoration_values; 44 FrameDecorationValues frame_decoration_values;
46 }; 45 };
47 46
48 // Whether a client initiated move loop was started with a mouse event or a 47 // Whether a client initiated move loop was started with a mouse event or a
49 // touch event. 48 // touch event.
50 enum MoveLoopSource { 49 enum MoveLoopSource {
51 MOUSE, 50 MOUSE,
52 TOUCH 51 TOUCH
53 }; 52 };
54 53
55 enum WindowType { 54 enum WindowType {
56 // These constants come from Widget::InitParams. See it for details. 55 // These constants come from Widget::InitParams. See it for details.
57 // TODO: see if we can reduce this set. For example, why do we need both 56 // TODO: see if we can reduce this set. For example, why do we need both
58 // BUBBLE and POPUP. 57 // BUBBLE and POPUP.
59 WINDOW, 58 WINDOW,
60 PANEL, 59 PANEL,
61 WINDOW_FRAMELESS, 60 WINDOW_FRAMELESS,
62 CONTROL, 61 CONTROL,
63 POPUP, 62 POPUP,
64 MENU, 63 MENU,
65 TOOLTIP, 64 TOOLTIP,
66 BUBBLE, 65 BUBBLE,
67 DRAG, 66 DRAG,
68 }; 67 };
OLDNEW
« no previous file with comments | « services/ui/public/interfaces/display_manager.mojom ('k') | services/ui/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698