Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: ui/ozone/platform/egltest/ozone_platform_egltest.cc

Issue 922923002: ui: Cleanup the usage of scoped_ptr throughout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/ozone_platform_gbm.cc ('k') | ui/ozone/platform/test/ozone_platform_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698