diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/page/FrameSnapshotting.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/page/FrameSnapshotting.h')
-rw-r--r-- | Source/WebCore/page/FrameSnapshotting.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/WebCore/page/FrameSnapshotting.h b/Source/WebCore/page/FrameSnapshotting.h index f74767b28..dc6356886 100644 --- a/Source/WebCore/page/FrameSnapshotting.h +++ b/Source/WebCore/page/FrameSnapshotting.h @@ -27,13 +27,14 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef FrameSnapshotting_h -#define FrameSnapshotting_h +#pragma once #include <memory> +#include <wtf/Vector.h> namespace WebCore { +class FloatRect; class Frame; class IntRect; class ImageBuffer; @@ -45,13 +46,13 @@ enum { SnapshotOptionsPaintSelectionOnly = 1 << 1, SnapshotOptionsInViewCoordinates = 1 << 2, SnapshotOptionsForceBlackText = 1 << 3, + SnapshotOptionsPaintSelectionAndBackgroundsOnly = 1 << 4, }; typedef unsigned SnapshotOptions; -std::unique_ptr<ImageBuffer> snapshotFrameRect(Frame&, const IntRect&, SnapshotOptions = SnapshotOptionsNone); +WEBCORE_EXPORT std::unique_ptr<ImageBuffer> snapshotFrameRect(Frame&, const IntRect&, SnapshotOptions = SnapshotOptionsNone); +std::unique_ptr<ImageBuffer> snapshotFrameRectWithClip(Frame&, const IntRect&, Vector<FloatRect>& clipRects, SnapshotOptions = SnapshotOptionsNone); std::unique_ptr<ImageBuffer> snapshotNode(Frame&, Node&); -std::unique_ptr<ImageBuffer> snapshotSelection(Frame&, SnapshotOptions = SnapshotOptionsNone); +WEBCORE_EXPORT std::unique_ptr<ImageBuffer> snapshotSelection(Frame&, SnapshotOptions = SnapshotOptionsNone); } // namespace WebCore - -#endif // FrameSnapshotting_h |