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 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_SURFACE_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_SURFACE_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_SURFACE_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_SURFACE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
14 #include "components/mus/public/interfaces/surface.mojom.h" | |
15 #include "mojo/public/cpp/bindings/binding.h" | 14 #include "mojo/public/cpp/bindings/binding.h" |
16 #include "mojo/public/cpp/bindings/interface_ptr_info.h" | 15 #include "mojo/public/cpp/bindings/interface_ptr_info.h" |
| 16 #include "services/ui/public/interfaces/surface.mojom.h" |
17 | 17 |
18 namespace mus { | 18 namespace mus { |
19 | 19 |
20 class WindowSurfaceBinding; | 20 class WindowSurfaceBinding; |
21 class WindowSurfaceClient; | 21 class WindowSurfaceClient; |
22 class Window; | 22 class Window; |
23 | 23 |
24 // A WindowSurface is wrapper to simplify submitting CompositorFrames to | 24 // A WindowSurface is wrapper to simplify submitting CompositorFrames to |
25 // Windows, and receiving ReturnedResources. | 25 // Windows, and receiving ReturnedResources. |
26 class WindowSurface : public mojom::SurfaceClient { | 26 class WindowSurface : public mojom::SurfaceClient { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 mojo::InterfacePtrInfo<mojom::SurfaceClient> surface_client); | 75 mojo::InterfacePtrInfo<mojom::SurfaceClient> surface_client); |
76 | 76 |
77 mojo::InterfaceRequest<mojom::Surface> surface_request_; | 77 mojo::InterfaceRequest<mojom::Surface> surface_request_; |
78 mojo::InterfacePtrInfo<mojom::SurfaceClient> surface_client_; | 78 mojo::InterfacePtrInfo<mojom::SurfaceClient> surface_client_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(WindowSurfaceBinding); | 80 DISALLOW_COPY_AND_ASSIGN(WindowSurfaceBinding); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace mus | 83 } // namespace mus |
84 | 84 |
85 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_SURFACE_H_ | 85 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_SURFACE_H_ |
OLD | NEW |