Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1052)

Side by Side Diff: mojo/services/view_manager/test_change_tracker.h

Issue 396703002: Makes Embed() take a single node (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/root_node_manager.cc ('k') | mojo/services/view_manager/test_change_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698