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_WS_FORWARDING_WINDOW_MANAGER_H_ | 5 #ifndef COMPONENTS_MUS_WS_FORWARDING_WINDOW_MANAGER_H_ |
6 #define COMPONENTS_MUS_WS_FORWARDING_WINDOW_MANAGER_H_ | 6 #define COMPONENTS_MUS_WS_FORWARDING_WINDOW_MANAGER_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/public/interfaces/window_manager.mojom.h" | 11 #include "components/mus/public/interfaces/window_manager.mojom.h" |
12 | 12 |
13 namespace mus { | 13 namespace mus { |
14 namespace ws { | 14 namespace ws { |
15 | 15 |
16 class ConnectionManager; | 16 class ConnectionManager; |
17 | 17 |
18 // WindowManager implementation that forwards to the window manager of the | 18 // WindowManager implementation that forwards to the window manager of the |
19 // active display. | 19 // active display. |
20 class ForwardingWindowManager : public mojom::WindowManager { | 20 class ForwardingWindowManager : public mojom::WindowManagerDeprecated { |
21 public: | 21 public: |
22 explicit ForwardingWindowManager(ConnectionManager* connection_manager); | 22 explicit ForwardingWindowManager(ConnectionManager* connection_manager); |
23 ~ForwardingWindowManager() override; | 23 ~ForwardingWindowManager() override; |
24 | 24 |
25 private: | 25 private: |
26 // Returns the WindowManager of the active display. | 26 // Returns the WindowManager of the active display. |
27 mojom::WindowManager* GetActiveWindowManager(); | 27 mojom::WindowManagerDeprecated* GetActiveWindowManager(); |
28 | 28 |
29 // mojom::WindowManager: | 29 // mojom::WindowManager: |
30 void OpenWindow( | 30 void OpenWindow( |
31 mus::mojom::WindowTreeClientPtr client, | 31 mus::mojom::WindowTreeClientPtr client, |
32 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) override; | 32 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) override; |
33 | 33 |
34 ConnectionManager* connection_manager_; | 34 ConnectionManager* connection_manager_; |
35 | 35 |
36 DISALLOW_COPY_AND_ASSIGN(ForwardingWindowManager); | 36 DISALLOW_COPY_AND_ASSIGN(ForwardingWindowManager); |
37 }; | 37 }; |
38 | 38 |
39 } // namespace ws | 39 } // namespace ws |
40 } // namespace mus | 40 } // namespace mus |
41 | 41 |
42 #endif // COMPONENTS_MUS_WS_FORWARDING_WINDOW_MANAGER_H_ | 42 #endif // COMPONENTS_MUS_WS_FORWARDING_WINDOW_MANAGER_H_ |
OLD | NEW |