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 "components/mus/public/cpp/window_surface.h" | 5 #include "components/mus/public/cpp/window_surface.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "components/mus/public/cpp/surfaces/surfaces_type_converters.h" |
8 #include "components/mus/public/cpp/window_surface_client.h" | 9 #include "components/mus/public/cpp/window_surface_client.h" |
9 #include "mojo/converters/surfaces/surfaces_type_converters.h" | |
10 | 10 |
11 namespace mus { | 11 namespace mus { |
12 | 12 |
13 // static | 13 // static |
14 std::unique_ptr<WindowSurface> WindowSurface::Create( | 14 std::unique_ptr<WindowSurface> WindowSurface::Create( |
15 std::unique_ptr<WindowSurfaceBinding>* surface_binding) { | 15 std::unique_ptr<WindowSurfaceBinding>* surface_binding) { |
16 mojom::SurfacePtr surface; | 16 mojom::SurfacePtr surface; |
17 mojom::SurfaceClientPtr surface_client; | 17 mojom::SurfaceClientPtr surface_client; |
18 mojo::InterfaceRequest<mojom::SurfaceClient> surface_client_request = | 18 mojo::InterfaceRequest<mojom::SurfaceClient> surface_client_request = |
19 GetProxy(&surface_client); | 19 GetProxy(&surface_client); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 WindowSurfaceBinding::~WindowSurfaceBinding() {} | 62 WindowSurfaceBinding::~WindowSurfaceBinding() {} |
63 | 63 |
64 WindowSurfaceBinding::WindowSurfaceBinding( | 64 WindowSurfaceBinding::WindowSurfaceBinding( |
65 mojo::InterfaceRequest<mojom::Surface> surface_request, | 65 mojo::InterfaceRequest<mojom::Surface> surface_request, |
66 mojo::InterfacePtrInfo<mojom::SurfaceClient> surface_client) | 66 mojo::InterfacePtrInfo<mojom::SurfaceClient> surface_client) |
67 : surface_request_(std::move(surface_request)), | 67 : surface_request_(std::move(surface_request)), |
68 surface_client_(std::move(surface_client)) {} | 68 surface_client_(std::move(surface_client)) {} |
69 | 69 |
70 } // namespace mus | 70 } // namespace mus |
OLD | NEW |