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/mojo/geometry/geometry.mojom"; | 7 import "ui/mojo/geometry/geometry.mojom"; |
8 | 8 |
9 enum WindowManagerErrorCode { | 9 enum WindowManagerErrorCode { |
10 SUCCESS, | 10 SUCCESS, |
(...skipping 13 matching lines...) Expand all Loading... |
24 VALUE_90, | 24 VALUE_90, |
25 VALUE_180, | 25 VALUE_180, |
26 VALUE_270, | 26 VALUE_270, |
27 }; | 27 }; |
28 | 28 |
29 const int32 kResizeBehaviorNone = 0; | 29 const int32 kResizeBehaviorNone = 0; |
30 const int32 kResizeBehaviorCanResize = 1; | 30 const int32 kResizeBehaviorCanResize = 1; |
31 const int32 kResizeBehaviorCanMaximize = 2; | 31 const int32 kResizeBehaviorCanMaximize = 2; |
32 const int32 kResizeBehaviorCanMinimize = 4; | 32 const int32 kResizeBehaviorCanMinimize = 4; |
33 | 33 |
| 34 enum TouchSupport { |
| 35 UNKNOWN, |
| 36 AVAILABLE, |
| 37 UNAVAILABLE, |
| 38 }; |
| 39 |
| 40 // TODO(sky): move this to display.mojom |
34 struct Display { | 41 struct Display { |
35 int64 id; | 42 int64 id; |
36 mojo.Rect bounds; | 43 mojo.Rect bounds; |
37 mojo.Rect work_area; | 44 mojo.Rect work_area; |
38 float device_pixel_ratio; | 45 float device_pixel_ratio; |
39 Rotation rotation; | 46 Rotation rotation; |
| 47 TouchSupport touch_support; |
| 48 bool is_primary; |
40 }; | 49 }; |
41 | 50 |
42 enum WindowType { | 51 enum WindowType { |
43 // These constants come from Widget::InitParams. See it for details. | 52 // These constants come from Widget::InitParams. See it for details. |
44 // TODO: see if we can reduce this set. For example, why do we need both | 53 // TODO: see if we can reduce this set. For example, why do we need both |
45 // BUBBLE and POPUP. | 54 // BUBBLE and POPUP. |
46 WINDOW, | 55 WINDOW, |
47 PANEL, | 56 PANEL, |
48 WINDOW_FRAMELESS, | 57 WINDOW_FRAMELESS, |
49 CONTROL, | 58 CONTROL, |
50 POPUP, | 59 POPUP, |
51 MENU, | 60 MENU, |
52 TOOLTIP, | 61 TOOLTIP, |
53 BUBBLE, | 62 BUBBLE, |
54 DRAG, | 63 DRAG, |
55 }; | 64 }; |
OLD | NEW |