diff options
author | Lei Zhang <thestig@chromium.org> | 2016-01-13 12:02:09 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-01-13 12:02:09 -0800 |
commit | 5da3cab4f2d9e97eb84483fc0ec13ead2a48e443 (patch) | |
tree | d3e31af684cad2a5b24d9fe8f1eec9800768a214 /core/include/fpdfapi | |
parent | 2e535df617e1a3309a1725c143247302da18a728 (diff) | |
download | pdfium-5da3cab4f2d9e97eb84483fc0ec13ead2a48e443.tar.xz |
Merge to XFA: Use the compiler to type check DocAvailStatus return values.
TBR=jun_fang@foxitsoftware.com
Review URL: https://codereview.chromium.org/1575363007 .
(cherry picked from commit 2fa5c7a8b6602bb2fe1df7cd09b12de666ca8a0a)
Review URL: https://codereview.chromium.org/1585773002 .
Diffstat (limited to 'core/include/fpdfapi')
-rw-r--r-- | core/include/fpdfapi/fpdf_parser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/include/fpdfapi/fpdf_parser.h b/core/include/fpdfapi/fpdf_parser.h index 32c1982907..84eacf6bf5 100644 --- a/core/include/fpdfapi/fpdf_parser.h +++ b/core/include/fpdfapi/fpdf_parser.h @@ -905,7 +905,7 @@ class IPDF_DataAvail { virtual DocAvailStatus IsDocAvail(IFX_DownloadHints* pHints) = 0; virtual void SetDocument(CPDF_Document* pDoc) = 0; - virtual int IsPageAvail(int iPage, IFX_DownloadHints* pHints) = 0; + virtual DocAvailStatus IsPageAvail(int iPage, IFX_DownloadHints* pHints) = 0; virtual FX_BOOL IsLinearized() = 0; virtual DocFormStatus IsFormAvail(IFX_DownloadHints* pHints) = 0; virtual DocLinearizationStatus IsLinearizedPDF() = 0; @@ -943,7 +943,7 @@ enum PDF_DATAAVAIL_STATUS { PDF_DATAAVAIL_CROSSREF_ITEM, PDF_DATAAVAIL_CROSSREF_STREAM, PDF_DATAAVAIL_TRAILER, - PDF_DATAAVAIL_LOADALLCRSOSSREF, + PDF_DATAAVAIL_LOADALLCROSSREF, PDF_DATAAVAIL_ROOT, PDF_DATAAVAIL_INFO, PDF_DATAAVAIL_ACROFORM, |