OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 #include "components/mus/ws/window_manager_factory_service.h" | 5 #include "components/mus/ws/window_manager_factory_service.h" |
6 | 6 |
| 7 #include "base/bind.h" |
7 #include "components/mus/ws/window_manager_factory_registry.h" | 8 #include "components/mus/ws/window_manager_factory_registry.h" |
8 #include "components/mus/ws/window_tree.h" | 9 #include "components/mus/ws/window_tree.h" |
9 | 10 |
10 namespace mus { | 11 namespace mus { |
11 namespace ws { | 12 namespace ws { |
12 | 13 |
13 WindowManagerFactoryService::WindowManagerFactoryService( | 14 WindowManagerFactoryService::WindowManagerFactoryService( |
14 WindowManagerFactoryRegistry* registry, | 15 WindowManagerFactoryRegistry* registry, |
15 const UserId& user_id, | 16 const UserId& user_id, |
16 mojo::InterfaceRequest<mojom::WindowManagerFactoryService> request) | 17 mojo::InterfaceRequest<mojom::WindowManagerFactoryService> request) |
(...skipping 26 matching lines...) Expand all Loading... |
43 window_manager_factory_ = factory; | 44 window_manager_factory_ = factory; |
44 registry_->OnWindowManagerFactorySet(this); | 45 registry_->OnWindowManagerFactorySet(this); |
45 } | 46 } |
46 | 47 |
47 void WindowManagerFactoryService::OnConnectionLost() { | 48 void WindowManagerFactoryService::OnConnectionLost() { |
48 registry_->OnWindowManagerFactoryConnectionLost(this); | 49 registry_->OnWindowManagerFactoryConnectionLost(this); |
49 } | 50 } |
50 | 51 |
51 } // namespace ws | 52 } // namespace ws |
52 } // namespace mus | 53 } // namespace mus |
OLD | NEW |