diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-10-21 14:07:23 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-10-21 14:07:23 -0700 |
commit | bf59a070593d079256161f6ff47148df309668c7 (patch) | |
tree | 0c105507a20881f8f025127183510fefb851c3ce /fpdfsdk/include/fsdk_define.h | |
parent | 63dfaab17af7121653749bc86d11fc77b5353dca (diff) | |
download | pdfium-bf59a070593d079256161f6ff47148df309668c7.tar.xz |
XFA: add CPDFDocumentToFPDFDocument()
Abstracts away that master returns CPDF_Documents directly,
but XFA wraps them with a CPDFXFA_Document.
Tidy dead code along the way.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1415803002 .
Diffstat (limited to 'fpdfsdk/include/fsdk_define.h')
-rw-r--r-- | fpdfsdk/include/fsdk_define.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fpdfsdk/include/fsdk_define.h b/fpdfsdk/include/fsdk_define.h index e001e751de..2faaf01298 100644 --- a/fpdfsdk/include/fsdk_define.h +++ b/fpdfsdk/include/fsdk_define.h @@ -87,8 +87,10 @@ class CFPDF_FileStream : public IFX_FileStream { FX_FILESIZE m_nCurPos; }; -// Conversions from FPDF_ types. +// Conversions to/from FPDF_ types. CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc); +FPDF_DOCUMENT FPDFDocumentFromCPDFDocument(CPDF_Document* doc); + CPDF_Page* CPDFPageFromFPDFPage(FPDF_PAGE page); void DropContext(void* data); |