Chromium Code Reviews| 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 "components/discardable_memory/public/interfaces/discardable_shared_mem ory_manager.mojom.h" | 16 #include "components/discardable_memory/public/interfaces/discardable_shared_mem ory_manager.mojom.h" |
| 17 #include "components/discardable_memory/service/discardable_shared_memory_manage r.h" | |
| 17 #include "services/service_manager/public/cpp/interface_factory.h" | 18 #include "services/service_manager/public/cpp/interface_factory.h" |
| 18 #include "services/service_manager/public/cpp/service.h" | 19 #include "services/service_manager/public/cpp/service.h" |
| 19 #include "services/service_manager/public/cpp/service_runner.h" | 20 #include "services/service_manager/public/cpp/service_runner.h" |
| 20 #include "services/tracing/public/cpp/provider.h" | 21 #include "services/tracing/public/cpp/provider.h" |
| 21 #include "services/ui/ime/ime_registrar_impl.h" | 22 #include "services/ui/ime/ime_registrar_impl.h" |
| 22 #include "services/ui/ime/ime_server_impl.h" | 23 #include "services/ui/ime/ime_server_impl.h" |
| 23 #include "services/ui/input_devices/input_device_server.h" | 24 #include "services/ui/input_devices/input_device_server.h" |
| 24 #include "services/ui/public/interfaces/accessibility_manager.mojom.h" | 25 #include "services/ui/public/interfaces/accessibility_manager.mojom.h" |
| 25 #include "services/ui/public/interfaces/clipboard.mojom.h" | 26 #include "services/ui/public/interfaces/clipboard.mojom.h" |
| 26 #include "services/ui/public/interfaces/display_manager.mojom.h" | 27 #include "services/ui/public/interfaces/display_manager.mojom.h" |
| 27 #include "services/ui/public/interfaces/gpu.mojom.h" | 28 #include "services/ui/public/interfaces/gpu.mojom.h" |
| 28 #include "services/ui/public/interfaces/ime/ime.mojom.h" | 29 #include "services/ui/public/interfaces/ime/ime.mojom.h" |
| 29 #include "services/ui/public/interfaces/user_access_manager.mojom.h" | 30 #include "services/ui/public/interfaces/user_access_manager.mojom.h" |
| 30 #include "services/ui/public/interfaces/user_activity_monitor.mojom.h" | 31 #include "services/ui/public/interfaces/user_activity_monitor.mojom.h" |
| 31 #include "services/ui/public/interfaces/window_manager_window_tree_factory.mojom .h" | 32 #include "services/ui/public/interfaces/window_manager_window_tree_factory.mojom .h" |
| 32 #include "services/ui/public/interfaces/window_server_test.mojom.h" | 33 #include "services/ui/public/interfaces/window_server_test.mojom.h" |
| 33 #include "services/ui/public/interfaces/window_tree.mojom.h" | 34 #include "services/ui/public/interfaces/window_tree.mojom.h" |
| 34 #include "services/ui/public/interfaces/window_tree_host.mojom.h" | 35 #include "services/ui/public/interfaces/window_tree_host.mojom.h" |
| 35 #include "services/ui/ws/platform_display_init_params.h" | 36 #include "services/ui/ws/platform_display_init_params.h" |
| 36 #include "services/ui/ws/touch_controller.h" | 37 #include "services/ui/ws/touch_controller.h" |
| 37 #include "services/ui/ws/user_id.h" | 38 #include "services/ui/ws/user_id.h" |
| 38 #include "services/ui/ws/window_server_delegate.h" | 39 #include "services/ui/ws/window_server_delegate.h" |
| 39 | 40 |
| 40 #if defined(USE_OZONE) | 41 #if defined(USE_OZONE) |
| 41 #include "ui/ozone/public/client_native_pixmap_factory.h" | 42 #include "ui/ozone/public/client_native_pixmap_factory.h" |
| 42 #endif | 43 #endif |
| 43 | 44 |
| 45 namespace discardable_memory { | |
|
msw
2016/12/20 16:53:29
Remove this; the include should suffice.
Peng
2016/12/20 18:34:40
I just found out the discardable memory manager ca
| |
| 46 class DiscardableSharedMemoryManager; | |
| 47 } | |
| 48 | |
| 44 namespace display { | 49 namespace display { |
| 45 class ScreenManager; | 50 class ScreenManager; |
| 46 } | 51 } |
| 47 | 52 |
| 48 namespace service_manager { | 53 namespace service_manager { |
| 49 class Connector; | 54 class Connector; |
| 50 } | 55 } |
| 51 | 56 |
| 52 namespace ui { | 57 namespace ui { |
| 53 | 58 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 184 #endif | 189 #endif |
| 185 | 190 |
| 186 // Manages display hardware and handles display management. May register Mojo | 191 // Manages display hardware and handles display management. May register Mojo |
| 187 // interfaces and must outlive service_manager::InterfaceRegistry. | 192 // interfaces and must outlive service_manager::InterfaceRegistry. |
| 188 std::unique_ptr<display::ScreenManager> screen_manager_; | 193 std::unique_ptr<display::ScreenManager> screen_manager_; |
| 189 | 194 |
| 190 std::unique_ptr<ws::TouchController> touch_controller_; | 195 std::unique_ptr<ws::TouchController> touch_controller_; |
| 191 IMERegistrarImpl ime_registrar_; | 196 IMERegistrarImpl ime_registrar_; |
| 192 IMEServerImpl ime_server_; | 197 IMEServerImpl ime_server_; |
| 193 | 198 |
| 199 discardable_memory::DiscardableSharedMemoryManager | |
| 200 discardable_shared_memory_manager_; | |
| 201 | |
| 194 DISALLOW_COPY_AND_ASSIGN(Service); | 202 DISALLOW_COPY_AND_ASSIGN(Service); |
| 195 }; | 203 }; |
| 196 | 204 |
| 197 } // namespace ui | 205 } // namespace ui |
| 198 | 206 |
| 199 #endif // SERVICES_UI_SERVICE_H_ | 207 #endif // SERVICES_UI_SERVICE_H_ |
| OLD | NEW |