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

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

Issue 1407173005: Revert of OOPIF: Route keyboard events to focused frame in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@focus-page
Patch Set: Created 5 years, 2 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 | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/test/browser_test_utils.cc » ('j') | 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 f866c138d167035c173c9e997937244420004ce0..6b1407b78e0ace939218a24a5478b0c23d48f1c3 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1590,18 +1590,6 @@
frame_tree_.ReplicatePageFocus(is_focused);
}
-RenderWidgetHostImpl* WebContentsImpl::GetFocusedRenderWidgetHost() {
- if (!SiteIsolationPolicy::AreCrossProcessFramesPossible())
- return GetMainFrame()->GetRenderWidgetHost();
-
- FrameTreeNode* focused_frame = frame_tree_.GetFocusedFrame();
- if (!focused_frame)
- return GetMainFrame()->GetRenderWidgetHost();
-
- return RenderWidgetHostImpl::From(
- focused_frame->current_frame_host()->GetView()->GetRenderWidgetHost());
-}
-
void WebContentsImpl::EnterFullscreenMode(const GURL& origin) {
// This method is being called to enter renderer-initiated fullscreen mode.
// Make sure any existing fullscreen widget is shut down first.
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698