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

Unified Diff: content/browser/frame_host/render_frame_host_impl.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: 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
Index: content/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index c2bc78d2f8ddea0e3597663fdea3163210e36d68..6585f634119f256249c7a4d587c38dc38ca6bb8d 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -375,8 +375,10 @@ class CONTENT_EXPORT RenderFrameHostImpl
// another renderer process.
void UpdateOpener();
- // Clear focus from this frame in the renderer process.
- void ClearFocus();
+ // Clear focus from this frame in the renderer process and set |focused_ftn|
+ // as the new focused frame. This is only called when |focused_ftn| is in a
+ // different process from this frame.
+ void ClearFocus(FrameTreeNode* focused_ftn);
// Deletes the current selection plus the specified number of characters
// before and after the selection or caret.

Powered by Google App Engine
This is Rietveld 408576698