5#ifndef PUBLIC_CPP_FPDF_SCOPERS_H_
6#define PUBLIC_CPP_FPDF_SCOPERS_H_
11#include "public/cpp/fpdf_deleters.h"
15using ScopedFPDFAnnotation =
16 std::unique_ptr<std::remove_pointer<FPDF_ANNOTATION>::type,
17 FPDFAnnotationDeleter>;
19using ScopedFPDFAvail =
20 std::unique_ptr<std::remove_pointer<FPDF_AVAIL>::type, FPDFAvailDeleter>;
22using ScopedFPDFBitmap =
23 std::unique_ptr<std::remove_pointer<FPDF_BITMAP>::type, FPDFBitmapDeleter>;
25using ScopedFPDFClipPath =
26 std::unique_ptr<std::remove_pointer<FPDF_CLIPPATH>::type,
29using ScopedFPDFDocument =
30 std::unique_ptr<std::remove_pointer<FPDF_DOCUMENT>::type,
34 std::unique_ptr<std::remove_pointer<FPDF_FONT>::type, FPDFFontDeleter>;
36using ScopedFPDFFormHandle =
37 std::unique_ptr<std::remove_pointer<FPDF_FORMHANDLE>::type,
38 FPDFFormHandleDeleter>;
40using ScopedFPDFJavaScriptAction =
41 std::unique_ptr<std::remove_pointer<FPDF_JAVASCRIPT_ACTION>::type,
42 FPDFJavaScriptActionDeleter>;
45 std::unique_ptr<std::remove_pointer<FPDF_PAGE>::type, FPDFPageDeleter>;
47using ScopedFPDFPageLink =
48 std::unique_ptr<std::remove_pointer<FPDF_PAGELINK>::type,
51using ScopedFPDFPageObject =
52 std::unique_ptr<std::remove_pointer<FPDF_PAGEOBJECT>::type,
53 FPDFPageObjectDeleter>;
55using ScopedFPDFStructTree =
56 std::unique_ptr<std::remove_pointer<FPDF_STRUCTTREE>::type,
57 FPDFStructTreeDeleter>;
59using ScopedFPDFTextFind =
60 std::unique_ptr<std::remove_pointer<FPDF_SCHHANDLE>::type,
63using ScopedFPDFTextPage =
64 std::unique_ptr<std::remove_pointer<FPDF_TEXTPAGE>::type,
void SetRequestedDataAvailable()
void SetWholeFileAvailable()
FX_DOWNLOADHINTS * GetDownloadHints() const
FX_FILEAVAIL * GetFileAvail() const
FPDF_FILEACCESS * GetFileAccess() const
TEST_F(CPDF_CreatorEmbedderTest, SavedDocsAreEqualAfterParse)