| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_FACTORY_H_ | |
| 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_FACTORY_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "components/mus/public/interfaces/window_tree.mojom.h" | |
| 10 #include "components/mus/ws/user_id.h" | |
| 11 #include "mojo/public/cpp/bindings/strong_binding.h" | |
| 12 | |
| 13 namespace mus { | |
| 14 namespace ws { | |
| 15 | |
| 16 class WindowServer; | |
| 17 | |
| 18 class WindowTreeFactory : public mus::mojom::WindowTreeFactory { | |
| 19 public: | |
| 20 WindowTreeFactory(WindowServer* window_server, | |
| 21 const UserId& user_id, | |
| 22 const std::string& client_name, | |
| 23 mojom::WindowTreeFactoryRequest request); | |
| 24 private: | |
| 25 ~WindowTreeFactory() override; | |
| 26 | |
| 27 // mus::mojom::WindowTreeFactory: | |
| 28 void CreateWindowTree(mojo::InterfaceRequest<mojom::WindowTree> tree_request, | |
| 29 mojom::WindowTreeClientPtr client) override; | |
| 30 | |
| 31 WindowServer* window_server_; | |
| 32 const UserId user_id_; | |
| 33 const std::string client_name_; | |
| 34 mojo::StrongBinding<mus::mojom::WindowTreeFactory> binding_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(WindowTreeFactory); | |
| 37 }; | |
| 38 | |
| 39 } // namespace ws | |
| 40 } // namespace mus | |
| 41 | |
| 42 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_FACTORY_H_ | |
| OLD | NEW |