| 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" | 
|   11 #include "base/macros.h" |   11 #include "base/macros.h" | 
|   12 #include "chromecast/public/cast_egl_platform.h" |   12 #include "chromecast/public/cast_egl_platform.h" | 
|   13 #include "chromecast/public/cast_egl_platform_shlib.h" |   13 #include "chromecast/public/cast_egl_platform_shlib.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/platform/cast/gpu_platform_support_cast.h" |   15 #include "ui/ozone/platform/cast/gpu_platform_support_cast.h" | 
|   16 #include "ui/ozone/platform/cast/overlay_manager_cast.h" |   16 #include "ui/ozone/platform/cast/overlay_manager_cast.h" | 
|   17 #include "ui/ozone/platform/cast/platform_window_cast.h" |   17 #include "ui/ozone/platform/cast/platform_window_cast.h" | 
|   18 #include "ui/ozone/platform/cast/surface_factory_cast.h" |   18 #include "ui/ozone/platform/cast/surface_factory_cast.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_host.h" |   20 #include "ui/ozone/public/gpu_platform_support_host.h" | 
|   21 #include "ui/ozone/public/input_controller.h" |   21 #include "ui/ozone/public/input_controller.h" | 
|   22 #include "ui/ozone/public/ozone_platform.h"  // nogncheck |   22 #include "ui/ozone/public/ozone_platform.h" | 
|   23 #include "ui/ozone/public/system_input_injector.h" |   23 #include "ui/ozone/public/system_input_injector.h" | 
|   24  |   24  | 
|   25 using chromecast::CastEglPlatform; |   25 using chromecast::CastEglPlatform; | 
|   26  |   26  | 
|   27 namespace ui { |   27 namespace ui { | 
|   28 namespace { |   28 namespace { | 
|   29  |   29  | 
|   30 base::LazyInstance<scoped_ptr<GpuPlatformSupport>> g_gpu_platform_support = |   30 base::LazyInstance<scoped_ptr<GpuPlatformSupport>> g_gpu_platform_support = | 
|   31     LAZY_INSTANCE_INITIALIZER; |   31     LAZY_INSTANCE_INITIALIZER; | 
|   32  |   32  | 
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  110  |  110  | 
|  111 OzonePlatform* CreateOzonePlatformCast() { |  111 OzonePlatform* CreateOzonePlatformCast() { | 
|  112   const std::vector<std::string>& argv = |  112   const std::vector<std::string>& argv = | 
|  113       base::CommandLine::ForCurrentProcess()->argv(); |  113       base::CommandLine::ForCurrentProcess()->argv(); | 
|  114   scoped_ptr<chromecast::CastEglPlatform> platform( |  114   scoped_ptr<chromecast::CastEglPlatform> platform( | 
|  115       chromecast::CastEglPlatformShlib::Create(argv)); |  115       chromecast::CastEglPlatformShlib::Create(argv)); | 
|  116   return new OzonePlatformCast(std::move(platform)); |  116   return new OzonePlatformCast(std::move(platform)); | 
|  117 } |  117 } | 
|  118  |  118  | 
|  119 }  // namespace ui |  119 }  // namespace ui | 
| OLD | NEW |