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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "components/mus/common/types.h" | 11 #include "components/mus/common/types.h" |
12 #include "components/mus/public/cpp/window_manager_delegate.h" | 12 #include "components/mus/public/cpp/window_manager_delegate.h" |
13 #include "components/mus/public/cpp/window_observer.h" | 13 #include "components/mus/public/cpp/window_observer.h" |
14 #include "components/mus/public/interfaces/window_manager.mojom.h" | 14 #include "components/mus/public/interfaces/window_manager.mojom.h" |
15 | 15 |
16 namespace mash { | 16 namespace mash { |
17 namespace wm { | 17 namespace wm { |
18 | 18 |
19 class WindowManagerApplication; | 19 class WindowManagerApplication; |
20 | 20 |
21 using WindowManagerErrorCodeCallback = | 21 using WindowManagerErrorCodeCallback = |
22 const mojo::Callback<void(mus::mojom::WindowManagerErrorCode)>; | 22 const mojo::Callback<void(mus::mojom::WindowManagerErrorCode)>; |
23 | 23 |
24 class WindowManagerImpl : public mus::mojom::WindowManager, | 24 class WindowManagerImpl : public mus::mojom::WindowManagerDeprecated, |
25 public mus::WindowObserver, | 25 public mus::WindowObserver, |
26 public mus::WindowManagerDelegate { | 26 public mus::WindowManagerDelegate { |
27 public: | 27 public: |
28 WindowManagerImpl(); | 28 WindowManagerImpl(); |
29 ~WindowManagerImpl() override; | 29 ~WindowManagerImpl() override; |
30 | 30 |
31 void Initialize(WindowManagerApplication* state); | 31 void Initialize(WindowManagerApplication* state); |
32 | 32 |
33 private: | 33 private: |
34 gfx::Rect CalculateDefaultBounds(mus::Window* window) const; | 34 gfx::Rect CalculateDefaultBounds(mus::Window* window) const; |
(...skipping 24 matching lines...) Expand all Loading... |
59 WindowManagerApplication* state_; | 59 WindowManagerApplication* state_; |
60 mus::WindowManagerClient* window_manager_client_; | 60 mus::WindowManagerClient* window_manager_client_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); | 62 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace wm | 65 } // namespace wm |
66 } // namespace mash | 66 } // namespace mash |
67 | 67 |
68 #endif // MASH_WM_WINDOW_MANAGER_IMPL_H_ | 68 #endif // MASH_WM_WINDOW_MANAGER_IMPL_H_ |
OLD | NEW |