Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Unified Diff: components/mus/public/interfaces/window_manager_constants.mojom

Issue 1639563003: Renames WindowManagerConfig to FrameDecorationValues and moves to Display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {
« no previous file with comments | « components/mus/public/interfaces/window_manager.mojom ('k') | components/mus/public/interfaces/window_tree.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698