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

Side by Side Diff: mojo/services/view_manager/root_node_manager.cc

Issue 327073003: Reorder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 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 #include "mojo/services/view_manager/root_node_manager.h" 5 #include "mojo/services/view_manager/root_node_manager.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "mojo/public/interfaces/service_provider/service_provider.mojom.h" 8 #include "mojo/public/interfaces/service_provider/service_provider.mojom.h"
9 #include "mojo/services/view_manager/view.h" 9 #include "mojo/services/view_manager/view.h"
10 #include "mojo/services/view_manager/view_manager_connection.h" 10 #include "mojo/services/view_manager/view_manager_connection.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 const Node* new_parent, 144 const Node* new_parent,
145 const Node* old_parent) { 145 const Node* old_parent) {
146 for (ConnectionMap::iterator i = connection_map_.begin(); 146 for (ConnectionMap::iterator i = connection_map_.begin();
147 i != connection_map_.end(); ++i) { 147 i != connection_map_.end(); ++i) {
148 i->second->ProcessNodeHierarchyChanged( 148 i->second->ProcessNodeHierarchyChanged(
149 node, new_parent, old_parent, next_server_change_id_, 149 node, new_parent, old_parent, next_server_change_id_,
150 IsChangeSource(i->first)); 150 IsChangeSource(i->first));
151 } 151 }
152 } 152 }
153 153
154 void RootNodeManager::ProcessNodeReorder(const Node* node,
155 const Node* relative_node,
156 const OrderDirection direction) {
157 for (ConnectionMap::iterator i = connection_map_.begin();
158 i != connection_map_.end(); ++i) {
159 i->second->ProcessNodeReorder(
160 node, relative_node, direction, next_server_change_id_,
161 IsChangeSource(i->first));
162 }
163 }
164
154 void RootNodeManager::ProcessNodeViewReplaced(const Node* node, 165 void RootNodeManager::ProcessNodeViewReplaced(const Node* node,
155 const View* new_view, 166 const View* new_view,
156 const View* old_view) { 167 const View* old_view) {
157 for (ConnectionMap::iterator i = connection_map_.begin(); 168 for (ConnectionMap::iterator i = connection_map_.begin();
158 i != connection_map_.end(); ++i) { 169 i != connection_map_.end(); ++i) {
159 i->second->ProcessNodeViewReplaced(node, new_view, old_view, 170 i->second->ProcessNodeViewReplaced(node, new_view, old_view,
160 IsChangeSource(i->first)); 171 IsChangeSource(i->first));
161 } 172 }
162 } 173 }
163 174
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 } 242 }
232 243
233 void RootNodeManager::OnViewInputEvent(const View* view, 244 void RootNodeManager::OnViewInputEvent(const View* view,
234 const ui::Event* event) { 245 const ui::Event* event) {
235 GetConnection(view->id().connection_id)->ProcessViewInputEvent(view, event); 246 GetConnection(view->id().connection_id)->ProcessViewInputEvent(view, event);
236 } 247 }
237 248
238 } // namespace service 249 } // namespace service
239 } // namespace view_manager 250 } // namespace view_manager
240 } // namespace mojo 251 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/view_manager/root_node_manager.h ('k') | mojo/services/view_manager/test_change_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698