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 #ifndef MASH_WM_WINDOW_MANAGER_IMPL_H_ | 5 #ifndef MASH_WM_WINDOW_MANAGER_IMPL_H_ |
6 #define MASH_WM_WINDOW_MANAGER_IMPL_H_ | 6 #define MASH_WM_WINDOW_MANAGER_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/mus/common/types.h" | 9 #include "components/mus/common/types.h" |
10 #include "components/mus/public/cpp/window_observer.h" | 10 #include "components/mus/public/cpp/window_observer.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 ~WindowManagerImpl() override; | 22 ~WindowManagerImpl() override; |
23 | 23 |
24 private: | 24 private: |
25 gfx::Rect CalculateDefaultBounds(mus::Window* window) const; | 25 gfx::Rect CalculateDefaultBounds(mus::Window* window) const; |
26 gfx::Rect GetMaximizedWindowBounds() const; | 26 gfx::Rect GetMaximizedWindowBounds() const; |
27 | 27 |
28 // mus::mojom::WindowManager: | 28 // mus::mojom::WindowManager: |
29 void OpenWindow( | 29 void OpenWindow( |
30 mus::mojom::WindowTreeClientPtr client, | 30 mus::mojom::WindowTreeClientPtr client, |
31 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) override; | 31 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) override; |
32 void SetPreferredSize( | |
33 mus::Id window_id, | |
34 mojo::SizePtr size, | |
35 const WindowManagerErrorCodeCallback& callback) override; | |
36 void SetResizeBehavior(uint32_t window_id, | |
37 mus::mojom::ResizeBehavior resize_behavior) override; | |
38 void GetConfig(const GetConfigCallback& callback) override; | 32 void GetConfig(const GetConfigCallback& callback) override; |
39 | 33 |
40 mus::Window* GetContainerForChild(mus::Window* child); | 34 mus::Window* GetContainerForChild(mus::Window* child); |
41 | 35 |
42 WindowManagerApplication* state_; | 36 WindowManagerApplication* state_; |
43 | 37 |
44 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); | 38 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); |
45 }; | 39 }; |
46 | 40 |
47 #endif // MASH_WM_WINDOW_MANAGER_IMPL_H_ | 41 #endif // MASH_WM_WINDOW_MANAGER_IMPL_H_ |
OLD | NEW |