| 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 #include "ui/ozone/platform/egltest/ozone_platform_egltest.h" | 5 #include "ui/ozone/platform/egltest/ozone_platform_egltest.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/environment.h" | 9 #include "base/environment.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 } | 348 } |
| 349 CursorFactoryOzone* GetCursorFactoryOzone() override { | 349 CursorFactoryOzone* GetCursorFactoryOzone() override { |
| 350 return cursor_factory_ozone_.get(); | 350 return cursor_factory_ozone_.get(); |
| 351 } | 351 } |
| 352 GpuPlatformSupport* GetGpuPlatformSupport() override { | 352 GpuPlatformSupport* GetGpuPlatformSupport() override { |
| 353 return gpu_platform_support_.get(); | 353 return gpu_platform_support_.get(); |
| 354 } | 354 } |
| 355 GpuPlatformSupportHost* GetGpuPlatformSupportHost() override { | 355 GpuPlatformSupportHost* GetGpuPlatformSupportHost() override { |
| 356 return gpu_platform_support_host_.get(); | 356 return gpu_platform_support_host_.get(); |
| 357 } | 357 } |
| 358 scoped_ptr<SystemInputInjector> CreateSystemInputInjector() override { |
| 359 return nullptr; // no input injection support. |
| 360 } |
| 358 scoped_ptr<PlatformWindow> CreatePlatformWindow( | 361 scoped_ptr<PlatformWindow> CreatePlatformWindow( |
| 359 PlatformWindowDelegate* delegate, | 362 PlatformWindowDelegate* delegate, |
| 360 const gfx::Rect& bounds) override { | 363 const gfx::Rect& bounds) override { |
| 361 return make_scoped_ptr<PlatformWindow>( | 364 return make_scoped_ptr<PlatformWindow>( |
| 362 new EgltestWindow(delegate, | 365 new EgltestWindow(delegate, |
| 363 &eglplatform_shim_, | 366 &eglplatform_shim_, |
| 364 event_factory_ozone_.get(), | 367 event_factory_ozone_.get(), |
| 365 bounds)); | 368 bounds)); |
| 366 } | 369 } |
| 367 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { | 370 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 | 405 |
| 403 } // namespace | 406 } // namespace |
| 404 | 407 |
| 405 OzonePlatform* CreateOzonePlatformEgltest() { | 408 OzonePlatform* CreateOzonePlatformEgltest() { |
| 406 OzonePlatformEgltest* platform = new OzonePlatformEgltest; | 409 OzonePlatformEgltest* platform = new OzonePlatformEgltest; |
| 407 platform->Initialize(); | 410 platform->Initialize(); |
| 408 return platform; | 411 return platform; |
| 409 } | 412 } |
| 410 | 413 |
| 411 } // namespace ui | 414 } // namespace ui |
| OLD | NEW |