| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/wayland/ozone_platform_wayland.h" | 5 #include "ui/ozone/platform/wayland/ozone_platform_wayland.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "ui/display/fake_display_delegate.h" | 8 #include "ui/display/fake_display_delegate.h" |
| 9 #include "ui/ozone/common/stub_overlay_manager.h" | 9 #include "ui/ozone/common/stub_overlay_manager.h" |
| 10 #include "ui/ozone/platform/wayland/wayland_connection.h" | 10 #include "ui/ozone/platform/wayland/wayland_connection.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 std::unique_ptr<PlatformWindow> CreatePlatformWindow( | 53 std::unique_ptr<PlatformWindow> CreatePlatformWindow( |
| 54 PlatformWindowDelegate* delegate, | 54 PlatformWindowDelegate* delegate, |
| 55 const gfx::Rect& bounds) override { | 55 const gfx::Rect& bounds) override { |
| 56 auto window = | 56 auto window = |
| 57 base::MakeUnique<WaylandWindow>(delegate, connection_.get(), bounds); | 57 base::MakeUnique<WaylandWindow>(delegate, connection_.get(), bounds); |
| 58 if (!window->Initialize()) | 58 if (!window->Initialize()) |
| 59 return nullptr; | 59 return nullptr; |
| 60 return std::move(window); | 60 return std::move(window); |
| 61 } | 61 } |
| 62 | 62 |
| 63 std::unique_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() | 63 std::unique_ptr<display::NativeDisplayDelegate> CreateNativeDisplayDelegate() |
| 64 override { | 64 override { |
| 65 return base::MakeUnique<display::FakeDisplayDelegate>(); | 65 return base::MakeUnique<display::FakeDisplayDelegate>(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void InitializeUI() override { | 68 void InitializeUI() override { |
| 69 InitParams default_params; | 69 InitParams default_params; |
| 70 InitializeUI(default_params); | 70 InitializeUI(default_params); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void InitializeUI(const InitParams& args) override { | 73 void InitializeUI(const InitParams& args) override { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 DISALLOW_COPY_AND_ASSIGN(OzonePlatformWayland); | 114 DISALLOW_COPY_AND_ASSIGN(OzonePlatformWayland); |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 } // namespace | 117 } // namespace |
| 118 | 118 |
| 119 OzonePlatform* CreateOzonePlatformWayland() { | 119 OzonePlatform* CreateOzonePlatformWayland() { |
| 120 return new OzonePlatformWayland; | 120 return new OzonePlatformWayland; |
| 121 } | 121 } |
| 122 | 122 |
| 123 } // namespace ui | 123 } // namespace ui |
| OLD | NEW |