| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/cast/ozone_platform_cast.h" | 5 #include "ui/ozone/platform/cast/ozone_platform_cast.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 std::unique_ptr<SystemInputInjector> CreateSystemInputInjector() override { | 69 std::unique_ptr<SystemInputInjector> CreateSystemInputInjector() override { |
| 70 return nullptr; // no input injection support | 70 return nullptr; // no input injection support |
| 71 } | 71 } |
| 72 std::unique_ptr<PlatformWindow> CreatePlatformWindow( | 72 std::unique_ptr<PlatformWindow> CreatePlatformWindow( |
| 73 PlatformWindowDelegate* delegate, | 73 PlatformWindowDelegate* delegate, |
| 74 const gfx::Rect& bounds) override { | 74 const gfx::Rect& bounds) override { |
| 75 return base::WrapUnique<PlatformWindow>( | 75 return base::WrapUnique<PlatformWindow>( |
| 76 new PlatformWindowCast(delegate, bounds)); | 76 new PlatformWindowCast(delegate, bounds)); |
| 77 } | 77 } |
| 78 std::unique_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() | 78 std::unique_ptr<display::NativeDisplayDelegate> CreateNativeDisplayDelegate() |
| 79 override { | 79 override { |
| 80 NOTREACHED(); | 80 NOTREACHED(); |
| 81 return nullptr; | 81 return nullptr; |
| 82 } | 82 } |
| 83 | 83 |
| 84 void InitializeUI() override { | 84 void InitializeUI() override { |
| 85 overlay_manager_.reset(new OverlayManagerCast()); | 85 overlay_manager_.reset(new OverlayManagerCast()); |
| 86 cursor_factory_.reset(new CursorFactoryOzone()); | 86 cursor_factory_.reset(new CursorFactoryOzone()); |
| 87 input_controller_ = CreateStubInputController(); | 87 input_controller_ = CreateStubInputController(); |
| 88 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); | 88 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 118 | 118 |
| 119 OzonePlatform* CreateOzonePlatformCast() { | 119 OzonePlatform* CreateOzonePlatformCast() { |
| 120 const std::vector<std::string>& argv = | 120 const std::vector<std::string>& argv = |
| 121 base::CommandLine::ForCurrentProcess()->argv(); | 121 base::CommandLine::ForCurrentProcess()->argv(); |
| 122 std::unique_ptr<chromecast::CastEglPlatform> platform( | 122 std::unique_ptr<chromecast::CastEglPlatform> platform( |
| 123 chromecast::CastEglPlatformShlib::Create(argv)); | 123 chromecast::CastEglPlatformShlib::Create(argv)); |
| 124 return new OzonePlatformCast(std::move(platform)); | 124 return new OzonePlatformCast(std::move(platform)); |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace ui | 127 } // namespace ui |
| OLD | NEW |