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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « ui/views/view.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_VIEW_OBSERVER_H_ 5 #ifndef UI_VIEWS_VIEW_OBSERVER_H_
6 #define UI_VIEWS_VIEW_OBSERVER_H_ 6 #define UI_VIEWS_VIEW_OBSERVER_H_
7 7
8 #include "ui/views/views_export.h" 8 #include "ui/views/views_export.h"
9 9
10 namespace views { 10 namespace views {
(...skipping 15 matching lines...) Expand all
26 virtual void OnViewVisibilityChanged(View* view) {} 26 virtual void OnViewVisibilityChanged(View* view) {}
27 27
28 virtual void OnViewEnabledChanged(View* view) {} 28 virtual void OnViewEnabledChanged(View* view) {}
29 29
30 virtual void OnViewBoundsChanged(View* view) {} 30 virtual void OnViewBoundsChanged(View* view) {}
31 31
32 // Invoked whenever a child is moved to another index. This is called on the 32 // Invoked whenever a child is moved to another index. This is called on the
33 // parent view. |view| is the child view being moved. 33 // parent view. |view| is the child view being moved.
34 virtual void OnChildViewReordered(View* view) {} 34 virtual void OnChildViewReordered(View* view) {}
35 35
36 // Called from ~View.
37 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.
38
36 protected: 39 protected:
37 virtual ~ViewObserver() {} 40 virtual ~ViewObserver() {}
38 }; 41 };
39 42
40 } // namespace views 43 } // namespace views
41 44
42 #endif // UI_VIEWS_VIEW_OBSERVER_H_ 45 #endif // UI_VIEWS_VIEW_OBSERVER_H_
OLDNEW
« 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