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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 scoped_ptr<SystemInputInjector> CreateSystemInputInjector() override { | 347 scoped_ptr<SystemInputInjector> CreateSystemInputInjector() override { |
348 return nullptr; // no input injection support. | 348 return nullptr; // no input injection support. |
349 } | 349 } |
350 scoped_ptr<PlatformWindow> CreatePlatformWindow( | 350 scoped_ptr<PlatformWindow> CreatePlatformWindow( |
351 PlatformWindowDelegate* delegate, | 351 PlatformWindowDelegate* delegate, |
352 const gfx::Rect& bounds) override { | 352 const gfx::Rect& bounds) override { |
353 return make_scoped_ptr<PlatformWindow>(new EgltestWindow( | 353 return make_scoped_ptr<PlatformWindow>(new EgltestWindow( |
354 delegate, &eglplatform_shim_, event_factory_ozone_.get(), bounds)); | 354 delegate, &eglplatform_shim_, event_factory_ozone_.get(), bounds)); |
355 } | 355 } |
356 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { | 356 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { |
357 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone()); | 357 return make_scoped_ptr(new NativeDisplayDelegateOzone()); |
358 } | 358 } |
359 | 359 |
360 void InitializeUI() override { | 360 void InitializeUI() override { |
361 device_manager_ = CreateDeviceManager(); | 361 device_manager_ = CreateDeviceManager(); |
362 if (!surface_factory_ozone_) | 362 if (!surface_factory_ozone_) |
363 surface_factory_ozone_.reset( | 363 surface_factory_ozone_.reset( |
364 new SurfaceFactoryEgltest(&eglplatform_shim_)); | 364 new SurfaceFactoryEgltest(&eglplatform_shim_)); |
365 KeyboardLayoutEngineManager::SetKeyboardLayoutEngine( | 365 KeyboardLayoutEngineManager::SetKeyboardLayoutEngine( |
366 make_scoped_ptr(new StubKeyboardLayoutEngine())); | 366 make_scoped_ptr(new StubKeyboardLayoutEngine())); |
367 event_factory_ozone_.reset(new EventFactoryEvdev( | 367 event_factory_ozone_.reset(new EventFactoryEvdev( |
(...skipping 26 matching lines...) Expand all Loading... |
394 | 394 |
395 } // namespace | 395 } // namespace |
396 | 396 |
397 OzonePlatform* CreateOzonePlatformEgltest() { | 397 OzonePlatform* CreateOzonePlatformEgltest() { |
398 OzonePlatformEgltest* platform = new OzonePlatformEgltest; | 398 OzonePlatformEgltest* platform = new OzonePlatformEgltest; |
399 platform->Initialize(); | 399 platform->Initialize(); |
400 return platform; | 400 return platform; |
401 } | 401 } |
402 | 402 |
403 } // namespace ui | 403 } // namespace ui |
OLD | NEW |