| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "ui/ozone/platform/headless/ozone_platform_headless.h" | 5 #include "ui/ozone/platform/headless/ozone_platform_headless.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h" | 10 #include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h" |
| 11 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" | 11 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" |
| 12 #include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h" | 12 #include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h" |
| 13 #include "ui/events/platform/platform_event_source.h" | 13 #include "ui/events/platform/platform_event_source.h" |
| 14 #include "ui/ozone/common/native_display_delegate_ozone.h" | 14 #include "ui/ozone/common/native_display_delegate_ozone.h" |
| 15 #include "ui/ozone/common/stub_overlay_manager.h" | 15 #include "ui/ozone/common/stub_overlay_manager.h" |
| 16 #include "ui/ozone/platform/headless/headless_surface_factory.h" | 16 #include "ui/ozone/platform/headless/headless_surface_factory.h" |
| 17 #include "ui/ozone/platform/headless/headless_window.h" | 17 #include "ui/ozone/platform/headless/headless_window.h" |
| 18 #include "ui/ozone/platform/headless/headless_window_manager.h" | 18 #include "ui/ozone/platform/headless/headless_window_manager.h" |
| 19 #include "ui/ozone/public/cursor_factory_ozone.h" | 19 #include "ui/ozone/public/cursor_factory_ozone.h" |
| 20 #include "ui/ozone/public/gpu_platform_support.h" | 20 #include "ui/ozone/public/gpu_platform_support.h" |
| 21 #include "ui/ozone/public/gpu_platform_support_host.h" | 21 #include "ui/ozone/public/gpu_platform_support_host.h" |
| 22 #include "ui/ozone/public/input_controller.h" | 22 #include "ui/ozone/public/input_controller.h" |
| 23 #include "ui/ozone/public/ozone_platform.h" // nogncheck | 23 #include "ui/ozone/public/ozone_platform.h" |
| 24 #include "ui/ozone/public/ozone_switches.h" | 24 #include "ui/ozone/public/ozone_switches.h" |
| 25 #include "ui/ozone/public/system_input_injector.h" | 25 #include "ui/ozone/public/system_input_injector.h" |
| 26 | 26 |
| 27 namespace ui { | 27 namespace ui { |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 // A headless implementation of PlatformEventSource that we can instantiate to | 31 // A headless implementation of PlatformEventSource that we can instantiate to |
| 32 // make | 32 // make |
| 33 // sure that the PlatformEventSource has an instance while in unit tests. | 33 // sure that the PlatformEventSource has an instance while in unit tests. |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 OzonePlatform* CreateOzonePlatformHeadless() { | 123 OzonePlatform* CreateOzonePlatformHeadless() { |
| 124 base::CommandLine* cmd = base::CommandLine::ForCurrentProcess(); | 124 base::CommandLine* cmd = base::CommandLine::ForCurrentProcess(); |
| 125 base::FilePath location; | 125 base::FilePath location; |
| 126 if (cmd->HasSwitch(switches::kOzoneDumpFile)) | 126 if (cmd->HasSwitch(switches::kOzoneDumpFile)) |
| 127 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile); | 127 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile); |
| 128 return new OzonePlatformHeadless(location); | 128 return new OzonePlatformHeadless(location); |
| 129 } | 129 } |
| 130 | 130 |
| 131 } // namespace ui | 131 } // namespace ui |
| OLD | NEW |