| 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 "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 // Represents a core interface that should be implemented by any window manager | 11 // Represents a core interface that should be implemented by any window manager |
| 12 // built on top of Mus. | 12 // built on top of Mus. |
| 13 interface WindowManager { | 13 interface WindowManagerDeprecated { |
| 14 // The window's preferred size as defined by its content. Type: gfx::Size. | |
| 15 const string kPreferredSize_Property = "prop:preferred-size"; | |
| 16 // The window's resize behavior. Type: ResizeBehavior. | |
| 17 const string kResizeBehavior_Property = "prop:resize-behavior"; | |
| 18 // Bounds the window is restored to. Type: gfx::Rect. | |
| 19 const string kRestoreBounds_Property = "prop:restore-bounds"; | |
| 20 // Shadow style for the window. Type: mojom::ShadowStyle. | |
| 21 const string kShadowStyle_Property = "prop:shadow-style"; | |
| 22 // The window's show state. Type: ShowState. | |
| 23 const string kShowState_Property = "prop:show-state"; | |
| 24 // The window bounds as set by user input. Type: gfx::Rect. | |
| 25 const string kUserSetBounds_Property = "prop:user-set-bounds"; | |
| 26 const string kWindowType_Property = "prop:window-type"; | |
| 27 // The window's title. Type: mojom::String | |
| 28 const string kWindowTitle_Property = "prop:window-title"; | |
| 29 | |
| 30 OpenWindow(WindowTreeClient client, map<string, array<uint8>> properties); | 14 OpenWindow(WindowTreeClient client, map<string, array<uint8>> properties); |
| 31 }; | 15 }; |
| OLD | NEW |