| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef FPDFSDK_FSDK_DEFINE_H_ | 7 #ifndef FPDFSDK_FSDK_DEFINE_H_ |
| 8 #define FPDFSDK_FSDK_DEFINE_H_ | 8 #define FPDFSDK_FSDK_DEFINE_H_ |
| 9 | 9 |
| 10 #include "core/fpdfapi/parser/cpdf_parser.h" | 10 #include "core/fpdfapi/parser/cpdf_parser.h" |
| 11 #include "core/fxge/fx_dib.h" | 11 #include "core/fxge/fx_dib.h" |
| 12 #include "public/fpdfview.h" | 12 #include "public/fpdfview.h" |
| 13 | 13 |
| 14 #ifdef PDF_ENABLE_XFA | 14 #ifdef PDF_ENABLE_XFA |
| 15 #include "fpdfsdk/fpdfxfa/cpdfxfa_context.h" | 15 #include "fpdfsdk/fpdfxfa/cpdfxfa_context.h" |
| 16 #endif // PDF_ENABLE_XFA | 16 #endif // PDF_ENABLE_XFA |
| 17 | 17 |
| 18 #ifdef _WIN32 | 18 #ifdef _WIN32 |
| 19 #include <math.h> | 19 #include <math.h> |
| 20 #include <tchar.h> | 20 #include <tchar.h> |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 class CPDF_Annot; | 23 class CPDF_Annot; |
| 24 class CPDF_Page; | 24 class CPDF_Page; |
| 25 class CPDF_PageRenderContext; | 25 class CPDF_PageRenderContext; |
| 26 class IFSDK_PAUSE_Adapter; | 26 class IFSDK_PAUSE_Adapter; |
| 27 | 27 |
| 28 // Layering prevents fxcrt from knowing about FPDF_FILEACCESS, so this can't | 28 // Layering prevents fxcrt from knowing about FPDF_FILEACCESS, so this can't |
| 29 // be a static method of IFX_SeekableReadStream. | 29 // be a static method of IFX_SeekableReadStream. |
| 30 IFX_SeekableReadStream* MakeSeekableReadStream(FPDF_FILEACCESS* pFileAccess); | 30 CFX_RetainPtr<IFX_SeekableReadStream> MakeSeekableReadStream( |
| 31 FPDF_FILEACCESS* pFileAccess); |
| 31 | 32 |
| 32 #ifdef PDF_ENABLE_XFA | 33 #ifdef PDF_ENABLE_XFA |
| 33 // Layering prevents fxcrt from knowing about FPDF_FILEHANDLER, so this can't | 34 // Layering prevents fxcrt from knowing about FPDF_FILEHANDLER, so this can't |
| 34 // be a static method of IFX_SeekableStream. | 35 // be a static method of IFX_SeekableStream. |
| 35 IFX_SeekableStream* MakeSeekableStream(FPDF_FILEHANDLER* pFileHandler); | 36 CFX_RetainPtr<IFX_SeekableStream> MakeSeekableStream( |
| 37 FPDF_FILEHANDLER* pFileHandler); |
| 36 #endif // PDF_ENABLE_XFA | 38 #endif // PDF_ENABLE_XFA |
| 37 | 39 |
| 38 // Object types for public FPDF_ types; these correspond to next layer down | 40 // Object types for public FPDF_ types; these correspond to next layer down |
| 39 // from fpdfsdk. For master, these are CPDF_ types, but for XFA, these are | 41 // from fpdfsdk. For master, these are CPDF_ types, but for XFA, these are |
| 40 // CPDFXFA_ types. | 42 // CPDFXFA_ types. |
| 41 #ifndef PDF_ENABLE_XFA | 43 #ifndef PDF_ENABLE_XFA |
| 42 using UnderlyingDocumentType = CPDF_Document; | 44 using UnderlyingDocumentType = CPDF_Document; |
| 43 using UnderlyingPageType = CPDF_Page; | 45 using UnderlyingPageType = CPDF_Page; |
| 44 #else // PDF_ENABLE_XFA | 46 #else // PDF_ENABLE_XFA |
| 45 using UnderlyingDocumentType = CPDFXFA_Context; | 47 using UnderlyingDocumentType = CPDFXFA_Context; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 71 int rotate, | 73 int rotate, |
| 72 int flags, | 74 int flags, |
| 73 bool bNeedToRestore, | 75 bool bNeedToRestore, |
| 74 IFSDK_PAUSE_Adapter* pause); | 76 IFSDK_PAUSE_Adapter* pause); |
| 75 | 77 |
| 76 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code); | 78 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code); |
| 77 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot); | 79 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot); |
| 78 void ProcessParseError(CPDF_Parser::Error err); | 80 void ProcessParseError(CPDF_Parser::Error err); |
| 79 | 81 |
| 80 #endif // FPDFSDK_FSDK_DEFINE_H_ | 82 #endif // FPDFSDK_FSDK_DEFINE_H_ |
| OLD | NEW |