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

Unified Diff: content/public/browser/render_widget_host.h

Issue 311313003: DevTools: Fix for Page.captureScreenshot (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for mac (again) Created 6 years, 6 months 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 | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_widget_host.h
diff --git a/content/public/browser/render_widget_host.h b/content/public/browser/render_widget_host.h
index 30308736a76bdfb0ec9591ac8bcbaa62f651856e..a5eadee9be1e2f57cd44cad18945348c03c5621e 100644
--- a/content/public/browser/render_widget_host.h
+++ b/content/public/browser/render_widget_host.h
@@ -292,6 +292,11 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Sender {
virtual SkBitmap::Config PreferredReadbackFormat() = 0;
+ // Forces redraw in the renderer and when the update reaches the browser
+ // grabs snapshot from the compositor. Returns PNG-encoded snapshot.
+ virtual void GetSnapshotFromBrowser(
+ const base::Callback<void(const unsigned char*, size_t)> callback) = 0;
jam 2014/06/18 16:46:34 this is only called by code inside content, so put
vkuzkokov 2014/06/19 08:00:20 Done.
+
protected:
friend class RenderWidgetHostImpl;
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698