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

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

Issue 1934703002: Fix keyboard focus for OOPIF-<webview>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Fix tab focus change. Created 4 years, 7 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 9054ea9f36cc48e926d67d46abe957dd11b7ad7a..4496ef7310f0c7a375bd9571d72d481d8555904b 100644
--- a/content/browser/frame_host/render_frame_host_delegate.h
+++ b/content/browser/frame_host/render_frame_host_delegate.h
@@ -30,6 +30,7 @@ class Message;
}
namespace content {
+class FrameTreeNode;
class GeolocationServiceContext;
class InterstitialPage;
class PageState;
@@ -179,6 +180,11 @@ class CONTENT_EXPORT RenderFrameHostDelegate {
// https://crbug.com/330264.
virtual void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) {}
+ // Set the |node| frame as focused in the current FrameTree as well as
+ // possibly changing focus in distinct but related FrameTrees (Guest, Embedder
+ // with separate tree).
+ virtual void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source){};
alexmos 2016/05/12 20:28:39 nit: space before {} and no ; at the end
avallee 2016/05/16 20:26:43 Done.
+
// 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