OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SERVICES_UI_SERVICE_H_ | 5 #ifndef SERVICES_UI_SERVICE_H_ |
6 #define SERVICES_UI_SERVICE_H_ | 6 #define SERVICES_UI_SERVICE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // Returns the user specific state for the user id of |remote_identity|. | 90 // Returns the user specific state for the user id of |remote_identity|. |
91 // Service owns the return value. | 91 // Service owns the return value. |
92 // TODO(sky): if we allow removal of user ids then we need to close anything | 92 // TODO(sky): if we allow removal of user ids then we need to close anything |
93 // associated with the user (all incoming pipes...) on removal. | 93 // associated with the user (all incoming pipes...) on removal. |
94 UserState* GetUserState(const shell::Identity& remote_identity); | 94 UserState* GetUserState(const shell::Identity& remote_identity); |
95 | 95 |
96 void AddUserIfNecessary(const shell::Identity& remote_identity); | 96 void AddUserIfNecessary(const shell::Identity& remote_identity); |
97 | 97 |
98 // shell::Service: | 98 // shell::Service: |
99 void OnStart(const shell::Identity& identity) override; | 99 void OnStart(const shell::Identity& identity) override; |
100 bool OnConnect(shell::Connection* connection) override; | 100 bool OnConnect(const shell::Identity& remote_identity, |
| 101 shell::InterfaceRegistry* registry) override; |
101 | 102 |
102 // WindowServerDelegate: | 103 // WindowServerDelegate: |
103 void OnFirstDisplayReady() override; | 104 void OnFirstDisplayReady() override; |
104 void OnNoMoreDisplays() override; | 105 void OnNoMoreDisplays() override; |
105 bool IsTestConfig() const override; | 106 bool IsTestConfig() const override; |
106 void CreateDefaultDisplays() override; | 107 void CreateDefaultDisplays() override; |
107 | 108 |
108 // shell::InterfaceFactory<mojom::AccessibilityManager> implementation. | 109 // shell::InterfaceFactory<mojom::AccessibilityManager> implementation. |
109 void Create(const shell::Identity& remote_identity, | 110 void Create(const shell::Identity& remote_identity, |
110 mojom::AccessibilityManagerRequest request) override; | 111 mojom::AccessibilityManagerRequest request) override; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 std::unique_ptr<ws::TouchController> touch_controller_; | 174 std::unique_ptr<ws::TouchController> touch_controller_; |
174 | 175 |
175 base::WeakPtrFactory<Service> weak_ptr_factory_; | 176 base::WeakPtrFactory<Service> weak_ptr_factory_; |
176 | 177 |
177 DISALLOW_COPY_AND_ASSIGN(Service); | 178 DISALLOW_COPY_AND_ASSIGN(Service); |
178 }; | 179 }; |
179 | 180 |
180 } // namespace ui | 181 } // namespace ui |
181 | 182 |
182 #endif // SERVICES_UI_SERVICE_H_ | 183 #endif // SERVICES_UI_SERVICE_H_ |
OLD | NEW |