| 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_TEST_CHANGE_TRACKER_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_TEST_CHANGE_TRACKER_H_ |
| 6 #define MOJO_SERVICES_VIEW_MANAGER_TEST_CHANGE_TRACKER_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_TEST_CHANGE_TRACKER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 Id new_parent_id, | 126 Id new_parent_id, |
| 127 Id old_parent_id, | 127 Id old_parent_id, |
| 128 Array<ViewDataPtr> views); | 128 Array<ViewDataPtr> views); |
| 129 void OnViewReordered(Id view_id, | 129 void OnViewReordered(Id view_id, |
| 130 Id relative_view_id, | 130 Id relative_view_id, |
| 131 OrderDirection direction); | 131 OrderDirection direction); |
| 132 void OnViewDeleted(Id view_id); | 132 void OnViewDeleted(Id view_id); |
| 133 void OnViewVisibilityChanged(Id view_id, bool visible); | 133 void OnViewVisibilityChanged(Id view_id, bool visible); |
| 134 void OnViewDrawnStateChanged(Id view_id, bool drawn); | 134 void OnViewDrawnStateChanged(Id view_id, bool drawn); |
| 135 void OnViewInputEvent(Id view_id, EventPtr event); | 135 void OnViewInputEvent(Id view_id, EventPtr event); |
| 136 void OnViewPropertyChanged(Id view_id, | 136 void OnViewSharedPropertyChanged(Id view_id, |
| 137 String name, | 137 String name, |
| 138 Array<uint8_t> data); | 138 Array<uint8_t> data); |
| 139 void DelegateEmbed(const String& url); | 139 void DelegateEmbed(const String& url); |
| 140 | 140 |
| 141 private: | 141 private: |
| 142 void AddChange(const Change& change); | 142 void AddChange(const Change& change); |
| 143 | 143 |
| 144 Delegate* delegate_; | 144 Delegate* delegate_; |
| 145 std::vector<Change> changes_; | 145 std::vector<Change> changes_; |
| 146 | 146 |
| 147 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); | 147 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 } // namespace service | 150 } // namespace service |
| 151 } // namespace mojo | 151 } // namespace mojo |
| 152 | 152 |
| 153 #endif // MOJO_SERVICES_VIEW_MANAGER_TEST_CHANGE_TRACKER_H_ | 153 #endif // MOJO_SERVICES_VIEW_MANAGER_TEST_CHANGE_TRACKER_H_ |
| OLD | NEW |