diff options
author | leandrogracia@chromium.org <leandrogracia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-13 03:30:39 +0000 |
---|---|---|
committer | leandrogracia@chromium.org <leandrogracia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-13 03:30:39 +0000 |
commit | 7835b0eb6dd2a49c19e12c45ecd301508e626195 (patch) | |
tree | f67d645ec851c68e4a6b54a381c21e36a5486e57 /android_webview/renderer/aw_render_view_ext.h | |
parent | 768c8ac24488b949f2d3a00450a49ee14a71cc5a (diff) | |
download | chromium_src-7835b0eb6dd2a49c19e12c45ecd301508e626195.zip chromium_src-7835b0eb6dd2a49c19e12c45ecd301508e626195.tar.gz chromium_src-7835b0eb6dd2a49c19e12c45ecd301508e626195.tar.bz2 |
Expose the capturePicture feature in RenderView for Android WebView legacy API support.
These methods are required to implement WebView.capturePicture and WebView.PictureListener.onNewPicture.
- http://developer.android.com/reference/android/webkit/WebView.html#capturePicture()
- http://developer.android.com/reference/android/webkit/WebView.PictureListener.html
BUG=167908,167913
Review URL: https://chromiumcodereview.appspot.com/11861008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182106 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/renderer/aw_render_view_ext.h')
-rw-r--r-- | android_webview/renderer/aw_render_view_ext.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/android_webview/renderer/aw_render_view_ext.h b/android_webview/renderer/aw_render_view_ext.h index 8efa5b3..80b9d20 100644 --- a/android_webview/renderer/aw_render_view_ext.h +++ b/android_webview/renderer/aw_render_view_ext.h @@ -9,9 +9,7 @@ #include "base/compiler_specific.h" #include "base/memory/weak_ptr.h" #include "content/public/renderer/render_view_observer.h" -#include "skia/ext/refptr.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebPermissionClient.h" -#include "third_party/skia/include/core/SkPicture.h" namespace WebKit { @@ -42,6 +40,7 @@ class AwRenderViewExt : public content::RenderViewObserver, virtual void DidCommitProvisionalLoad(WebKit::WebFrame* frame, bool is_new_navigation) OVERRIDE; virtual void FocusedNodeChanged(const WebKit::WebNode& node) OVERRIDE; + virtual void DidCommitCompositorFrame() OVERRIDE; void OnDocumentHasImagesRequest(int id); @@ -49,8 +48,6 @@ class AwRenderViewExt : public content::RenderViewObserver, void OnEnableCapturePictureCallback(bool enable); - void OnPictureUpdate(skia::RefPtr<SkPicture> picture); - void OnCapturePictureSync(); // WebKit::WebPermissionClient implementation. @@ -58,6 +55,8 @@ class AwRenderViewExt : public content::RenderViewObserver, bool enabledPerSettings, const WebKit::WebURL& imageURL) OVERRIDE; + bool capture_picture_enabled_; + DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); }; |