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

Unified Diff: content/browser/frame_host/render_frame_proxy_host.h

Issue 1423053002: Make document.activeElement work with OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@focus-preserve-page-focus-on-subframe-navigations
Patch Set: Remove some plumbing that should instead be introduced in the window.focus() CL. 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
Index: content/browser/frame_host/render_frame_proxy_host.h
diff --git a/content/browser/frame_host/render_frame_proxy_host.h b/content/browser/frame_host/render_frame_proxy_host.h
index 061a6ba94e595d38b4b3d4b6e7cd770e59b0b1c7..fd5fc6c4ea51580cca35aed1cd43dd92d89a3e56 100644
--- a/content/browser/frame_host/render_frame_proxy_host.h
+++ b/content/browser/frame_host/render_frame_proxy_host.h
@@ -111,6 +111,11 @@ class RenderFrameProxyHost
// another renderer process.
void UpdateOpener();
+ // Set this proxy as the focused frame in the renderer process. This is
+ // called to replicate the focused frame when a frame in a different process
+ // becomes focused.
+ void SetFocusedFrame();
+
void set_render_frame_proxy_created(bool created) {
render_frame_proxy_created_ = created;
}

Powered by Google App Engine
This is Rietveld 408576698