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

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

Issue 2674353003: Enable WebViewAccessiblityTest for OOPIF webview. (Closed)
Patch Set: Fix typos. Created 3 years, 6 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 60e5680812f93201584a013dd5f02fc80732bde0..00fbc3217b362ae26b819e563b2da5f675c1fee2 100644
--- a/content/browser/frame_host/render_frame_host_delegate.h
+++ b/content/browser/frame_host/render_frame_host_delegate.h
@@ -234,6 +234,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(
« no previous file with comments | « chrome/browser/apps/guest_view/web_view_browsertest.cc ('k') | content/browser/frame_host/render_frame_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698