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; |