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

Unified Diff: mojo/services/view_manager/root_node_manager.cc

Issue 316713002: Wire input events through the ViewManagerClient interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5fa916830c8c26816134d958fb62f293c63f4148..b5fb8c5857f0e1aae5f48a8cc419098ab08142f3 100644
--- a/mojo/services/view_manager/root_node_manager.cc
+++ b/mojo/services/view_manager/root_node_manager.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "mojo/public/interfaces/service_provider/service_provider.mojom.h"
+#include "mojo/services/view_manager/view.h"
#include "mojo/services/view_manager/view_manager_connection.h"
#include "ui/aura/env.h"
@@ -197,6 +198,11 @@ void RootNodeManager::OnNodeViewReplaced(const Node* node,
ProcessNodeViewReplaced(node, new_view, old_view);
}
+void RootNodeManager::OnViewInputEvent(const View* view,
+ const ui::Event* event) {
+ GetConnection(view->id().connection_id)->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/test_change_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698