OLD | NEW |
---|---|
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 Loading... | |
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_ |
OLD | NEW |