| 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 #ifndef COMPONENTS_MUS_WS_WINDOW_MANAGER_FACTORY_REGISTRY_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_MANAGER_FACTORY_REGISTRY_H_ |
| 6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_FACTORY_REGISTRY_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_FACTORY_REGISTRY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 friend class test::WindowManagerFactoryRegistryTestApi; | 49 friend class test::WindowManagerFactoryRegistryTestApi; |
| 50 | 50 |
| 51 void AddServiceImpl(scoped_ptr<WindowManagerFactoryService> service); | 51 void AddServiceImpl(scoped_ptr<WindowManagerFactoryService> service); |
| 52 | 52 |
| 53 bool ContainsServiceForUser(const UserId& user_id) const; | 53 bool ContainsServiceForUser(const UserId& user_id) const; |
| 54 void OnWindowManagerFactoryConnectionLost( | 54 void OnWindowManagerFactoryConnectionLost( |
| 55 WindowManagerFactoryService* service); | 55 WindowManagerFactoryService* service); |
| 56 void OnWindowManagerFactorySet(WindowManagerFactoryService* service); | 56 void OnWindowManagerFactorySet(WindowManagerFactoryService* service); |
| 57 | 57 |
| 58 // UserIdTrackerObserver: | 58 // UserIdTrackerObserver: |
| 59 void OnActiveUserIdChanged(const UserId& id) override; | 59 void OnActiveUserIdChanged(const UserId& previously_active_id, |
| 60 const UserId& active_id) override; |
| 60 void OnUserIdAdded(const UserId& id) override; | 61 void OnUserIdAdded(const UserId& id) override; |
| 61 void OnUserIdRemoved(const UserId& id) override; | 62 void OnUserIdRemoved(const UserId& id) override; |
| 62 | 63 |
| 63 // Set to true the first time a valid factory has been found. | 64 // Set to true the first time a valid factory has been found. |
| 64 bool got_valid_factory_ = false; | 65 bool got_valid_factory_ = false; |
| 65 UserIdTracker* id_tracker_; | 66 UserIdTracker* id_tracker_; |
| 66 ConnectionManager* connection_manager_; | 67 ConnectionManager* connection_manager_; |
| 67 | 68 |
| 68 std::vector<scoped_ptr<WindowManagerFactoryService>> services_; | 69 std::vector<scoped_ptr<WindowManagerFactoryService>> services_; |
| 69 | 70 |
| 70 base::ObserverList<WindowManagerFactoryRegistryObserver> observers_; | 71 base::ObserverList<WindowManagerFactoryRegistryObserver> observers_; |
| 71 | 72 |
| 72 DISALLOW_COPY_AND_ASSIGN(WindowManagerFactoryRegistry); | 73 DISALLOW_COPY_AND_ASSIGN(WindowManagerFactoryRegistry); |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace ws | 76 } // namespace ws |
| 76 } // namespace mus | 77 } // namespace mus |
| 77 | 78 |
| 78 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_FACTORY_REGISTRY_H_ | 79 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_FACTORY_REGISTRY_H_ |
| OLD | NEW |