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

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

Issue 1303773002: Give the main frame a RenderWidget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: plumb through surface ID *and* widget surface ID for window.open Created 5 years, 3 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_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index 498785d2f8f634470b29ffee8f52eed578c04e52..f253d989145d462d844979a826e21374b9e5d97e 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -226,6 +226,13 @@ class CONTENT_EXPORT RenderFrameHostImpl
// pointer to the RenderViewHost (which inherits RenderWidgetHost).
RenderWidgetHostImpl* GetRenderWidgetHost();
+ // Similar to the above, but if the RenderFrameHost is the main frame, it
+ // returns the RenderWidgetHost owned by the main RenderFrameHost rather than
+ // the RenderViewHost.
+ RenderWidgetHostImpl* GetRenderWidgetHostForFrame() {
+ return render_widget_host_;
+ }
+
// This returns the RenderWidgetHostView that can be used to control
// focus and visibility for this frame.
RenderWidgetHostView* GetView();

Powered by Google App Engine
This is Rietveld 408576698