| 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 "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "services/shell/public/cpp/interface_factory.h" | 17 #include "services/shell/public/cpp/interface_factory.h" |
| 18 #include "services/shell/public/cpp/service.h" | 18 #include "services/shell/public/cpp/service.h" |
| 19 #include "services/shell/public/cpp/service_runner.h" | 19 #include "services/shell/public/cpp/service_runner.h" |
| 20 #include "services/tracing/public/cpp/tracing_impl.h" | 20 #include "services/tracing/public/cpp/provider.h" |
| 21 #include "services/ui/input_devices/input_device_server.h" | 21 #include "services/ui/input_devices/input_device_server.h" |
| 22 #include "services/ui/public/interfaces/accessibility_manager.mojom.h" | 22 #include "services/ui/public/interfaces/accessibility_manager.mojom.h" |
| 23 #include "services/ui/public/interfaces/clipboard.mojom.h" | 23 #include "services/ui/public/interfaces/clipboard.mojom.h" |
| 24 #include "services/ui/public/interfaces/display.mojom.h" | 24 #include "services/ui/public/interfaces/display.mojom.h" |
| 25 #include "services/ui/public/interfaces/gpu.mojom.h" | 25 #include "services/ui/public/interfaces/gpu.mojom.h" |
| 26 #include "services/ui/public/interfaces/gpu_service.mojom.h" | 26 #include "services/ui/public/interfaces/gpu_service.mojom.h" |
| 27 #include "services/ui/public/interfaces/user_access_manager.mojom.h" | 27 #include "services/ui/public/interfaces/user_access_manager.mojom.h" |
| 28 #include "services/ui/public/interfaces/user_activity_monitor.mojom.h" | 28 #include "services/ui/public/interfaces/user_activity_monitor.mojom.h" |
| 29 #include "services/ui/public/interfaces/window_manager_window_tree_factory.mojom
.h" | 29 #include "services/ui/public/interfaces/window_manager_window_tree_factory.mojom
.h" |
| 30 #include "services/ui/public/interfaces/window_server_test.mojom.h" | 30 #include "services/ui/public/interfaces/window_server_test.mojom.h" |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 // Callback for display configuration. |id| is the identifying token for the | 151 // Callback for display configuration. |id| is the identifying token for the |
| 152 // configured display that will identify a specific physical display across | 152 // configured display that will identify a specific physical display across |
| 153 // configuration changes. |bounds| is the bounds of the display in screen | 153 // configuration changes. |bounds| is the bounds of the display in screen |
| 154 // coordinates. | 154 // coordinates. |
| 155 void OnCreatedPhysicalDisplay(int64_t id, const gfx::Rect& bounds); | 155 void OnCreatedPhysicalDisplay(int64_t id, const gfx::Rect& bounds); |
| 156 | 156 |
| 157 ws::PlatformDisplayInitParams platform_display_init_params_; | 157 ws::PlatformDisplayInitParams platform_display_init_params_; |
| 158 std::unique_ptr<ws::WindowServer> window_server_; | 158 std::unique_ptr<ws::WindowServer> window_server_; |
| 159 std::unique_ptr<ui::PlatformEventSource> event_source_; | 159 std::unique_ptr<ui::PlatformEventSource> event_source_; |
| 160 mojo::TracingImpl tracing_; | 160 tracing::Provider tracing_; |
| 161 using PendingRequests = std::vector<std::unique_ptr<PendingRequest>>; | 161 using PendingRequests = std::vector<std::unique_ptr<PendingRequest>>; |
| 162 PendingRequests pending_requests_; | 162 PendingRequests pending_requests_; |
| 163 | 163 |
| 164 UserIdToUserState user_id_to_user_state_; | 164 UserIdToUserState user_id_to_user_state_; |
| 165 | 165 |
| 166 // Provides input-device information via Mojo IPC. | 166 // Provides input-device information via Mojo IPC. |
| 167 InputDeviceServer input_device_server_; | 167 InputDeviceServer input_device_server_; |
| 168 | 168 |
| 169 bool test_config_; | 169 bool test_config_; |
| 170 #if defined(USE_OZONE) | 170 #if defined(USE_OZONE) |
| 171 std::unique_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; | 171 std::unique_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_; |
| 172 #endif | 172 #endif |
| 173 | 173 |
| 174 std::unique_ptr<display::PlatformScreen> platform_screen_; | 174 std::unique_ptr<display::PlatformScreen> platform_screen_; |
| 175 std::unique_ptr<ws::TouchController> touch_controller_; | 175 std::unique_ptr<ws::TouchController> touch_controller_; |
| 176 | 176 |
| 177 base::WeakPtrFactory<Service> weak_ptr_factory_; | 177 base::WeakPtrFactory<Service> weak_ptr_factory_; |
| 178 | 178 |
| 179 DISALLOW_COPY_AND_ASSIGN(Service); | 179 DISALLOW_COPY_AND_ASSIGN(Service); |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 } // namespace ui | 182 } // namespace ui |
| 183 | 183 |
| 184 #endif // SERVICES_UI_SERVICE_H_ | 184 #endif // SERVICES_UI_SERVICE_H_ |
| OLD | NEW |