Index: content/browser/frame_host/render_frame_host_delegate.h |
diff --git a/content/browser/frame_host/render_frame_host_delegate.h b/content/browser/frame_host/render_frame_host_delegate.h |
index c863b0044a49b2f872438a596d6c03bf89a3af47..583a8c3c1e05075640a8796c6f2992c667e7f1ce 100644 |
--- a/content/browser/frame_host/render_frame_host_delegate.h |
+++ b/content/browser/frame_host/render_frame_host_delegate.h |
@@ -224,6 +224,15 @@ class CONTENT_EXPORT RenderFrameHostDelegate { |
// possibly changing focus in distinct but related inner/outer WebContents. |
virtual void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) {} |
+ // Searches the WebContents for a focused frame, potentially in an inner |
+ // WebContents. If this WebContents has no focused frame, returns |nullptr|. |
+ // If there is no inner WebContents at the focused tree node, returns its |
+ // RenderFrameHost. If there is an inner WebContents, search it for focused |
+ // frames and inner contents. If an inner WebContents does not have a focused |
+ // frame, return its main frame, since the attachment frame in its outer |
+ // WebContents is not live. |
+ virtual RenderFrameHost* GetFocusedFrameIncludingInnerWebContents(); |
+ |
// Creates a WebUI object for a frame navigating to |url|. If no WebUI |
// applies, returns null. |
virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |