| 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_CLIENT_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_SURFACE_CLIENT_H_ |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_SURFACE_CLIENT_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_SURFACE_CLIENT_H_ |
| 7 | 7 |
| 8 #include "mojo/public/cpp/bindings/array.h" |
| 9 |
| 10 namespace cc { |
| 11 struct ReturnedResource; |
| 12 } |
| 13 |
| 8 namespace mus { | 14 namespace mus { |
| 9 | 15 |
| 10 class WindowSurface; | 16 class WindowSurface; |
| 11 | 17 |
| 12 class WindowSurfaceClient { | 18 class WindowSurfaceClient { |
| 13 public: | 19 public: |
| 14 virtual void OnResourcesReturned( | 20 virtual void OnResourcesReturned( |
| 15 WindowSurface* surface, | 21 WindowSurface* surface, |
| 16 mojo::Array<cc::ReturnedResource> resources) = 0; | 22 mojo::Array<cc::ReturnedResource> resources) = 0; |
| 17 | 23 |
| 18 protected: | 24 protected: |
| 19 virtual ~WindowSurfaceClient() {} | 25 virtual ~WindowSurfaceClient() {} |
| 20 }; | 26 }; |
| 21 | 27 |
| 22 } // namespace mus | 28 } // namespace mus |
| 23 | 29 |
| 24 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_SURFACE_CLIENT_H_ | 30 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_SURFACE_CLIENT_H_ |
| OLD | NEW |