| 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_INCLUDE_FSDK_DEFINE_H_ | 7 #ifndef FPDFSDK_INCLUDE_FSDK_DEFINE_H_ |
| 8 #define FPDFSDK_INCLUDE_FSDK_DEFINE_H_ | 8 #define FPDFSDK_INCLUDE_FSDK_DEFINE_H_ |
| 9 | 9 |
| 10 #include "../../core/include/fpdfapi/fpdf_module.h" | 10 #include "../../core/include/fpdfapi/fpdf_module.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 size_t size); | 86 size_t size); |
| 87 virtual FX_BOOL Flush(); | 87 virtual FX_BOOL Flush(); |
| 88 | 88 |
| 89 protected: | 89 protected: |
| 90 FPDF_FILEHANDLER* m_pFS; | 90 FPDF_FILEHANDLER* m_pFS; |
| 91 FX_FILESIZE m_nCurPos; | 91 FX_FILESIZE m_nCurPos; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 // Conversions from FPDF_ types. | 94 // Conversions from FPDF_ types. |
| 95 CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc); | 95 CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc); |
| 96 CPDF_Page* CPDFPageFromFPDFPage(FPDF_PAGE page); |
| 96 | 97 |
| 97 void DropContext(void* data); | 98 void DropContext(void* data); |
| 98 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); | 99 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); |
| 99 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); | 100 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); |
| 100 void FPDF_RenderPage_Retail(CRenderContext* pContext, | 101 void FPDF_RenderPage_Retail(CRenderContext* pContext, |
| 101 FPDF_PAGE page, | 102 FPDF_PAGE page, |
| 102 int start_x, | 103 int start_x, |
| 103 int start_y, | 104 int start_y, |
| 104 int size_x, | 105 int size_x, |
| 105 int size_y, | 106 int size_y, |
| 106 int rotate, | 107 int rotate, |
| 107 int flags, | 108 int flags, |
| 108 FX_BOOL bNeedToRestore, | 109 FX_BOOL bNeedToRestore, |
| 109 IFSDK_PAUSE_Adapter* pause); | 110 IFSDK_PAUSE_Adapter* pause); |
| 110 | 111 |
| 111 void CheckUnSupportError(CPDF_Document* pDoc, FX_DWORD err_code); | 112 void CheckUnSupportError(CPDF_Document* pDoc, FX_DWORD err_code); |
| 112 void CheckUnSupportAnnot(CPDF_Document* pDoc, CPDF_Annot* pPDFAnnot); | 113 void CheckUnSupportAnnot(CPDF_Document* pDoc, CPDF_Annot* pPDFAnnot); |
| 113 void ProcessParseError(FX_DWORD err_code); | 114 void ProcessParseError(FX_DWORD err_code); |
| 114 | 115 |
| 115 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ | 116 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ |
| OLD | NEW |