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/fpdfapi/fpdf_parser/include/cpdf_parser.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_parser.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 FPDF_DOCUMENT FPDFDocumentFromUnderlying(UnderlyingDocumentType* doc); | 102 FPDF_DOCUMENT FPDFDocumentFromUnderlying(UnderlyingDocumentType* doc); |
103 | 103 |
104 UnderlyingPageType* UnderlyingFromFPDFPage(FPDF_PAGE page); | 104 UnderlyingPageType* UnderlyingFromFPDFPage(FPDF_PAGE page); |
105 | 105 |
106 // Conversions to/from FPDF_ types. | 106 // Conversions to/from FPDF_ types. |
107 CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc); | 107 CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc); |
108 FPDF_DOCUMENT FPDFDocumentFromCPDFDocument(CPDF_Document* doc); | 108 FPDF_DOCUMENT FPDFDocumentFromCPDFDocument(CPDF_Document* doc); |
109 | 109 |
110 CPDF_Page* CPDFPageFromFPDFPage(FPDF_PAGE page); | 110 CPDF_Page* CPDFPageFromFPDFPage(FPDF_PAGE page); |
111 | 111 |
112 void DropContext(void* data); | |
113 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); | 112 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); |
114 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); | 113 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); |
115 void FPDF_RenderPage_Retail(CRenderContext* pContext, | 114 void FPDF_RenderPage_Retail(CRenderContext* pContext, |
116 FPDF_PAGE page, | 115 FPDF_PAGE page, |
117 int start_x, | 116 int start_x, |
118 int start_y, | 117 int start_y, |
119 int size_x, | 118 int size_x, |
120 int size_y, | 119 int size_y, |
121 int rotate, | 120 int rotate, |
122 int flags, | 121 int flags, |
123 FX_BOOL bNeedToRestore, | 122 FX_BOOL bNeedToRestore, |
124 IFSDK_PAUSE_Adapter* pause); | 123 IFSDK_PAUSE_Adapter* pause); |
125 | 124 |
126 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code); | 125 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code); |
127 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot); | 126 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot); |
128 void ProcessParseError(CPDF_Parser::Error err); | 127 void ProcessParseError(CPDF_Parser::Error err); |
129 | 128 |
130 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ | 129 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ |
OLD | NEW |