| Index: components/view_manager/server_view_delegate.h
|
| diff --git a/components/view_manager/server_view_delegate.h b/components/view_manager/server_view_delegate.h
|
| index e2f92dfef9f38dc5119d3bb7afe079ac77c0a9c5..2611987c2711891d39afce8964d6289192e93724 100644
|
| --- a/components/view_manager/server_view_delegate.h
|
| +++ b/components/view_manager/server_view_delegate.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef COMPONENTS_VIEW_MANAGER_SERVER_VIEW_DELEGATE_H_
|
| #define COMPONENTS_VIEW_MANAGER_SERVER_VIEW_DELEGATE_H_
|
|
|
| +#include "components/view_manager/public/interfaces/compositor_frame.mojom.h"
|
| #include "components/view_manager/public/interfaces/view_manager_constants.mojom.h"
|
|
|
| namespace gfx {
|
| @@ -15,6 +16,10 @@ namespace mojo {
|
| class ViewportMetrics;
|
| }
|
|
|
| +namespace surfaces {
|
| +class SurfacesState;
|
| +}
|
| +
|
| namespace view_manager {
|
|
|
| class ServerView;
|
| @@ -27,6 +32,8 @@ class ServerView;
|
| // ServerViewDelegate gets non-const arguments.
|
| class ServerViewDelegate {
|
| public:
|
| + virtual surfaces::SurfacesState* GetSurfacesState() = 0;
|
| +
|
| // Invoked when a view is about to be destroyed; before any of the children
|
| // have been removed and before the view has been removed from its parent.
|
| virtual void PrepareToDestroyView(ServerView* view) = 0;
|
|
|