summaryrefslogtreecommitdiffstats
path: root/content/public/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'content/public/renderer')
-rw-r--r--content/public/renderer/render_view.h12
-rw-r--r--content/public/renderer/render_view_observer.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/content/public/renderer/render_view.h b/content/public/renderer/render_view.h
index 5cf2af9..f60847b 100644
--- a/content/public/renderer/render_view.h
+++ b/content/public/renderer/render_view.h
@@ -9,10 +9,13 @@
#include "base/string16.h"
#include "content/common/content_export.h"
#include "ipc/ipc_sender.h"
+#include "skia/ext/refptr.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityState.h"
#include "ui/gfx/native_widget_types.h"
+class SkPicture;
+
namespace webkit_glue {
struct WebPreferences;
}
@@ -163,6 +166,15 @@ class CONTENT_EXPORT RenderView : public IPC::Sender {
// Returns a collection of security info about |frame|.
virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const = 0;
+#if defined(OS_ANDROID)
+ // Returns a SkPicture with the full contents of the current frame as part of
+ // the legacy Android WebView capture picture API. As it involves playing back
+ // all the drawing commands of the current frame it can have an important
+ // performance impact and should not be used for other purposes.
+ // Requires enabling the impl-side painting feature in the compositor.
+ virtual skia::RefPtr<SkPicture> CapturePicture() = 0;
+#endif
+
protected:
virtual ~RenderView() {}
};
diff --git a/content/public/renderer/render_view_observer.h b/content/public/renderer/render_view_observer.h
index 48faa78..c6bd608 100644
--- a/content/public/renderer/render_view_observer.h
+++ b/content/public/renderer/render_view_observer.h
@@ -85,6 +85,7 @@ class CONTENT_EXPORT RenderViewObserver : public IPC::Listener,
virtual void DidRequestShowContextMenu(
WebKit::WebFrame* frame,
const WebKit::WebContextMenuData& data) {}
+ virtual void DidCommitCompositorFrame() {}
// These match the RenderView methods.
virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {}