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

Unified Diff: ui/views/view_observer.h

Issue 2750633004: Adds code to isolate use-after-free in Views (Closed)
Patch Set: feedback Created 3 years, 9 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
« ui/views/focus/focus_manager.cc ('K') | « ui/views/view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view_observer.h
diff --git a/ui/views/view_observer.h b/ui/views/view_observer.h
index c1d69f92cc313e4d73fdb4b6b1124a54ef588e50..2c74338872e1b68ea1d3a13c8b7746679b62bfc4 100644
--- a/ui/views/view_observer.h
+++ b/ui/views/view_observer.h
@@ -33,6 +33,9 @@ class VIEWS_EXPORT ViewObserver {
// parent view. |view| is the child view being moved.
virtual void OnChildViewReordered(View* view) {}
+ // Called from ~View.
+ virtual void OnViewIsDeleting(View* view) {}
+
protected:
virtual ~ViewObserver() {}
};
« ui/views/focus/focus_manager.cc ('K') | « ui/views/view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698