| Index: mojo/services/view_manager/server_view_delegate.h
|
| diff --git a/mojo/services/view_manager/server_view_delegate.h b/mojo/services/view_manager/server_view_delegate.h
|
| index 2fbe0c0e3fa8e445e0090fc8dca2188a63c82e8c..14dfe7ac041b520cf430d816ec7ff6fab38fd3fd 100644
|
| --- a/mojo/services/view_manager/server_view_delegate.h
|
| +++ b/mojo/services/view_manager/server_view_delegate.h
|
| @@ -16,13 +16,17 @@ class ServerView;
|
|
|
| class ServerViewDelegate {
|
| public:
|
| + // 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 OnWillDestroyView(ServerView* view) = 0;
|
| +
|
| // Invoked at the end of the View's destructor (after it has been removed from
|
| // the hierarchy).
|
| virtual void OnViewDestroyed(const ServerView* view) = 0;
|
|
|
| - virtual void OnWillChangeViewHierarchy(const ServerView* view,
|
| - const ServerView* new_parent,
|
| - const ServerView* old_parent) = 0;
|
| + virtual void OnWillChangeViewHierarchy(ServerView* view,
|
| + ServerView* new_parent,
|
| + ServerView* old_parent) = 0;
|
|
|
| virtual void OnViewHierarchyChanged(const ServerView* view,
|
| const ServerView* new_parent,
|
| @@ -38,13 +42,15 @@ class ServerViewDelegate {
|
| const ServerView* relative,
|
| OrderDirection direction) = 0;
|
|
|
| - virtual void OnWillChangeViewVisibility(const ServerView* view) = 0;
|
| + virtual void OnWillChangeViewVisibility(ServerView* view) = 0;
|
|
|
| virtual void OnViewSharedPropertyChanged(
|
| const ServerView* view,
|
| const std::string& name,
|
| const std::vector<uint8_t>* new_data) = 0;
|
|
|
| + virtual void OnScheduleViewPaint(const ServerView* view) = 0;
|
| +
|
| protected:
|
| virtual ~ServerViewDelegate() {}
|
| };
|
|
|