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

Unified Diff: components/mus/view_tree_host_impl.cc

Issue 1328953003: Mandoline: Support transforms and clipping of OOPIFs and events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase works! Created 5 years, 3 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: components/mus/view_tree_host_impl.cc
diff --git a/components/mus/view_tree_host_impl.cc b/components/mus/view_tree_host_impl.cc
index 775c5f98ed35054a12e1c07ef2cd9f605f71efea..cbe7904e53409ddc64fffe9c2787a862070da7e3 100644
--- a/components/mus/view_tree_host_impl.cc
+++ b/components/mus/view_tree_host_impl.cc
@@ -150,7 +150,12 @@ ServerView* ViewTreeHostImpl::GetRootView() {
return root_.get();
}
-void ViewTreeHostImpl::OnEvent(mojo::EventPtr event) {
+void ViewTreeHostImpl::OnEvent(ViewId id, mojo::EventPtr event) {
+ ServerView* view = connection_manager_->GetView(id);
+ if (view) {
+ DispatchInputEventToView(view, event.Pass());
+ return;
+ }
event_dispatcher_.OnEvent(event.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698