OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_V2_PUBLIC_VIEW_OBSERVER_H_ | 5 #ifndef UI_V2_PUBLIC_VIEW_OBSERVER_H_ |
6 #define UI_V2_PUBLIC_VIEW_OBSERVER_H_ | 6 #define UI_V2_PUBLIC_VIEW_OBSERVER_H_ |
7 | 7 |
8 #include "ui/v2/public/v2_export.h" | 8 #include "ui/v2/public/v2_export.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // 3. |target|'s parent hierarchy in its |new_parent|. | 45 // 3. |target|'s parent hierarchy in its |new_parent|. |
46 // (only for Changed notifications). | 46 // (only for Changed notifications). |
47 // This sequence is performed via the OnTreeChange notification below before | 47 // This sequence is performed via the OnTreeChange notification below before |
48 // and after the change is committed. | 48 // and after the change is committed. |
49 virtual void OnViewTreeChange(const TreeChangeParams& params) {} | 49 virtual void OnViewTreeChange(const TreeChangeParams& params) {} |
50 | 50 |
51 // TODO(beng): stacking change notification? | 51 // TODO(beng): stacking change notification? |
52 | 52 |
53 // Disposition. | 53 // Disposition. |
54 | 54 |
55 virtual void OnViewDestroying() {} | 55 virtual void OnViewDestroy(View* view, DispositionChangePhase phase) {} |
56 virtual void OnViewDestroyed() {} | |
57 | 56 |
58 virtual void OnViewBoundsChanged(const gfx::Rect& old_bounds, | 57 virtual void OnViewBoundsChanged(View* view, |
| 58 const gfx::Rect& old_bounds, |
59 const gfx::Rect& new_bounds) {} | 59 const gfx::Rect& new_bounds) {} |
60 | 60 |
61 virtual void OnViewVisibilityChanging() {} | 61 virtual void OnViewVisibilityChange(View* view, |
62 virtual void OnViewVisibilityChanged() {} | 62 DispositionChangePhase phase) {} |
63 | 63 |
64 protected: | 64 protected: |
65 virtual ~ViewObserver() {} | 65 virtual ~ViewObserver() {} |
66 }; | 66 }; |
67 | 67 |
68 } // namespace v2 | 68 } // namespace v2 |
69 | 69 |
70 #endif // UI_V2_PUBLIC_VIEW_OBSERVER_H_ | 70 #endif // UI_V2_PUBLIC_VIEW_OBSERVER_H_ |
OLD | NEW |