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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 // Returns the user specific state for the user id of |remote_identity|. | 93 // Returns the user specific state for the user id of |remote_identity|. |
94 // Service owns the return value. | 94 // Service owns the return value. |
95 // TODO(sky): if we allow removal of user ids then we need to close anything | 95 // TODO(sky): if we allow removal of user ids then we need to close anything |
96 // associated with the user (all incoming pipes...) on removal. | 96 // associated with the user (all incoming pipes...) on removal. |
97 UserState* GetUserState(const shell::Identity& remote_identity); | 97 UserState* GetUserState(const shell::Identity& remote_identity); |
98 | 98 |
99 void AddUserIfNecessary(const shell::Identity& remote_identity); | 99 void AddUserIfNecessary(const shell::Identity& remote_identity); |
100 | 100 |
101 // shell::Service: | 101 // shell::Service: |
102 void OnStart(shell::Connector* connector, | 102 void OnStart(const shell::Identity& identity) override; |
103 const shell::Identity& identity, | |
104 uint32_t id) override; | |
105 bool OnConnect(shell::Connection* connection) override; | 103 bool OnConnect(shell::Connection* connection) override; |
106 | 104 |
107 // WindowServerDelegate: | 105 // WindowServerDelegate: |
108 void OnFirstDisplayReady() override; | 106 void OnFirstDisplayReady() override; |
109 void OnNoMoreDisplays() override; | 107 void OnNoMoreDisplays() override; |
110 bool IsTestConfig() const override; | 108 bool IsTestConfig() const override; |
111 void CreateDefaultDisplays() override; | 109 void CreateDefaultDisplays() override; |
112 | 110 |
113 // shell::InterfaceFactory<mojom::AccessibilityManager> implementation. | 111 // shell::InterfaceFactory<mojom::AccessibilityManager> implementation. |
114 void Create(const shell::Identity& remote_identity, | 112 void Create(const shell::Identity& remote_identity, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 std::unique_ptr<ws::TouchController> touch_controller_; | 181 std::unique_ptr<ws::TouchController> touch_controller_; |
184 | 182 |
185 base::WeakPtrFactory<Service> weak_ptr_factory_; | 183 base::WeakPtrFactory<Service> weak_ptr_factory_; |
186 | 184 |
187 DISALLOW_COPY_AND_ASSIGN(Service); | 185 DISALLOW_COPY_AND_ASSIGN(Service); |
188 }; | 186 }; |
189 | 187 |
190 } // namespace ui | 188 } // namespace ui |
191 | 189 |
192 #endif // SERVICES_UI_SERVICE_H_ | 190 #endif // SERVICES_UI_SERVICE_H_ |
OLD | NEW |