Chromium Code Reviews| Index: core/include/fpdfapi/fpdf_parser.h |
| diff --git a/core/include/fpdfapi/fpdf_parser.h b/core/include/fpdfapi/fpdf_parser.h |
| index 1ce43532f39811cefae7265e9a0736ba45a7ad94..ad2041bbef5300d348901933fbb3765a9210ab8c 100644 |
| --- a/core/include/fpdfapi/fpdf_parser.h |
| +++ b/core/include/fpdfapi/fpdf_parser.h |
| @@ -871,7 +871,35 @@ class IFX_DownloadHints { |
| class IPDF_DataAvail { |
| public: |
| - static IPDF_DataAvail* Create(IFX_FileAvail* pFileAvail, |
| + // Must match PDF_DATA_* definitions in public/fpdf_dataavail.h, but cannot |
|
Lei Zhang
2015/11/20 01:54:57
This is because Jun didn't merge the linearization
|
| + // #include that header. fpdfsdk/src/fpdf_dataavail.cpp has static_asserts |
| + // to make sure the two sets of values match. |
| + enum DocAvailStatus { |
| + DataError = -1, // PDF_DATA_ERROR |
| + DataNotAvailable = 0, // PDF_DATA_NOTAVAIL |
| + DataAvailable = 1, // PDF_DATA_AVAIL |
| + }; |
| + |
| + // Must match PDF_*LINEAR* definitions in public/fpdf_dataavail.h, but cannot |
| + // #include that header. fpdfsdk/src/fpdf_dataavail.cpp has static_asserts |
| + // to make sure the two sets of values match. |
| + enum DocLinearizationStatus { |
| + LinearizationUnknown = -1, // PDF_LINEARIZATION_UNKNOWN |
| + NotLinearized = 0, // PDF_NOT_LINEARIZED |
| + Linearized = 1, // PDF_LINEARIZED |
| + }; |
| + |
| + // Must match PDF_FORM_* definitions in public/fpdf_dataavail.h, but cannot |
| + // #include that header. fpdfsdk/src/fpdf_dataavail.cpp has static_asserts |
| + // to make sure the two sets of values match. |
| + enum DocFormStatus { |
| + FormError = -1, // PDF_FORM_ERROR |
| + FormNotAvailable = 0, // PDF_FORM_NOTAVAIL |
| + FormAvailable = 1, // PDF_FORM_AVAIL |
| + FormNotExist = 2, // PDF_FORM_NOTEXIST |
| + }; |
| + |
| +static IPDF_DataAvail* Create(IFX_FileAvail* pFileAvail, |
| IFX_FileRead* pFileRead); |
| virtual ~IPDF_DataAvail() {} |