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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // Returns the user specific state for the user id of |remote_identity|. | 109 // Returns the user specific state for the user id of |remote_identity|. |
110 // Service owns the return value. | 110 // Service owns the return value. |
111 // TODO(sky): if we allow removal of user ids then we need to close anything | 111 // TODO(sky): if we allow removal of user ids then we need to close anything |
112 // associated with the user (all incoming pipes...) on removal. | 112 // associated with the user (all incoming pipes...) on removal. |
113 UserState* GetUserState(const service_manager::Identity& remote_identity); | 113 UserState* GetUserState(const service_manager::Identity& remote_identity); |
114 | 114 |
115 void AddUserIfNecessary(const service_manager::Identity& remote_identity); | 115 void AddUserIfNecessary(const service_manager::Identity& remote_identity); |
116 | 116 |
117 // service_manager::Service: | 117 // service_manager::Service: |
118 void OnStart() override; | 118 void OnStart() override; |
119 void OnBindInterface(const service_manager::ServiceInfo& source_info, | 119 void OnBindInterface(const service_manager::BindSourceInfo& source_info, |
120 const std::string& interface_name, | 120 const std::string& interface_name, |
121 mojo::ScopedMessagePipeHandle interface_pipe) override; | 121 mojo::ScopedMessagePipeHandle interface_pipe) override; |
122 | 122 |
123 // WindowServerDelegate: | 123 // WindowServerDelegate: |
124 void StartDisplayInit() override; | 124 void StartDisplayInit() override; |
125 void OnFirstDisplayReady() override; | 125 void OnFirstDisplayReady() override; |
126 void OnNoMoreDisplays() override; | 126 void OnNoMoreDisplays() override; |
127 bool IsTestConfig() const override; | 127 bool IsTestConfig() const override; |
128 void OnWillCreateTreeForWindowManager( | 128 void OnWillCreateTreeForWindowManager( |
129 bool automatically_create_display_roots) override; | 129 bool automatically_create_display_roots) override; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 // Set to true in StartDisplayInit(). | 217 // Set to true in StartDisplayInit(). |
218 bool is_gpu_ready_ = false; | 218 bool is_gpu_ready_ = false; |
219 ScreenManagerConfig screen_manager_config_ = ScreenManagerConfig::UNKNOWN; | 219 ScreenManagerConfig screen_manager_config_ = ScreenManagerConfig::UNKNOWN; |
220 | 220 |
221 DISALLOW_COPY_AND_ASSIGN(Service); | 221 DISALLOW_COPY_AND_ASSIGN(Service); |
222 }; | 222 }; |
223 | 223 |
224 } // namespace ui | 224 } // namespace ui |
225 | 225 |
226 #endif // SERVICES_UI_SERVICE_H_ | 226 #endif // SERVICES_UI_SERVICE_H_ |
OLD | NEW |