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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 void set_delegate(Delegate* delegate) { delegate_ = delegate; } | 94 void set_delegate(Delegate* delegate) { delegate_ = delegate; } |
95 | 95 |
96 std::vector<Change>* changes() { return &changes_; } | 96 std::vector<Change>* changes() { return &changes_; } |
97 | 97 |
98 // Each of these functions generate a Change. There is one per | 98 // Each of these functions generate a Change. There is one per |
99 // ViewManagerClient function. | 99 // ViewManagerClient function. |
100 void OnViewManagerConnectionEstablished(ConnectionSpecificId connection_id, | 100 void OnViewManagerConnectionEstablished(ConnectionSpecificId connection_id, |
101 const String& creator_url, | 101 const String& creator_url, |
102 Id next_server_change_id, | 102 Id next_server_change_id, |
103 Array<NodeDataPtr> nodes); | 103 Array<NodeDataPtr> nodes); |
104 void OnRootsAdded(Array<NodeDataPtr> nodes); | 104 void OnRootAdded(Array<NodeDataPtr> nodes); |
105 void OnServerChangeIdAdvanced(Id change_id); | 105 void OnServerChangeIdAdvanced(Id change_id); |
106 void OnNodeBoundsChanged(Id node_id, RectPtr old_bounds, RectPtr new_bounds); | 106 void OnNodeBoundsChanged(Id node_id, RectPtr old_bounds, RectPtr new_bounds); |
107 void OnNodeHierarchyChanged(Id node_id, | 107 void OnNodeHierarchyChanged(Id node_id, |
108 Id new_parent_id, | 108 Id new_parent_id, |
109 Id old_parent_id, | 109 Id old_parent_id, |
110 Id server_change_id, | 110 Id server_change_id, |
111 Array<NodeDataPtr> nodes); | 111 Array<NodeDataPtr> nodes); |
112 void OnNodeReordered(Id node_id, | 112 void OnNodeReordered(Id node_id, |
113 Id relative_node_id, | 113 Id relative_node_id, |
114 OrderDirection direction, | 114 OrderDirection direction, |
(...skipping 10 matching lines...) Expand all Loading... |
125 std::vector<Change> changes_; | 125 std::vector<Change> changes_; |
126 | 126 |
127 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); | 127 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); |
128 }; | 128 }; |
129 | 129 |
130 } // namespace service | 130 } // namespace service |
131 } // namespace view_manager | 131 } // namespace view_manager |
132 } // namespace mojo | 132 } // namespace mojo |
133 | 133 |
134 #endif // MOJO_SERVICES_VIEW_MANAGER_TEST_CHANGE_TRACKER_H_ | 134 #endif // MOJO_SERVICES_VIEW_MANAGER_TEST_CHANGE_TRACKER_H_ |
OLD | NEW |