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

Unified Diff: mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc

Issue 338353006: Changes routing of input events in view manager (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 side-by-side diff with in-line comments
Download patch
Index: mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc
diff --git a/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc b/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc
index 772b1d6c10e3e89fd80d6bd795e4c3c901c1f67b..e99d99e1fac8e91492cf7719331316c968cdc434 100644
--- a/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc
+++ b/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc
@@ -775,6 +775,14 @@ void ViewManagerClientImpl::OnViewInputEvent(
ack_callback.Run();
}
+void ViewManagerClientImpl::DispatchOnViewInputEvent(Id view_id,
+ EventPtr event) {
+ // For now blindly bounce the message back to the server. Doing this means the
+ // event is sent to the correct target (|view_id|).
+ // Note: This function is only invoked on the window manager.
+ service_->DispatchOnViewInputEvent(view_id, event.Pass());
+}
+
////////////////////////////////////////////////////////////////////////////////
// ViewManagerClientImpl, private:

Powered by Google App Engine
This is Rietveld 408576698