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

Unified Diff: android_webview/browser/aw_content_browser_client.cc

Issue 11471040: [Android WebView] Convert context menu callback to long press (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix findbugs by not passing native pointer. Created 8 years 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: android_webview/browser/aw_content_browser_client.cc
diff --git a/android_webview/browser/aw_content_browser_client.cc b/android_webview/browser/aw_content_browser_client.cc
index e897a79b3f51b87e1a1e4e989e8cf4220fce213e..a1a5602ebb1d96c1f5fd745cc23cca499fec96ec 100644
--- a/android_webview/browser/aw_content_browser_client.cc
+++ b/android_webview/browser/aw_content_browser_client.cc
@@ -7,6 +7,7 @@
#include "android_webview/browser/aw_browser_main_parts.h"
#include "android_webview/browser/aw_cookie_access_policy.h"
#include "android_webview/browser/aw_quota_permission_context.h"
+#include "android_webview/browser/aw_web_contents_view_delegate_factory.h"
#include "android_webview/browser/net_disk_cache_remover.h"
#include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h"
#include "android_webview/common/url_constants.h"
@@ -62,6 +63,12 @@ content::BrowserMainParts* AwContentBrowserClient::CreateBrowserMainParts(
return new AwBrowserMainParts(browser_context_.get());
}
+content::WebContentsViewDelegate*
+AwContentBrowserClient::GetWebContentsViewDelegate(
+ content::WebContents* web_contents) {
+ return CreateAwWebContentsViewDelegate(web_contents);
joth 2012/12/11 01:22:11 this works ok.. but rather than call straight out
boliu 2012/12/11 02:25:34 Choosing callback since it's easier. One snag in
+}
+
void AwContentBrowserClient::RenderProcessHostCreated(
content::RenderProcessHost* host) {
// If WebView becomes multi-process capable, this may be insecure.
« no previous file with comments | « android_webview/browser/aw_content_browser_client.h ('k') | android_webview/browser/aw_web_contents_view_delegate_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698