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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 // IFX_FileRead | 46 // IFX_FileRead |
47 FX_FILESIZE GetSize() override { return m_FileAccess.m_FileLen; } | 47 FX_FILESIZE GetSize() override { return m_FileAccess.m_FileLen; } |
48 void Release() override { delete this; } | 48 void Release() override { delete this; } |
49 FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override; | 49 FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override; |
50 | 50 |
51 private: | 51 private: |
52 FPDF_FILEACCESS m_FileAccess; | 52 FPDF_FILEACCESS m_FileAccess; |
53 }; | 53 }; |
54 | 54 |
55 // Conversions from FPDF_ types. | 55 // Conversions to/from FPDF_ types. |
56 CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc); | 56 CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc); |
| 57 FPDF_DOCUMENT FPDFDocumentFromCPDFDocument(CPDF_Document* doc); |
| 58 |
57 CPDF_Page* CPDFPageFromFPDFPage(FPDF_PAGE page); | 59 CPDF_Page* CPDFPageFromFPDFPage(FPDF_PAGE page); |
58 | 60 |
59 void DropContext(void* data); | 61 void DropContext(void* data); |
60 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); | 62 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); |
61 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); | 63 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); |
62 void FPDF_RenderPage_Retail(CRenderContext* pContext, | 64 void FPDF_RenderPage_Retail(CRenderContext* pContext, |
63 FPDF_PAGE page, | 65 FPDF_PAGE page, |
64 int start_x, | 66 int start_x, |
65 int start_y, | 67 int start_y, |
66 int size_x, | 68 int size_x, |
67 int size_y, | 69 int size_y, |
68 int rotate, | 70 int rotate, |
69 int flags, | 71 int flags, |
70 FX_BOOL bNeedToRestore, | 72 FX_BOOL bNeedToRestore, |
71 IFSDK_PAUSE_Adapter* pause); | 73 IFSDK_PAUSE_Adapter* pause); |
72 | 74 |
73 void CheckUnSupportError(CPDF_Document* pDoc, FX_DWORD err_code); | 75 void CheckUnSupportError(CPDF_Document* pDoc, FX_DWORD err_code); |
74 void CheckUnSupportAnnot(CPDF_Document* pDoc, CPDF_Annot* pPDFAnnot); | 76 void CheckUnSupportAnnot(CPDF_Document* pDoc, CPDF_Annot* pPDFAnnot); |
75 void ProcessParseError(FX_DWORD err_code); | 77 void ProcessParseError(FX_DWORD err_code); |
76 | 78 |
77 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ | 79 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ |
OLD | NEW |