| 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 COMPONENTS_MUS_PUBLIC_CPP_VIEW_OBSERVER_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_VIEW_OBSERVER_H_ |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_VIEW_OBSERVER_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_VIEW_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "components/mus/public/cpp/view.h" | 10 #include "components/mus/public/cpp/view.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 virtual void OnViewDestroying(View* view) {} | 47 virtual void OnViewDestroying(View* view) {} |
| 48 virtual void OnViewDestroyed(View* view) {} | 48 virtual void OnViewDestroyed(View* view) {} |
| 49 | 49 |
| 50 virtual void OnViewBoundsChanging(View* view, | 50 virtual void OnViewBoundsChanging(View* view, |
| 51 const mojo::Rect& old_bounds, | 51 const mojo::Rect& old_bounds, |
| 52 const mojo::Rect& new_bounds) {} | 52 const mojo::Rect& new_bounds) {} |
| 53 virtual void OnViewBoundsChanged(View* view, | 53 virtual void OnViewBoundsChanged(View* view, |
| 54 const mojo::Rect& old_bounds, | 54 const mojo::Rect& old_bounds, |
| 55 const mojo::Rect& new_bounds) {} | 55 const mojo::Rect& new_bounds) {} |
| 56 virtual void OnViewLostCapture(View* view) {} |
| 56 | 57 |
| 57 virtual void OnViewViewportMetricsChanged( | 58 virtual void OnViewViewportMetricsChanged( |
| 58 View* view, | 59 View* view, |
| 59 const mojo::ViewportMetrics& old_metrics, | 60 const mojo::ViewportMetrics& old_metrics, |
| 60 const mojo::ViewportMetrics& new_metrics) {} | 61 const mojo::ViewportMetrics& new_metrics) {} |
| 61 | 62 |
| 62 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {} | 63 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {} |
| 63 | 64 |
| 64 virtual void OnViewInputEvent(View* view, const mojo::EventPtr& event) {} | 65 virtual void OnViewInputEvent(View* view, const mojo::EventPtr& event) {} |
| 65 | 66 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 93 virtual void OnViewDrawnChanging(View* view) {} | 94 virtual void OnViewDrawnChanging(View* view) {} |
| 94 virtual void OnViewDrawnChanged(View* view) {} | 95 virtual void OnViewDrawnChanged(View* view) {} |
| 95 | 96 |
| 96 protected: | 97 protected: |
| 97 virtual ~ViewObserver() {} | 98 virtual ~ViewObserver() {} |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 } // namespace mus | 101 } // namespace mus |
| 101 | 102 |
| 102 #endif // COMPONENTS_MUS_PUBLIC_CPP_VIEW_OBSERVER_H_ | 103 #endif // COMPONENTS_MUS_PUBLIC_CPP_VIEW_OBSERVER_H_ |
| OLD | NEW |