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

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

Issue 300863003: Wire input events through the ViewManagerClient interface. (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/services/view_manager/view_manager_connection.h" 8 #include "mojo/services/view_manager/view_manager_connection.h"
9 #include "ui/aura/env.h" 9 #include "ui/aura/env.h"
10 10
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void RootNodeManager::ProcessNodeViewReplaced(const Node* node, 105 void RootNodeManager::ProcessNodeViewReplaced(const Node* node,
106 const View* new_view, 106 const View* new_view,
107 const View* old_view) { 107 const View* old_view) {
108 for (ConnectionMap::iterator i = connection_map_.begin(); 108 for (ConnectionMap::iterator i = connection_map_.begin();
109 i != connection_map_.end(); ++i) { 109 i != connection_map_.end(); ++i) {
110 i->second->ProcessNodeViewReplaced(node, new_view, old_view, 110 i->second->ProcessNodeViewReplaced(node, new_view, old_view,
111 IsChangeSource(i->first)); 111 IsChangeSource(i->first));
112 } 112 }
113 } 113 }
114 114
115 void RootNodeManager::ProcessViewInputEvent(const View* view,
116 const ui::Event* event) {
117 for (ConnectionMap::iterator i = connection_map_.begin();
118 i != connection_map_.end(); ++i) {
119 i->second->ProcessViewInputEvent(view, event);
120 }
121 }
122
115 void RootNodeManager::ProcessNodeDeleted(const NodeId& node) { 123 void RootNodeManager::ProcessNodeDeleted(const NodeId& node) {
116 for (ConnectionMap::iterator i = connection_map_.begin(); 124 for (ConnectionMap::iterator i = connection_map_.begin();
117 i != connection_map_.end(); ++i) { 125 i != connection_map_.end(); ++i) {
118 i->second->ProcessNodeDeleted(node, next_server_change_id_, 126 i->second->ProcessNodeDeleted(node, next_server_change_id_,
119 IsChangeSource(i->first)); 127 IsChangeSource(i->first));
120 } 128 }
121 } 129 }
122 130
123 void RootNodeManager::ProcessViewDeleted(const ViewId& view) { 131 void RootNodeManager::ProcessViewDeleted(const ViewId& view) {
124 for (ConnectionMap::iterator i = connection_map_.begin(); 132 for (ConnectionMap::iterator i = connection_map_.begin();
(...skipping 25 matching lines...) Expand all
150 if (!root_view_manager_.in_setup()) 158 if (!root_view_manager_.in_setup())
151 ProcessNodeHierarchyChanged(node, new_parent, old_parent); 159 ProcessNodeHierarchyChanged(node, new_parent, old_parent);
152 } 160 }
153 161
154 void RootNodeManager::OnNodeViewReplaced(const Node* node, 162 void RootNodeManager::OnNodeViewReplaced(const Node* node,
155 const View* new_view, 163 const View* new_view,
156 const View* old_view) { 164 const View* old_view) {
157 ProcessNodeViewReplaced(node, new_view, old_view); 165 ProcessNodeViewReplaced(node, new_view, old_view);
158 } 166 }
159 167
168 void RootNodeManager::OnViewInputEvent(const View* view,
169 const ui::Event* event) {
170 ProcessViewInputEvent(view, event);
171 }
172
173
sky 2014/05/28 19:32:57 nit: only one newline.
160 } // namespace service 174 } // namespace service
161 } // namespace view_manager 175 } // namespace view_manager
162 } // namespace mojo 176 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698