diff options
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 |