Chromium Code Reviews| 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 struct FrameDecorationValues { | |
| 35 mojo.Insets normal_client_area_insets; | |
| 36 mojo.Insets maximized_client_area_insets; | |
| 37 // Max width needed to display the buttons on the title bar. The buttons are | |
| 38 // aligned to the trailing edge of the titlebar. | |
| 39 // TODO(sky): this API is very narrow, and assumes a particular config. | |
| 40 uint32 max_title_bar_button_width; | |
| 41 }; | |
| 42 | |
| 34 enum TouchSupport { | 43 enum TouchSupport { |
| 35 UNKNOWN, | 44 UNKNOWN, |
| 36 AVAILABLE, | 45 AVAILABLE, |
| 37 UNAVAILABLE, | 46 UNAVAILABLE, |
| 38 }; | 47 }; |
| 39 | 48 |
| 40 // TODO(sky): move this to display.mojom | |
| 41 struct Display { | 49 struct Display { |
| 42 int64 id; | 50 int64 id; |
| 43 mojo.Rect bounds; | 51 mojo.Rect bounds; |
| 44 mojo.Rect work_area; | 52 mojo.Rect work_area; |
| 45 float device_pixel_ratio; | 53 float device_pixel_ratio; |
| 46 Rotation rotation; | 54 Rotation rotation; |
| 47 TouchSupport touch_support; | 55 TouchSupport touch_support; |
| 48 bool is_primary; | 56 bool is_primary; |
| 57 FrameDecorationValues frame_decoration_values; | |
|
Ben Goodger (Google)
2016/01/26 19:18:03
It does strike me as a little odd that this very U
| |
| 49 }; | 58 }; |
| 50 | 59 |
| 51 enum WindowType { | 60 enum WindowType { |
| 52 // These constants come from Widget::InitParams. See it for details. | 61 // These constants come from Widget::InitParams. See it for details. |
| 53 // TODO: see if we can reduce this set. For example, why do we need both | 62 // TODO: see if we can reduce this set. For example, why do we need both |
| 54 // BUBBLE and POPUP. | 63 // BUBBLE and POPUP. |
| 55 WINDOW, | 64 WINDOW, |
| 56 PANEL, | 65 PANEL, |
| 57 WINDOW_FRAMELESS, | 66 WINDOW_FRAMELESS, |
| 58 CONTROL, | 67 CONTROL, |
| 59 POPUP, | 68 POPUP, |
| 60 MENU, | 69 MENU, |
| 61 TOOLTIP, | 70 TOOLTIP, |
| 62 BUBBLE, | 71 BUBBLE, |
| 63 DRAG, | 72 DRAG, |
| 64 }; | 73 }; |
| OLD | NEW |