diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-11-20 09:45:24 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-11-20 09:45:24 -0800 |
commit | c7e4c4fe17f5c05671183a47541ea17f3dce75b5 (patch) | |
tree | 720c1c55e5125c6d5ebe85839137fc3a15496ca5 /fpdfsdk/src/fpdf_dataavail.cpp | |
parent | 7386e293a2b67794e6af02d0b71020a4bc987ce0 (diff) | |
download | pdfium-c7e4c4fe17f5c05671183a47541ea17f3dce75b5.tar.xz |
Update XFA fpdfsdk to match master
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1465663002 .
Diffstat (limited to 'fpdfsdk/src/fpdf_dataavail.cpp')
-rw-r--r-- | fpdfsdk/src/fpdf_dataavail.cpp | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/fpdfsdk/src/fpdf_dataavail.cpp b/fpdfsdk/src/fpdf_dataavail.cpp index 0bd5add9a7..9fe2fa82b1 100644 --- a/fpdfsdk/src/fpdf_dataavail.cpp +++ b/fpdfsdk/src/fpdf_dataavail.cpp @@ -6,11 +6,33 @@ #include "public/fpdf_dataavail.h" -#include "../include/fpdfxfa/fpdfxfa_app.h" -#include "../include/fpdfxfa/fpdfxfa_doc.h" #include "fpdfsdk/include/fsdk_define.h" #include "public/fpdf_formfill.h" +// These checks are here because core/ and public/ cannot depend on each other. +static_assert(IPDF_DataAvail::DataError == PDF_DATA_ERROR, + "IPDF_DataAvail::DataError value mismatch"); +static_assert(IPDF_DataAvail::DataNotAvailable == PDF_DATA_NOTAVAIL, + "IPDF_DataAvail::DataNotAvailable value mismatch"); +static_assert(IPDF_DataAvail::DataAvailable == PDF_DATA_AVAIL, + "IPDF_DataAvail::DataAvailable value mismatch"); + +static_assert(IPDF_DataAvail::LinearizationUnknown == PDF_LINEARIZATION_UNKNOWN, + "IPDF_DataAvail::LinearizationUnknown value mismatch"); +static_assert(IPDF_DataAvail::NotLinearized == PDF_NOT_LINEARIZED, + "IPDF_DataAvail::NotLinearized value mismatch"); +static_assert(IPDF_DataAvail::Linearized == PDF_LINEARIZED, + "IPDF_DataAvail::Linearized value mismatch"); + +static_assert(IPDF_DataAvail::FormError == PDF_FORM_ERROR, + "IPDF_DataAvail::FormError value mismatch"); +static_assert(IPDF_DataAvail::FormNotAvailable == PDF_FORM_NOTAVAIL, + "IPDF_DataAvail::FormNotAvailable value mismatch"); +static_assert(IPDF_DataAvail::FormAvailable == PDF_FORM_AVAIL, + "IPDF_DataAvail::FormAvailable value mismatch"); +static_assert(IPDF_DataAvail::FormNotExist == PDF_FORM_NOTEXIST, + "IPDF_DataAvail::FormNotExist value mismatch"); + class CFPDF_FileAvailWrap : public IFX_FileAvail { public: CFPDF_FileAvailWrap() { m_pfileAvail = NULL; } |