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

Unified Diff: ui/views/view_observer.h

Issue 2750633004: Adds code to isolate use-after-free in Views (Closed)
Patch Set: rename to observed_view 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
« no previous file with comments | « 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..5876588d0e5767f9876fa41edd9ccbcb991577d8 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* observed_view) {}
msw 2017/03/14 20:37:55 nit: Make the override decl/def match.
sky 2017/03/14 21:00:59 I don't think the style guide requires that, and i
msw 2017/03/14 21:15:20 fair enough.
+
protected:
virtual ~ViewObserver() {}
};
« no previous file with comments | « ui/views/view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698