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

Side by Side Diff: components/mus/public/interfaces/window_manager.mojom

Issue 1474543002: Makes NewWindow() take set of properties for window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke shadow_style changes Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
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 "components/mus/public/interfaces/window_manager_constants.mojom"; 7 import "components/mus/public/interfaces/window_manager_constants.mojom";
8 import "components/mus/public/interfaces/window_tree.mojom"; 8 import "components/mus/public/interfaces/window_tree.mojom";
9 import "ui/mojo/geometry/geometry.mojom"; 9 import "ui/mojo/geometry/geometry.mojom";
10 10
11 struct WindowManagerConfig { 11 struct WindowManagerConfig {
12 array<Display> displays; 12 array<Display> displays;
13 mojo.Insets normal_client_area_insets; 13 mojo.Insets normal_client_area_insets;
14 mojo.Insets maximized_client_area_insets; 14 mojo.Insets maximized_client_area_insets;
15 }; 15 };
16 16
17 // Represents a core interface that should be implemented by any window manager 17 // Represents a core interface that should be implemented by any window manager
18 // built on top of Mus. 18 // built on top of Mus.
19 // For security reasons, methods that take window_ids can only pass window ids
20 // created by calls to OpenWindow() from the *same connection* to the window
21 // manager. The callback indicates success or failure.
22 interface WindowManager { 19 interface WindowManager {
23 // The window's preferred size as defined by its content. Type: gfx::Size. 20 // The window's preferred size as defined by its content. Type: gfx::Size.
24 const string kPreferredSize_Property = "prop:preferred-size"; 21 const string kPreferredSize_Property = "prop:preferred-size";
25 // The window's resize behavior. Type: ResizeBehavior. 22 // The window's resize behavior. Type: ResizeBehavior.
26 const string kResizeBehavior_Property = "prop:resize-behavior"; 23 const string kResizeBehavior_Property = "prop:resize-behavior";
27 // Bounds the window is restored to. Type: gfx::Rect. 24 // Bounds the window is restored to. Type: gfx::Rect.
28 const string kRestoreBounds_Property = "prop:restore-bounds"; 25 const string kRestoreBounds_Property = "prop:restore-bounds";
26 // Shadow style for the window. Type mojom::ShadowStyle.
27 const string kShadowStyle_Property = "prop:shadow-style";
29 // The window's show state. Type: ShowState. 28 // The window's show state. Type: ShowState.
30 const string kShowState_Property = "prop:show-state"; 29 const string kShowState_Property = "prop:show-state";
31 // The window bounds as set by user input. Type: gfx::Rect. 30 // The window bounds as set by user input. Type: gfx::Rect.
32 const string kUserSetBounds_Property = "prop:user-set-bounds"; 31 const string kUserSetBounds_Property = "prop:user-set-bounds";
33 32
34 OpenWindow(WindowTreeClient client, map<string, array<uint8>> properties); 33 OpenWindow(WindowTreeClient client, map<string, array<uint8>> properties);
35 34
36 GetConfig() => (WindowManagerConfig config); 35 GetConfig() => (WindowManagerConfig config);
37 }; 36 };
OLDNEW
« no previous file with comments | « components/mus/public/cpp/window_tree_connection.h ('k') | components/mus/public/interfaces/window_tree.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698