| 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_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ |
| 6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const Rect& new_bounds) {} | 54 const Rect& new_bounds) {} |
| 55 virtual void OnViewBoundsChanged(View* view, | 55 virtual void OnViewBoundsChanged(View* view, |
| 56 const Rect& old_bounds, | 56 const Rect& old_bounds, |
| 57 const Rect& new_bounds) {} | 57 const Rect& new_bounds) {} |
| 58 | 58 |
| 59 virtual void OnViewViewportMetricsChanged(View* view, | 59 virtual void OnViewViewportMetricsChanged(View* view, |
| 60 const ViewportMetrics& old_bounds, | 60 const ViewportMetrics& old_bounds, |
| 61 const ViewportMetrics& new_bounds) { | 61 const ViewportMetrics& new_bounds) { |
| 62 } | 62 } |
| 63 | 63 |
| 64 virtual void OnCaptureChanged(View* gained_capture, View* lost_capture) {} | 64 virtual void OnViewCaptureChanged(View* gained_capture, View* lost_capture) {} |
| 65 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {} | 65 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {} |
| 66 virtual void OnViewActivationChanged(View* gained_active, View* lost_active) { | 66 virtual void OnViewActivationChanged(View* gained_active, View* lost_active) { |
| 67 } | 67 } |
| 68 | 68 |
| 69 virtual void OnViewInputEvent(View* view, const EventPtr& event) {} | 69 virtual void OnViewInputEvent(View* view, const EventPtr& event) {} |
| 70 | 70 |
| 71 virtual void OnViewVisibilityChanging(View* view) {} | 71 virtual void OnViewVisibilityChanging(View* view) {} |
| 72 virtual void OnViewVisibilityChanged(View* view) {} | 72 virtual void OnViewVisibilityChanged(View* view) {} |
| 73 | 73 |
| 74 // Invoked when this View's shared properties have changed. This can either | 74 // Invoked when this View's shared properties have changed. This can either |
| (...skipping 24 matching lines...) Expand all Loading... |
| 99 virtual void OnViewDrawnChanging(View* view) {} | 99 virtual void OnViewDrawnChanging(View* view) {} |
| 100 virtual void OnViewDrawnChanged(View* view) {} | 100 virtual void OnViewDrawnChanged(View* view) {} |
| 101 | 101 |
| 102 protected: | 102 protected: |
| 103 virtual ~ViewObserver() {} | 103 virtual ~ViewObserver() {} |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace mojo | 106 } // namespace mojo |
| 107 | 107 |
| 108 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ | 108 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_OBSERVER_H_ |
| OLD | NEW |