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 COMPONENTS_MUS_EXAMPLE_WM_WINDOW_MANAGER_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_EXAMPLE_WM_WINDOW_MANAGER_IMPL_H_ |
6 #define COMPONENTS_MUS_EXAMPLE_WM_WINDOW_MANAGER_IMPL_H_ | 6 #define COMPONENTS_MUS_EXAMPLE_WM_WINDOW_MANAGER_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/mus/public/interfaces/window_manager.mojom.h" | 9 #include "components/mus/public/interfaces/window_manager.mojom.h" |
10 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" | 10 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" |
11 | 11 |
12 class WindowManagerApplication; | 12 class WindowManagerApplication; |
13 | 13 |
14 class WindowManagerImpl : public mus::mojom::WindowManager { | 14 class WindowManagerImpl : public mus::mojom::WindowManager { |
15 public: | 15 public: |
16 WindowManagerImpl(WindowManagerApplication* state, | 16 WindowManagerImpl(WindowManagerApplication* state, |
17 mojo::InterfaceRequest<mus::mojom::WindowManager> request); | 17 mojo::InterfaceRequest<mus::mojom::WindowManager> request); |
18 ~WindowManagerImpl() override; | 18 ~WindowManagerImpl() override; |
19 | 19 |
20 private: | 20 private: |
21 // mus::mojom::WindowManager: | 21 // mus::mojom::WindowManager: |
22 void OpenWindow(mojo::ViewTreeClientPtr client) override; | 22 void OpenWindow(mojo::ViewTreeClientPtr client) override; |
23 void CenterWindow(uint32_t view_id, mojo::SizePtr size) override; | 23 void CenterWindow(uint32_t view_id, mojo::SizePtr size) override; |
| 24 void GetDisplays(const GetDisplaysCallback& callback) override; |
24 | 25 |
25 WindowManagerApplication* state_; | 26 WindowManagerApplication* state_; |
26 mojo::StrongBinding<mus::mojom::WindowManager> binding_; | 27 mojo::StrongBinding<mus::mojom::WindowManager> binding_; |
27 | 28 |
28 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); | 29 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); |
29 }; | 30 }; |
30 | 31 |
31 #endif // COMPONENTS_MUS_EXAMPLE_WM_WINDOW_MANAGER_IMPL_H_ | 32 #endif // COMPONENTS_MUS_EXAMPLE_WM_WINDOW_MANAGER_IMPL_H_ |
OLD | NEW |