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

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

Issue 304323005: Revert 273723 "Wire input events through the ViewManagerClient i..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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_manager_connection.h" 9 #include "mojo/services/view_manager/view_manager_connection.h"
10 #include "ui/aura/env.h" 10 #include "ui/aura/env.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void RootNodeManager::ProcessNodeViewReplaced(const Node* node, 120 void RootNodeManager::ProcessNodeViewReplaced(const Node* node,
121 const View* new_view, 121 const View* new_view,
122 const View* old_view) { 122 const View* old_view) {
123 for (ConnectionMap::iterator i = connection_map_.begin(); 123 for (ConnectionMap::iterator i = connection_map_.begin();
124 i != connection_map_.end(); ++i) { 124 i != connection_map_.end(); ++i) {
125 i->second->ProcessNodeViewReplaced(node, new_view, old_view, 125 i->second->ProcessNodeViewReplaced(node, new_view, old_view,
126 IsChangeSource(i->first)); 126 IsChangeSource(i->first));
127 } 127 }
128 } 128 }
129 129
130 void RootNodeManager::ProcessViewInputEvent(const View* view,
131 const ui::Event* event) {
132 for (ConnectionMap::iterator i = connection_map_.begin();
133 i != connection_map_.end(); ++i) {
134 i->second->ProcessViewInputEvent(view, event);
135 }
136 }
137
138 void RootNodeManager::ProcessNodeDeleted(const NodeId& node) { 130 void RootNodeManager::ProcessNodeDeleted(const NodeId& node) {
139 for (ConnectionMap::iterator i = connection_map_.begin(); 131 for (ConnectionMap::iterator i = connection_map_.begin();
140 i != connection_map_.end(); ++i) { 132 i != connection_map_.end(); ++i) {
141 i->second->ProcessNodeDeleted(node, next_server_change_id_, 133 i->second->ProcessNodeDeleted(node, next_server_change_id_,
142 IsChangeSource(i->first)); 134 IsChangeSource(i->first));
143 } 135 }
144 } 136 }
145 137
146 void RootNodeManager::ProcessViewDeleted(const ViewId& view) { 138 void RootNodeManager::ProcessViewDeleted(const ViewId& view) {
147 for (ConnectionMap::iterator i = connection_map_.begin(); 139 for (ConnectionMap::iterator i = connection_map_.begin();
(...skipping 25 matching lines...) Expand all
173 if (!root_view_manager_.in_setup()) 165 if (!root_view_manager_.in_setup())
174 ProcessNodeHierarchyChanged(node, new_parent, old_parent); 166 ProcessNodeHierarchyChanged(node, new_parent, old_parent);
175 } 167 }
176 168
177 void RootNodeManager::OnNodeViewReplaced(const Node* node, 169 void RootNodeManager::OnNodeViewReplaced(const Node* node,
178 const View* new_view, 170 const View* new_view,
179 const View* old_view) { 171 const View* old_view) {
180 ProcessNodeViewReplaced(node, new_view, old_view); 172 ProcessNodeViewReplaced(node, new_view, old_view);
181 } 173 }
182 174
183 void RootNodeManager::OnViewInputEvent(const View* view,
184 const ui::Event* event) {
185 ProcessViewInputEvent(view, event);
186 }
187
188 } // namespace service 175 } // namespace service
189 } // namespace view_manager 176 } // namespace view_manager
190 } // namespace mojo 177 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698