Chromium Code Reviews| Index: components/mus/public/interfaces/window_manager_constants.mojom |
| diff --git a/components/mus/public/interfaces/window_manager_constants.mojom b/components/mus/public/interfaces/window_manager_constants.mojom |
| index 9b86fa21cc05d5a0fd7aaf063b87c6b3f8a7c293..e704cbbbe6d4f7e96eec0d4e7f704bc2dcb926ab 100644 |
| --- a/components/mus/public/interfaces/window_manager_constants.mojom |
| +++ b/components/mus/public/interfaces/window_manager_constants.mojom |
| @@ -31,13 +31,21 @@ const int32 kResizeBehaviorCanResize = 1; |
| const int32 kResizeBehaviorCanMaximize = 2; |
| const int32 kResizeBehaviorCanMinimize = 4; |
| +struct FrameDecorationValues { |
| + mojo.Insets normal_client_area_insets; |
| + mojo.Insets maximized_client_area_insets; |
| + // Max width needed to display the buttons on the title bar. The buttons are |
| + // aligned to the trailing edge of the titlebar. |
| + // TODO(sky): this API is very narrow, and assumes a particular config. |
| + uint32 max_title_bar_button_width; |
| +}; |
| + |
| enum TouchSupport { |
| UNKNOWN, |
| AVAILABLE, |
| UNAVAILABLE, |
| }; |
| -// TODO(sky): move this to display.mojom |
| struct Display { |
| int64 id; |
| mojo.Rect bounds; |
| @@ -46,6 +54,7 @@ struct Display { |
| Rotation rotation; |
| TouchSupport touch_support; |
| bool is_primary; |
| + 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
|
| }; |
| enum WindowType { |