Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: mojo/services/view_manager/server_view_delegate.h

Issue 720883003: Adds a CloneAndAnimate function to WindowManagerInternalClient (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Add GetView(ClonedViewId) coverage Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {}
};
« no previous file with comments | « mojo/services/view_manager/server_view.cc ('k') | mojo/services/view_manager/view_coordinate_conversions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698