Chromium Code Reviews| Index: content/browser/android/content_view_core_impl.h |
| diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h |
| index ab7da6d243906a436ece088f5a2506322de04b49..8df0eba4924b27c70901305e573d1c47b6887abd 100644 |
| --- a/content/browser/android/content_view_core_impl.h |
| +++ b/content/browser/android/content_view_core_impl.h |
| @@ -297,6 +297,14 @@ class ContentViewCoreImpl : public ContentViewCore, |
| void SetNeedsBeginFrame(bool enabled); |
| void SetNeedsAnimate(); |
| + // Captures pixels and compresses them using given |format|, |
| + // |quality| and |scale|. |format| should be one of of "jpeg", "png" and |
| + // "webp". |scale| is from range (0, 1]. |
| + bool GrabSnapshot(const std::string& format, |
|
Sami
2013/08/05 16:56:15
Nit: call this CaptureScreenshot for consistency?
|
| + int quality, |
| + double scale, |
| + std::vector<uint8>* data); |
| + |
| private: |
| class ContentViewUserData; |