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

Unified Diff: content/shell/shell_content_browser_client.cc

Issue 10913035: Add context popup menu support for content shell[GTK]. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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/shell/shell_content_browser_client.cc
diff --git a/content/shell/shell_content_browser_client.cc b/content/shell/shell_content_browser_client.cc
index 9eb26b7b04058b27a948c2194a2ffaf34ad06871..8981e19d18661479b940b409d82d8b1f22b509f3 100644
--- a/content/shell/shell_content_browser_client.cc
+++ b/content/shell/shell_content_browser_client.cc
@@ -14,6 +14,7 @@
#include "content/shell/shell_devtools_delegate.h"
#include "content/shell/shell_resource_dispatcher_host_delegate.h"
#include "content/shell/shell_switches.h"
+#include "content/shell/shell_web_contents_view_delegate.h"
#include "content/shell/webkit_test_runner_host.h"
#include "googleurl/src/gurl.h"
@@ -63,6 +64,15 @@ std::string ShellContentBrowserClient::GetDefaultDownloadName() {
return "download";
}
+WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate(
+ content::WebContents* web_contents) {
jochen (gone - plz use gerrit) 2012/08/31 20:58:58 no content::
Shouqun Liu 2012/08/31 21:34:20 Done.
+#if defined(TOOLKIT_GTK)
+ return new ShellWebContentsViewDelegate(web_contents);
+#endif
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
#if defined(OS_ANDROID)
void ShellContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
const CommandLine& command_line,

Powered by Google App Engine
This is Rietveld 408576698