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 mus.mojom; | 5 module mus.mojom; |
6 | 6 |
7 import "ui/gfx/geometry/mojo/geometry.mojom"; | 7 import "ui/gfx/geometry/mojo/geometry.mojom"; |
8 | 8 |
9 enum WindowManagerErrorCode { | 9 enum WindowManagerErrorCode { |
10 SUCCESS, | 10 SUCCESS, |
(...skipping 19 matching lines...) Expand all Loading... |
30 VALUE_180, | 30 VALUE_180, |
31 VALUE_270, | 31 VALUE_270, |
32 }; | 32 }; |
33 | 33 |
34 const int32 kResizeBehaviorNone = 0; | 34 const int32 kResizeBehaviorNone = 0; |
35 const int32 kResizeBehaviorCanResize = 1; | 35 const int32 kResizeBehaviorCanResize = 1; |
36 const int32 kResizeBehaviorCanMaximize = 2; | 36 const int32 kResizeBehaviorCanMaximize = 2; |
37 const int32 kResizeBehaviorCanMinimize = 4; | 37 const int32 kResizeBehaviorCanMinimize = 4; |
38 | 38 |
39 struct FrameDecorationValues { | 39 struct FrameDecorationValues { |
40 mojo.Insets normal_client_area_insets; | 40 gfx.mojom.Insets normal_client_area_insets; |
41 mojo.Insets maximized_client_area_insets; | 41 gfx.mojom.Insets maximized_client_area_insets; |
42 // Max width needed to display the buttons on the title bar. The buttons are | 42 // Max width needed to display the buttons on the title bar. The buttons are |
43 // aligned to the trailing edge of the titlebar. | 43 // aligned to the trailing edge of the titlebar. |
44 // TODO(sky): this API is very narrow, and assumes a particular config. | 44 // TODO(sky): this API is very narrow, and assumes a particular config. |
45 uint32 max_title_bar_button_width; | 45 uint32 max_title_bar_button_width; |
46 }; | 46 }; |
47 | 47 |
48 enum TouchSupport { | 48 enum TouchSupport { |
49 UNKNOWN, | 49 UNKNOWN, |
50 AVAILABLE, | 50 AVAILABLE, |
51 UNAVAILABLE, | 51 UNAVAILABLE, |
52 }; | 52 }; |
53 | 53 |
54 struct Display { | 54 struct Display { |
55 int64 id; | 55 int64 id; |
56 mojo.Rect bounds; | 56 gfx.mojom.Rect bounds; |
57 mojo.Rect work_area; | 57 gfx.mojom.Rect work_area; |
58 float device_pixel_ratio; | 58 float device_pixel_ratio; |
59 Rotation rotation; | 59 Rotation rotation; |
60 TouchSupport touch_support; | 60 TouchSupport touch_support; |
61 bool is_primary; | 61 bool is_primary; |
62 FrameDecorationValues frame_decoration_values; | 62 FrameDecorationValues frame_decoration_values; |
63 }; | 63 }; |
64 | 64 |
65 enum WindowType { | 65 enum WindowType { |
66 // These constants come from Widget::InitParams. See it for details. | 66 // These constants come from Widget::InitParams. See it for details. |
67 // TODO: see if we can reduce this set. For example, why do we need both | 67 // TODO: see if we can reduce this set. For example, why do we need both |
68 // BUBBLE and POPUP. | 68 // BUBBLE and POPUP. |
69 WINDOW, | 69 WINDOW, |
70 PANEL, | 70 PANEL, |
71 WINDOW_FRAMELESS, | 71 WINDOW_FRAMELESS, |
72 CONTROL, | 72 CONTROL, |
73 POPUP, | 73 POPUP, |
74 MENU, | 74 MENU, |
75 TOOLTIP, | 75 TOOLTIP, |
76 BUBBLE, | 76 BUBBLE, |
77 DRAG, | 77 DRAG, |
78 }; | 78 }; |
OLD | NEW |