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

Unified Diff: mojo/services/public/cpp/view_manager/view_observer.h

Issue 621903004: Adds View::visible() and IsDrawn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 6 years, 3 months 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
« no previous file with comments | « mojo/services/public/cpp/view_manager/view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/public/cpp/view_manager/view_observer.h
diff --git a/mojo/services/public/cpp/view_manager/view_observer.h b/mojo/services/public/cpp/view_manager/view_observer.h
index 2be9dbcdfe3c325a50dee5f6e205f4dd1e880adb..1a2ab7e2283b176a43e499daaa16b258a6d54a59 100644
--- a/mojo/services/public/cpp/view_manager/view_observer.h
+++ b/mojo/services/public/cpp/view_manager/view_observer.h
@@ -64,6 +64,14 @@ class ViewObserver {
virtual void OnViewInputEvent(View* view, const EventPtr& event) {}
+ virtual void OnViewVisibilityChanging(View* view) {}
+ virtual void OnViewVisibilityChanged(View* view) {}
+
+ // Sent when the drawn state changes. This is only sent for the root nodes
+ // when embedded.
+ virtual void OnViewDrawnChanging(View* view) {}
+ virtual void OnViewDrawnChanged(View* view) {}
+
protected:
virtual ~ViewObserver() {}
};
« no previous file with comments | « mojo/services/public/cpp/view_manager/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698