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_window_tree_factory_set.h" | 5 #include "services/ui/ws/window_manager_window_tree_factory_set.h" |
6 | 6 |
7 #include "components/mus/ws/user_id_tracker_observer.h" | 7 #include "services/ui/ws/user_id_tracker_observer.h" |
8 #include "components/mus/ws/window_manager_window_tree_factory.h" | 8 #include "services/ui/ws/window_manager_window_tree_factory.h" |
9 #include "components/mus/ws/window_manager_window_tree_factory_set_observer.h" | 9 #include "services/ui/ws/window_manager_window_tree_factory_set_observer.h" |
10 #include "components/mus/ws/window_server.h" | 10 #include "services/ui/ws/window_server.h" |
11 #include "components/mus/ws/window_tree.h" | 11 #include "services/ui/ws/window_tree.h" |
12 | 12 |
13 namespace mus { | 13 namespace mus { |
14 namespace ws { | 14 namespace ws { |
15 | 15 |
16 WindowManagerWindowTreeFactorySet::WindowManagerWindowTreeFactorySet( | 16 WindowManagerWindowTreeFactorySet::WindowManagerWindowTreeFactorySet( |
17 WindowServer* window_server, | 17 WindowServer* window_server, |
18 UserIdTracker* id_tracker) | 18 UserIdTracker* id_tracker) |
19 : id_tracker_(id_tracker), window_server_(window_server) { | 19 : id_tracker_(id_tracker), window_server_(window_server) { |
20 id_tracker_->AddObserver(this); | 20 id_tracker_->AddObserver(this); |
21 } | 21 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 if (is_first_valid_factory) | 90 if (is_first_valid_factory) |
91 window_server_->OnFirstWindowManagerWindowTreeFactoryReady(); | 91 window_server_->OnFirstWindowManagerWindowTreeFactoryReady(); |
92 } | 92 } |
93 | 93 |
94 void WindowManagerWindowTreeFactorySet::OnUserIdRemoved(const UserId& id) { | 94 void WindowManagerWindowTreeFactorySet::OnUserIdRemoved(const UserId& id) { |
95 factories_.erase(id); | 95 factories_.erase(id); |
96 } | 96 } |
97 | 97 |
98 } // namespace ws | 98 } // namespace ws |
99 } // namespace mus | 99 } // namespace mus |
OLD | NEW |