| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual void OnViewInputEvent(View* view, const EventPtr& event) {} | 61 virtual void OnViewInputEvent(View* view, const EventPtr& event) {} |
| 62 | 62 |
| 63 virtual void OnViewVisibilityChanging(View* view) {} | 63 virtual void OnViewVisibilityChanging(View* view) {} |
| 64 virtual void OnViewVisibilityChanged(View* view) {} | 64 virtual void OnViewVisibilityChanged(View* view) {} |
| 65 | 65 |
| 66 virtual void OnViewPropertyChanged(View* view, | 66 virtual void OnViewPropertyChanged(View* view, |
| 67 const std::string& name, | 67 const std::string& name, |
| 68 const std::vector<uint8_t>* old_data, | 68 const std::vector<uint8_t>* old_data, |
| 69 const std::vector<uint8_t>* new_data) {} | 69 const std::vector<uint8_t>* new_data) {} |
| 70 | 70 |
| 71 virtual void OnViewEmbeddedAppDisconnected(View* view) {} |
| 72 |
| 71 // Sent when the drawn state changes. This is only sent for the root nodes | 73 // Sent when the drawn state changes. This is only sent for the root nodes |
| 72 // when embedded. | 74 // when embedded. |
| 73 virtual void OnViewDrawnChanging(View* view) {} | 75 virtual void OnViewDrawnChanging(View* view) {} |
| 74 virtual void OnViewDrawnChanged(View* view) {} | 76 virtual void OnViewDrawnChanged(View* view) {} |
| 75 | 77 |
| 76 protected: | 78 protected: |
| 77 virtual ~ViewObserver() {} | 79 virtual ~ViewObserver() {} |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 } // namespace mojo | 82 } // namespace mojo |
| 81 | 83 |
| 82 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ | 84 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ |
| OLD | NEW |