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

Unified Diff: android_webview/browser/aw_content_browser_client.h

Issue 11471040: [Android WebView] Convert context menu callback to long press (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forward declare 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
« no previous file with comments | « no previous file | android_webview/browser/aw_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_content_browser_client.h
diff --git a/android_webview/browser/aw_content_browser_client.h b/android_webview/browser/aw_content_browser_client.h
index 2a83f200fe72d29de2df4e8e1767a64e5e94c176..1cf9259833dc21a77b4d68a10387d0e4dfc632cf 100644
--- a/android_webview/browser/aw_content_browser_client.h
+++ b/android_webview/browser/aw_content_browser_client.h
@@ -14,7 +14,10 @@ namespace android_webview {
class AwContentBrowserClient : public content::ContentBrowserClient {
public:
- AwContentBrowserClient();
+ typedef content::WebContentsViewDelegate* ViewDelegateFactoryFn(
+ content::WebContents* web_contents);
+
+ AwContentBrowserClient(ViewDelegateFactoryFn* view_delegate_factory);
virtual ~AwContentBrowserClient();
AwBrowserContext* GetAwBrowserContext();
@@ -22,6 +25,8 @@ class AwContentBrowserClient : public content::ContentBrowserClient {
// Overriden methods from ContentBrowserClient.
virtual content::BrowserMainParts* CreateBrowserMainParts(
const content::MainFunctionParams& parameters) OVERRIDE;
+ virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate(
+ content::WebContents* web_contents) OVERRIDE;
virtual void RenderProcessHostCreated(
content::RenderProcessHost* host) OVERRIDE;
virtual std::string GetCanonicalEncodingNameByAliasName(
@@ -119,11 +124,14 @@ class AwContentBrowserClient : public content::ContentBrowserClient {
content::BrowserContext* browser_context,
const GURL& url,
const content::SocketPermissionRequest& params) OVERRIDE;
+
private:
// Android WebView currently has a single global (non-off-the-record) browser
// context.
scoped_ptr<AwBrowserContext> browser_context_;
+ ViewDelegateFactoryFn* view_delegate_factory_;
+
DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient);
};
« no previous file with comments | « no previous file | android_webview/browser/aw_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698