OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ | 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ |
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ | 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 const gfx::Rect& old_bounds, | 57 const gfx::Rect& old_bounds, |
58 const gfx::Rect& new_bounds) {} | 58 const gfx::Rect& new_bounds) {} |
59 virtual void OnViewBoundsChanged(View* view, | 59 virtual void OnViewBoundsChanged(View* view, |
60 const gfx::Rect& old_bounds, | 60 const gfx::Rect& old_bounds, |
61 const gfx::Rect& new_bounds) {} | 61 const gfx::Rect& new_bounds) {} |
62 | 62 |
63 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {} | 63 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {} |
64 | 64 |
65 virtual void OnViewInputEvent(View* view, const EventPtr& event) {} | 65 virtual void OnViewInputEvent(View* view, const EventPtr& event) {} |
66 | 66 |
| 67 virtual void OnViewVisibilityChanging(View* view) {} |
| 68 virtual void OnViewVisibilityChanged(View* view) {} |
| 69 |
| 70 // Sent when the drawn state changes. This is only sent for the root nodes |
| 71 // when embedded. |
| 72 virtual void OnViewDrawnChanging(View* view) {} |
| 73 virtual void OnViewDrawnChanged(View* view) {} |
| 74 |
67 protected: | 75 protected: |
68 virtual ~ViewObserver() {} | 76 virtual ~ViewObserver() {} |
69 }; | 77 }; |
70 | 78 |
71 } // namespace mojo | 79 } // namespace mojo |
72 | 80 |
73 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ | 81 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ |
OLD | NEW |