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

Side by Side Diff: ui/views/view_observer.h

Issue 2816193002: Introduce a type of View background that stays in sync with its host (Closed)
Patch Set: one more Created 3 years, 8 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 17 matching lines...) Expand all
28 // Called when View::SetEnabled() is called with a new value. 28 // Called when View::SetEnabled() is called with a new value.
29 virtual void OnViewEnabledChanged(View* observed_view) {} 29 virtual void OnViewEnabledChanged(View* observed_view) {}
30 30
31 // Called when the bounds of |observed_view| change. 31 // Called when the bounds of |observed_view| change.
32 virtual void OnViewBoundsChanged(View* observed_view) {} 32 virtual void OnViewBoundsChanged(View* observed_view) {}
33 33
34 // Called when a child is reordered among its siblings, specifically 34 // Called when a child is reordered among its siblings, specifically
35 // View::ReorderChildView() is called on |observed_view|. 35 // View::ReorderChildView() is called on |observed_view|.
36 virtual void OnChildViewReordered(View* observed_view, View* child) {} 36 virtual void OnChildViewReordered(View* observed_view, View* child) {}
37 37
38 // FIXME
msw 2017/04/14 20:42:17 FIXME
Evan Stade 2017/04/17 15:20:03 Done.
39 virtual void OnViewNativeThemeChanged(View* observed_view) {}
40
38 // Called from ~View. 41 // Called from ~View.
39 virtual void OnViewIsDeleting(View* observed_view) {} 42 virtual void OnViewIsDeleting(View* observed_view) {}
40 43
41 protected: 44 protected:
42 virtual ~ViewObserver() {} 45 virtual ~ViewObserver() {}
43 }; 46 };
44 47
45 } // namespace views 48 } // namespace views
46 49
47 #endif // UI_VIEWS_VIEW_OBSERVER_H_ 50 #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