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_VIEW_MANAGER_PUBLIC_CPP_VIEW_SURFACE_CLIENT_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_VIEW_SURFACE_CLIENT_H_ |
6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_SURFACE_CLIENT_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_VIEW_SURFACE_CLIENT_H_ |
7 | 7 |
8 namespace mojo { | 8 namespace mojo { |
9 | 9 |
10 class ViewSurface; | 10 class ViewSurface; |
11 | 11 |
12 class ViewSurfaceClient { | 12 class ViewSurfaceClient { |
13 public: | 13 public: |
14 virtual void OnResourcesReturned( | 14 virtual void OnResourcesReturned( |
15 ViewSurface* surface, | 15 ViewSurface* surface, |
16 mojo::Array<mojo::ReturnedResourcePtr> resources) = 0; | 16 mojo::Array<mojo::ReturnedResourcePtr> resources) = 0; |
17 | 17 |
18 protected: | 18 protected: |
19 ~ViewSurfaceClient() {} | 19 ~ViewSurfaceClient() {} |
20 }; | 20 }; |
21 | 21 |
22 } // namespace mojo | 22 } // namespace mojo |
23 | 23 |
24 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_SURFACE_CLIENT_H_ | 24 #endif // COMPONENTS_MUS_PUBLIC_CPP_VIEW_SURFACE_CLIENT_H_ |
OLD | NEW |