| 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> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "services/service_manager/public/cpp/interface_factory.h" | 16 #include "services/service_manager/public/cpp/interface_factory.h" |
| 17 #include "services/service_manager/public/cpp/service.h" | 17 #include "services/service_manager/public/cpp/service.h" |
| 18 #include "services/service_manager/public/cpp/service_runner.h" | 18 #include "services/service_manager/public/cpp/service_runner.h" |
| 19 #include "services/tracing/public/cpp/provider.h" | 19 #include "services/tracing/public/cpp/provider.h" |
| 20 #include "services/ui/ime/ime_registrar_impl.h" | 20 #include "services/ui/ime/ime_registrar_impl.h" |
| 21 #include "services/ui/ime/ime_server_impl.h" | 21 #include "services/ui/ime/ime_server_impl.h" |
| 22 #include "services/ui/input_devices/input_device_server.h" | 22 #include "services/ui/input_devices/input_device_server.h" |
| 23 #include "services/ui/public/interfaces/accessibility_manager.mojom.h" | 23 #include "services/ui/public/interfaces/accessibility_manager.mojom.h" |
| 24 #include "services/ui/public/interfaces/clipboard.mojom.h" | 24 #include "services/ui/public/interfaces/clipboard.mojom.h" |
| 25 #include "services/ui/public/interfaces/display_manager.mojom.h" | 25 #include "services/ui/public/interfaces/display_manager.mojom.h" |
| 26 #include "services/ui/public/interfaces/gpu_service.mojom.h" | 26 #include "services/ui/public/interfaces/gpu.mojom.h" |
| 27 #include "services/ui/public/interfaces/ime/ime.mojom.h" | 27 #include "services/ui/public/interfaces/ime/ime.mojom.h" |
| 28 #include "services/ui/public/interfaces/user_access_manager.mojom.h" | 28 #include "services/ui/public/interfaces/user_access_manager.mojom.h" |
| 29 #include "services/ui/public/interfaces/user_activity_monitor.mojom.h" | 29 #include "services/ui/public/interfaces/user_activity_monitor.mojom.h" |
| 30 #include "services/ui/public/interfaces/window_manager_window_tree_factory.mojom
.h" | 30 #include "services/ui/public/interfaces/window_manager_window_tree_factory.mojom
.h" |
| 31 #include "services/ui/public/interfaces/window_server_test.mojom.h" | 31 #include "services/ui/public/interfaces/window_server_test.mojom.h" |
| 32 #include "services/ui/public/interfaces/window_tree.mojom.h" | 32 #include "services/ui/public/interfaces/window_tree.mojom.h" |
| 33 #include "services/ui/public/interfaces/window_tree_host.mojom.h" | 33 #include "services/ui/public/interfaces/window_tree_host.mojom.h" |
| 34 #include "services/ui/ws/platform_display_init_params.h" | 34 #include "services/ui/ws/platform_display_init_params.h" |
| 35 #include "services/ui/ws/touch_controller.h" | 35 #include "services/ui/ws/touch_controller.h" |
| 36 #include "services/ui/ws/user_id.h" | 36 #include "services/ui/ws/user_id.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 55 namespace ws { | 55 namespace ws { |
| 56 class WindowServer; | 56 class WindowServer; |
| 57 } | 57 } |
| 58 | 58 |
| 59 class Service | 59 class Service |
| 60 : public service_manager::Service, | 60 : public service_manager::Service, |
| 61 public ws::WindowServerDelegate, | 61 public ws::WindowServerDelegate, |
| 62 public service_manager::InterfaceFactory<mojom::AccessibilityManager>, | 62 public service_manager::InterfaceFactory<mojom::AccessibilityManager>, |
| 63 public service_manager::InterfaceFactory<mojom::Clipboard>, | 63 public service_manager::InterfaceFactory<mojom::Clipboard>, |
| 64 public service_manager::InterfaceFactory<mojom::DisplayManager>, | 64 public service_manager::InterfaceFactory<mojom::DisplayManager>, |
| 65 public service_manager::InterfaceFactory<mojom::GpuService>, | 65 public service_manager::InterfaceFactory<mojom::Gpu>, |
| 66 public service_manager::InterfaceFactory<mojom::IMERegistrar>, | 66 public service_manager::InterfaceFactory<mojom::IMERegistrar>, |
| 67 public service_manager::InterfaceFactory<mojom::IMEServer>, | 67 public service_manager::InterfaceFactory<mojom::IMEServer>, |
| 68 public service_manager::InterfaceFactory<mojom::UserAccessManager>, | 68 public service_manager::InterfaceFactory<mojom::UserAccessManager>, |
| 69 public service_manager::InterfaceFactory<mojom::UserActivityMonitor>, | 69 public service_manager::InterfaceFactory<mojom::UserActivityMonitor>, |
| 70 public service_manager::InterfaceFactory< | 70 public service_manager::InterfaceFactory< |
| 71 mojom::WindowManagerWindowTreeFactory>, | 71 mojom::WindowManagerWindowTreeFactory>, |
| 72 public service_manager::InterfaceFactory<mojom::WindowTreeFactory>, | 72 public service_manager::InterfaceFactory<mojom::WindowTreeFactory>, |
| 73 public service_manager::InterfaceFactory<mojom::WindowTreeHostFactory>, | 73 public service_manager::InterfaceFactory<mojom::WindowTreeHostFactory>, |
| 74 public service_manager::InterfaceFactory<mojom::WindowServerTest> { | 74 public service_manager::InterfaceFactory<mojom::WindowServerTest> { |
| 75 public: | 75 public: |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 mojom::AccessibilityManagerRequest request) override; | 112 mojom::AccessibilityManagerRequest request) override; |
| 113 | 113 |
| 114 // service_manager::InterfaceFactory<mojom::Clipboard> implementation. | 114 // service_manager::InterfaceFactory<mojom::Clipboard> implementation. |
| 115 void Create(const service_manager::Identity& remote_identity, | 115 void Create(const service_manager::Identity& remote_identity, |
| 116 mojom::ClipboardRequest request) override; | 116 mojom::ClipboardRequest request) override; |
| 117 | 117 |
| 118 // service_manager::InterfaceFactory<mojom::DisplayManager> implementation. | 118 // service_manager::InterfaceFactory<mojom::DisplayManager> implementation. |
| 119 void Create(const service_manager::Identity& remote_identity, | 119 void Create(const service_manager::Identity& remote_identity, |
| 120 mojom::DisplayManagerRequest request) override; | 120 mojom::DisplayManagerRequest request) override; |
| 121 | 121 |
| 122 // service_manager::InterfaceFactory<mojom::GpuService> implementation. | 122 // service_manager::InterfaceFactory<mojom::Gpu> implementation. |
| 123 void Create(const service_manager::Identity& remote_identity, | 123 void Create(const service_manager::Identity& remote_identity, |
| 124 mojom::GpuServiceRequest request) override; | 124 mojom::GpuRequest request) override; |
| 125 | 125 |
| 126 // service_manager::InterfaceFactory<mojom::IMERegistrar> implementation. | 126 // service_manager::InterfaceFactory<mojom::IMERegistrar> implementation. |
| 127 void Create(const service_manager::Identity& remote_identity, | 127 void Create(const service_manager::Identity& remote_identity, |
| 128 mojom::IMERegistrarRequest request) override; | 128 mojom::IMERegistrarRequest request) override; |
| 129 | 129 |
| 130 // service_manager::InterfaceFactory<mojom::IMEServer> implementation. | 130 // service_manager::InterfaceFactory<mojom::IMEServer> implementation. |
| 131 void Create(const service_manager::Identity& remote_identity, | 131 void Create(const service_manager::Identity& remote_identity, |
| 132 mojom::IMEServerRequest request) override; | 132 mojom::IMEServerRequest request) override; |
| 133 | 133 |
| 134 // service_manager::InterfaceFactory<mojom::UserAccessManager> implementation. | 134 // service_manager::InterfaceFactory<mojom::UserAccessManager> implementation. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 std::unique_ptr<ws::TouchController> touch_controller_; | 181 std::unique_ptr<ws::TouchController> touch_controller_; |
| 182 IMERegistrarImpl ime_registrar_; | 182 IMERegistrarImpl ime_registrar_; |
| 183 IMEServerImpl ime_server_; | 183 IMEServerImpl ime_server_; |
| 184 | 184 |
| 185 DISALLOW_COPY_AND_ASSIGN(Service); | 185 DISALLOW_COPY_AND_ASSIGN(Service); |
| 186 }; | 186 }; |
| 187 | 187 |
| 188 } // namespace ui | 188 } // namespace ui |
| 189 | 189 |
| 190 #endif // SERVICES_UI_SERVICE_H_ | 190 #endif // SERVICES_UI_SERVICE_H_ |
| OLD | NEW |