OLD | NEW |
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 "ui/display/mojo/display.mojom"; | 7 import "ui/display/mojo/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 { |
11 SUCCESS, | 11 SUCCESS, |
12 ACCESS_DENIED | 12 ACCESS_DENIED |
13 }; | 13 }; |
14 | 14 |
15 // TODO(sky): seems like this should not be defined in mus, rather in mash. | 15 // TODO(sky): seems like this should not be defined in mus, rather in mash. |
16 // Only thing mus cares about is minimized and that should be expressed | 16 // Only thing mus cares about is minimized and that should be expressed |
17 // differently. | 17 // differently. |
18 enum ShowState { | 18 enum ShowState { |
19 DEFAULT, | 19 DEFAULT, |
20 NORMAL, | 20 NORMAL, |
21 MINIMIZED, | 21 MINIMIZED, |
22 MAXIMIZED, | 22 MAXIMIZED, |
23 INACTIVE, | 23 INACTIVE, |
24 FULLSCREEN, | 24 FULLSCREEN, |
25 DOCKED, | |
26 }; | 25 }; |
27 | 26 |
28 const int32 kResizeBehaviorNone = 0; | 27 const int32 kResizeBehaviorNone = 0; |
29 const int32 kResizeBehaviorCanResize = 1; | 28 const int32 kResizeBehaviorCanResize = 1; |
30 const int32 kResizeBehaviorCanMaximize = 2; | 29 const int32 kResizeBehaviorCanMaximize = 2; |
31 const int32 kResizeBehaviorCanMinimize = 4; | 30 const int32 kResizeBehaviorCanMinimize = 4; |
32 | 31 |
33 struct FrameDecorationValues { | 32 struct FrameDecorationValues { |
34 gfx.mojom.Insets normal_client_area_insets; | 33 gfx.mojom.Insets normal_client_area_insets; |
35 gfx.mojom.Insets maximized_client_area_insets; | 34 gfx.mojom.Insets maximized_client_area_insets; |
(...skipping 23 matching lines...) Expand all Loading... |
59 PANEL, | 58 PANEL, |
60 WINDOW_FRAMELESS, | 59 WINDOW_FRAMELESS, |
61 CONTROL, | 60 CONTROL, |
62 POPUP, | 61 POPUP, |
63 MENU, | 62 MENU, |
64 TOOLTIP, | 63 TOOLTIP, |
65 BUBBLE, | 64 BUBBLE, |
66 DRAG, | 65 DRAG, |
67 UNKNOWN, | 66 UNKNOWN, |
68 }; | 67 }; |
OLD | NEW |