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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1412923009: Route touch-events for WebViewGuest directly to guest renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address suggestions. Created 5 years, 1 month 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 | « content/browser/renderer_host/render_widget_host_view_base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index e01a4d5484380c82981615cd9ccd33e2f8c18092..58e6396e00b078ef443fcf3fce944adc93a03367 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1593,9 +1593,10 @@ bool WebContentsImpl::PreHandleGestureEvent(
}
RenderWidgetHostInputEventRouter* WebContentsImpl::GetInputEventRouter() {
- // Currently only supported in site per process mode (--site-per-process).
- if (!rwh_input_event_router_.get() && !is_being_destroyed_ &&
- SiteIsolationPolicy::AreCrossProcessFramesPossible())
+ if (!is_being_destroyed_ && GetOuterWebContents())
+ return GetOuterWebContents()->GetInputEventRouter();
kenrb 2015/11/05 17:05:26 If we create an input event router before being at
wjmaclean 2015/11/05 17:46:16 Yes, at present we do leave these around. I though
+
+ if (!rwh_input_event_router_.get() && !is_being_destroyed_)
rwh_input_event_router_.reset(new RenderWidgetHostInputEventRouter);
return rwh_input_event_router_.get();
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698