summaryrefslogtreecommitdiffstats
path: root/content/shell
diff options
context:
space:
mode:
Diffstat (limited to 'content/shell')
-rw-r--r--content/shell/shell_content_browser_client.cc14
-rw-r--r--content/shell/shell_content_browser_client.h4
2 files changed, 8 insertions, 10 deletions
diff --git a/content/shell/shell_content_browser_client.cc b/content/shell/shell_content_browser_client.cc
index c0c1365..686e6ce 100644
--- a/content/shell/shell_content_browser_client.cc
+++ b/content/shell/shell_content_browser_client.cc
@@ -38,22 +38,18 @@ BrowserMainParts* ShellContentBrowserClient::CreateBrowserMainParts(
return new ShellBrowserMainParts(parameters);
}
-WebContentsView* ShellContentBrowserClient::CreateWebContentsView(
+WebContentsView* ShellContentBrowserClient::OverrideCreateWebContentsView(
WebContents* web_contents) {
ShellDevToolsDelegate* devtools_delegate =
shell_browser_main_parts_->devtools_delegate();
if (devtools_delegate)
devtools_delegate->AddWebContents(web_contents);
+ return NULL;
+}
-#if defined(OS_WIN)
- return new TabContentsViewWin(web_contents, NULL);
-#elif defined(OS_LINUX)
- return new TabContentsViewGtk(web_contents, NULL);
-#elif defined(OS_MACOSX)
- return web_contents_view_mac::CreateWebContentsView(web_contents, NULL);
-#else
+WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate(
+ content::WebContents* web_contents) {
return NULL;
-#endif
}
void ShellContentBrowserClient::RenderViewHostCreated(
diff --git a/content/shell/shell_content_browser_client.h b/content/shell/shell_content_browser_client.h
index 5db7a3b..a7322ab 100644
--- a/content/shell/shell_content_browser_client.h
+++ b/content/shell/shell_content_browser_client.h
@@ -27,7 +27,9 @@ class ShellContentBrowserClient : public ContentBrowserClient {
virtual BrowserMainParts* CreateBrowserMainParts(
const content::MainFunctionParams& parameters) OVERRIDE;
- virtual WebContentsView* CreateWebContentsView(
+ virtual WebContentsView* OverrideCreateWebContentsView(
+ WebContents* web_contents) OVERRIDE;
+ virtual WebContentsViewDelegate* GetWebContentsViewDelegate(
WebContents* web_contents) OVERRIDE;
virtual void RenderViewHostCreated(
RenderViewHost* render_view_host) OVERRIDE;