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

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

Issue 2674353003: Enable WebViewAccessiblityTest for OOPIF webview. (Closed)
Patch Set: Address dmazzoni comments. Created 3 years, 10 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_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(

Powered by Google App Engine
This is Rietveld 408576698