| 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 "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 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 ~ForwardingWindowManager() override; | 21 ~ForwardingWindowManager() override; |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 // Returns the WindowManager of the active display. | 24 // Returns the WindowManager of the active display. |
| 25 mojom::WindowManager* GetActiveWindowManager(); | 25 mojom::WindowManager* GetActiveWindowManager(); |
| 26 | 26 |
| 27 // mojom::WindowManager: | 27 // mojom::WindowManager: |
| 28 void OpenWindow( | 28 void OpenWindow( |
| 29 mus::mojom::WindowTreeClientPtr client, | 29 mus::mojom::WindowTreeClientPtr client, |
| 30 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) override; | 30 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) override; |
| 31 void SetPreferredSize(uint32_t window_id, | |
| 32 mojo::SizePtr size, | |
| 33 const SetPreferredSizeCallback& callback) override; | |
| 34 void SetResizeBehavior(uint32_t window_id, | |
| 35 mus::mojom::ResizeBehavior resize_behavior) override; | |
| 36 void GetConfig(const GetConfigCallback& callback) override; | 31 void GetConfig(const GetConfigCallback& callback) override; |
| 37 | 32 |
| 38 ConnectionManager* connection_manager_; | 33 ConnectionManager* connection_manager_; |
| 39 | 34 |
| 40 DISALLOW_COPY_AND_ASSIGN(ForwardingWindowManager); | 35 DISALLOW_COPY_AND_ASSIGN(ForwardingWindowManager); |
| 41 }; | 36 }; |
| 42 | 37 |
| 43 } // namespace ws | 38 } // namespace ws |
| 44 } // namespace mus | 39 } // namespace mus |
| 45 | 40 |
| 46 #endif // COMPONENTS_MUS_WS_FORWARDING_WINDOW_MANAGER_H_ | 41 #endif // COMPONENTS_MUS_WS_FORWARDING_WINDOW_MANAGER_H_ |
| OLD | NEW |