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

Unified Diff: content/public/browser/content_browser_client.h

Issue 9700023: Move creation of content TabContentsViews to content so that we can hide these headers through DEPS… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 9 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/web_contents_view_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/content_browser_client.h
===================================================================
--- content/public/browser/content_browser_client.h (revision 126521)
+++ content/public/browser/content_browser_client.h (working copy)
@@ -70,6 +70,7 @@
class SpeechInputManagerDelegate;
class WebContents;
class WebContentsView;
+class WebContentsViewDelegate;
class WebUIControllerFactory;
struct MainFunctionParams;
struct ShowDesktopNotificationHostMsgParams;
@@ -95,8 +96,16 @@
virtual BrowserMainParts* CreateBrowserMainParts(
const content::MainFunctionParams& parameters) = 0;
- virtual WebContentsView* CreateWebContentsView(WebContents* web_contents) = 0;
+ // Allows an embedder to return their own WebContentsView implementation.
+ // Return NULL to let the default one for the platform be created.
+ virtual WebContentsView* OverrideCreateWebContentsView(
+ WebContents* web_contents) = 0;
+ // If content creates the WebContentsView implementation, it will ask the
+ // embedder to return an (optional) delegate to customize it.
Avi (use Gerrit) 2012/03/14 20:48:24 You may want to clarify that content will take own
jam 2012/03/14 20:59:26 Done.
+ virtual WebContentsViewDelegate* GetWebContentsViewDelegate(
+ WebContents* web_contents) = 0;
+
// Notifies that a new RenderHostView has been created.
virtual void RenderViewHostCreated(
content::RenderViewHost* render_view_host) = 0;
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/web_contents_view_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698