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

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

Issue 1394383002: OOPIF: Send page-level focus messages to all processes rendering a page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Charlie's nits Created 5 years, 2 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_manager.h
diff --git a/content/browser/frame_host/render_frame_host_manager.h b/content/browser/frame_host/render_frame_host_manager.h
index 3a40ad73e5bc87f71b23a73a81dff4d788ad1f4c..1504c11306793a8184361b48352793d1155df547 100644
--- a/content/browser/frame_host/render_frame_host_manager.h
+++ b/content/browser/frame_host/render_frame_host_manager.h
@@ -498,6 +498,12 @@ class CONTENT_EXPORT RenderFrameHostManager {
// an inner WebContents.
void SetRWHViewForInnerContents(RenderWidgetHostView* child_rwhv);
+ // Set page-level focus in all SiteInstances involved in rendering the
+ // current FrameTree, not including the current main frame's SiteInstance.
+ // The focus update will be sent via the main frame's proxies in those
+ // SiteInstances. Expected to be called only on the main frame.
+ void ReplicatePageFocus(bool is_focused);
+
// Returns a copy of the map of proxy hosts. The keys are SiteInstance IDs,
// the values are RenderFrameProxyHosts.
std::map<int, RenderFrameProxyHost*> GetAllProxyHostsForTesting();

Powered by Google App Engine
This is Rietveld 408576698