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

Unified 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, 7 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 side-by-side diff with in-line comments
Download patch
Index: mojo/services/view_manager/root_node_manager.cc
diff --git a/mojo/services/view_manager/root_node_manager.cc b/mojo/services/view_manager/root_node_manager.cc
index 37cda55d3d2098ad2992392d69680c65491537e5..c57bca97474bd72d0071d1453d0789e7df8d1805 100644
--- a/mojo/services/view_manager/root_node_manager.cc
+++ b/mojo/services/view_manager/root_node_manager.cc
@@ -127,6 +127,14 @@ void RootNodeManager::ProcessNodeViewReplaced(const Node* node,
}
}
+void RootNodeManager::ProcessViewInputEvent(const View* view,
+ const ui::Event* event) {
+ for (ConnectionMap::iterator i = connection_map_.begin();
+ i != connection_map_.end(); ++i) {
+ i->second->ProcessViewInputEvent(view, event);
+ }
+}
+
void RootNodeManager::ProcessNodeDeleted(const NodeId& node) {
for (ConnectionMap::iterator i = connection_map_.begin();
i != connection_map_.end(); ++i) {
@@ -172,6 +180,11 @@ void RootNodeManager::OnNodeViewReplaced(const Node* node,
ProcessNodeViewReplaced(node, new_view, old_view);
}
+void RootNodeManager::OnViewInputEvent(const View* view,
+ const ui::Event* event) {
+ ProcessViewInputEvent(view, event);
+}
+
} // namespace service
} // namespace view_manager
} // namespace mojo
« no previous file with comments | « mojo/services/view_manager/root_node_manager.h ('k') | mojo/services/view_manager/view_manager_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698