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 77a62aac7bae4ac9e79fcfaa7e1c1e4136335836..f0890244ba09fbf9c808f7e95f8745a1891515b1 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 the main frame, since the attchment frame in its outer |
dmazzoni
2017/02/22 08:46:41
nit: attchment -> attachment.
Also, "return the m
avallee
2017/02/22 16:58:48
Done.
|
+ // 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( |