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