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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 class ForwardingWindowManager; | 61 class ForwardingWindowManager; |
62 class WindowServer; | 62 class WindowServer; |
63 } | 63 } |
64 | 64 |
65 class Service | 65 class Service |
66 : public shell::Service, | 66 : public shell::Service, |
67 public ws::WindowServerDelegate, | 67 public ws::WindowServerDelegate, |
68 public shell::InterfaceFactory<mojom::AccessibilityManager>, | 68 public shell::InterfaceFactory<mojom::AccessibilityManager>, |
69 public shell::InterfaceFactory<mojom::Clipboard>, | 69 public shell::InterfaceFactory<mojom::Clipboard>, |
70 public shell::InterfaceFactory<mojom::DisplayManager>, | 70 public shell::InterfaceFactory<mojom::DisplayManager>, |
71 public shell::InterfaceFactory<mojom::Gpu>, | |
72 public shell::InterfaceFactory<mojom::GpuService>, | 71 public shell::InterfaceFactory<mojom::GpuService>, |
73 public shell::InterfaceFactory<mojom::UserAccessManager>, | 72 public shell::InterfaceFactory<mojom::UserAccessManager>, |
74 public shell::InterfaceFactory<mojom::UserActivityMonitor>, | 73 public shell::InterfaceFactory<mojom::UserActivityMonitor>, |
75 public shell::InterfaceFactory<mojom::WindowManagerWindowTreeFactory>, | 74 public shell::InterfaceFactory<mojom::WindowManagerWindowTreeFactory>, |
76 public shell::InterfaceFactory<mojom::WindowTreeFactory>, | 75 public shell::InterfaceFactory<mojom::WindowTreeFactory>, |
77 public shell::InterfaceFactory<mojom::WindowTreeHostFactory>, | 76 public shell::InterfaceFactory<mojom::WindowTreeHostFactory>, |
78 public shell::InterfaceFactory<mojom::WindowServerTest> { | 77 public shell::InterfaceFactory<mojom::WindowServerTest> { |
79 public: | 78 public: |
80 Service(); | 79 Service(); |
81 ~Service() override; | 80 ~Service() override; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 mojom::AccessibilityManagerRequest request) override; | 114 mojom::AccessibilityManagerRequest request) override; |
116 | 115 |
117 // shell::InterfaceFactory<mojom::Clipboard> implementation. | 116 // shell::InterfaceFactory<mojom::Clipboard> implementation. |
118 void Create(shell::Connection* connection, | 117 void Create(shell::Connection* connection, |
119 mojom::ClipboardRequest request) override; | 118 mojom::ClipboardRequest request) override; |
120 | 119 |
121 // shell::InterfaceFactory<mojom::DisplayManager> implementation. | 120 // shell::InterfaceFactory<mojom::DisplayManager> implementation. |
122 void Create(shell::Connection* connection, | 121 void Create(shell::Connection* connection, |
123 mojom::DisplayManagerRequest request) override; | 122 mojom::DisplayManagerRequest request) override; |
124 | 123 |
125 // shell::InterfaceFactory<mojom::Gpu> implementation. | |
126 void Create(shell::Connection* connection, | |
127 mojom::GpuRequest request) override; | |
128 | |
129 // shell::InterfaceFactory<mojom::GpuService> implementation. | 124 // shell::InterfaceFactory<mojom::GpuService> implementation. |
130 void Create(shell::Connection* connection, | 125 void Create(shell::Connection* connection, |
131 mojom::GpuServiceRequest request) override; | 126 mojom::GpuServiceRequest request) override; |
132 | 127 |
133 // shell::InterfaceFactory<mojom::UserAccessManager> implementation. | 128 // shell::InterfaceFactory<mojom::UserAccessManager> implementation. |
134 void Create(shell::Connection* connection, | 129 void Create(shell::Connection* connection, |
135 mojom::UserAccessManagerRequest request) override; | 130 mojom::UserAccessManagerRequest request) override; |
136 | 131 |
137 // shell::InterfaceFactory<mojom::UserActivityMonitor> implementation. | 132 // shell::InterfaceFactory<mojom::UserActivityMonitor> implementation. |
138 void Create(shell::Connection* connection, | 133 void Create(shell::Connection* connection, |
(...skipping 28 matching lines...) Expand all Loading... |
167 mojo::TracingImpl tracing_; | 162 mojo::TracingImpl tracing_; |
168 using PendingRequests = std::vector<std::unique_ptr<PendingRequest>>; | 163 using PendingRequests = std::vector<std::unique_ptr<PendingRequest>>; |
169 PendingRequests pending_requests_; | 164 PendingRequests pending_requests_; |
170 | 165 |
171 UserIdToUserState user_id_to_user_state_; | 166 UserIdToUserState user_id_to_user_state_; |
172 | 167 |
173 // Provides input-device information via Mojo IPC. | 168 // Provides input-device information via Mojo IPC. |
174 InputDeviceServer input_device_server_; | 169 InputDeviceServer input_device_server_; |
175 | 170 |
176 bool test_config_; | 171 bool test_config_; |
177 bool use_chrome_gpu_command_buffer_; | |
178 #if defined(USE_OZONE) | 172 #if defined(USE_OZONE) |
179 std::unique_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; | 173 std::unique_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; |
180 #endif | 174 #endif |
181 | 175 |
182 std::unique_ptr<display::PlatformScreen> platform_screen_; | 176 std::unique_ptr<display::PlatformScreen> platform_screen_; |
183 std::unique_ptr<ws::TouchController> touch_controller_; | 177 std::unique_ptr<ws::TouchController> touch_controller_; |
184 | 178 |
185 base::WeakPtrFactory<Service> weak_ptr_factory_; | 179 base::WeakPtrFactory<Service> weak_ptr_factory_; |
186 | 180 |
187 DISALLOW_COPY_AND_ASSIGN(Service); | 181 DISALLOW_COPY_AND_ASSIGN(Service); |
188 }; | 182 }; |
189 | 183 |
190 } // namespace ui | 184 } // namespace ui |
191 | 185 |
192 #endif // SERVICES_UI_SERVICE_H_ | 186 #endif // SERVICES_UI_SERVICE_H_ |
OLD | NEW |