Chromium Code Reviews| Index: content/public/browser/web_contents_delegate.h |
| diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h |
| index 5a339aec3d06e456acf4cd0e72c0c92ab85b4295..6d161aee3a0b7e0dc5b6d0db2ae222be21433006 100644 |
| --- a/content/public/browser/web_contents_delegate.h |
| +++ b/content/public/browser/web_contents_delegate.h |
| @@ -57,6 +57,12 @@ struct WebIntentData; |
| struct WebIntentServiceData; |
| } |
| +#if defined(OS_ANDROID) |
|
jam
2012/09/04 16:44:48
ditto
|
| +namespace WebKit { |
| +class WebLayer; |
| +} |
| +#endif |
| + |
| namespace content { |
| struct OpenURLParams; |
| @@ -307,12 +313,6 @@ class CONTENT_EXPORT WebContentsDelegate { |
| // changed. |
| virtual void ContentRestrictionsChanged(WebContents* source) {} |
| -#if defined(OS_ANDROID) |
| - // Returns true if the delegate wants to handle the url instead. Default |
| - // returns false. |
| - virtual bool ShouldOverrideLoading(const GURL& url); |
| -#endif |
| - |
| // Notification that the tab is hung. |
| virtual void RendererUnresponsive(WebContents* source) {} |
| @@ -428,6 +428,16 @@ class CONTENT_EXPORT WebContentsDelegate { |
| const MediaStreamRequest* request, |
| const MediaResponseCallback& callback) {} |
| +#if defined(OS_ANDROID) |
| + // Returns true if the delegate wants to handle the url instead. Default |
| + // returns false. |
| + virtual bool ShouldOverrideLoading(const GURL& url); |
| + virtual void AttachLayer(WebContents* web_contents, |
|
jam
2012/09/04 16:44:48
nit: document these methods
|
| + WebKit::WebLayer* layer) {} |
| + virtual void RemoveLayer(WebContents* web_contents, |
| + WebKit::WebLayer* layer) {} |
| +#endif |
| + |
| protected: |
| virtual ~WebContentsDelegate(); |