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

Unified Diff: content/browser/web_contents/render_view_host_manager.h

Issue 23129015: Initialize RenderWidget(Host)(View)s with correct visibility state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/web_contents/render_view_host_manager.h
diff --git a/content/browser/web_contents/render_view_host_manager.h b/content/browser/web_contents/render_view_host_manager.h
index 8c5071d9d654d001c88c5ee35317d8f7c12c4916..3aa4ee5809cccd8904e54ea9561e5244676b4184 100644
--- a/content/browser/web_contents/render_view_host_manager.h
+++ b/content/browser/web_contents/render_view_host_manager.h
@@ -97,6 +97,10 @@ class CONTENT_EXPORT RenderViewHostManager
// Creates a view and sets the size for the specified RVH.
virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) = 0;
+ // Returns true if views created for this delegate should be initially
Charlie Reis 2013/08/20 02:09:58 nit: should currently be created in a hidden state
+ // hidden.
+ virtual bool IsHidden() = 0;
+
protected:
virtual ~Delegate() {}
};
@@ -181,7 +185,8 @@ class CONTENT_EXPORT RenderViewHostManager
// will be used for a pending cross-site navigation.
int CreateRenderView(SiteInstance* instance,
int opener_route_id,
- bool swapped_out);
+ bool swapped_out,
+ bool hidden);
// Called when a provisional load on the given renderer is aborted.
void RendererAbortedProvisionalLoad(RenderViewHost* render_view_host);

Powered by Google App Engine
This is Rietveld 408576698