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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 class CPDF_CustomAccess final : public IFX_FileRead | 42 class CPDF_CustomAccess final : public IFX_FileRead |
43 { | 43 { |
44 public: | 44 public: |
45 CPDF_CustomAccess(FPDF_FILEACCESS* pFileAccess); | 45 CPDF_CustomAccess(FPDF_FILEACCESS* pFileAccess); |
46 ~CPDF_CustomAccess() {} | 46 ~CPDF_CustomAccess() {} |
47 | 47 |
48 virtual FX_FILESIZE GetSize() override { return m_FileAccess.m_FileL
en; } | 48 virtual FX_FILESIZE GetSize() override { return m_FileAccess.m_FileL
en; } |
49 | 49 |
50 virtual void Release() override { delete this; } | 50 virtual void Release() override { delete this; } |
51 | 51 |
52 » virtual FX_BOOL»» ReadBlock(void* buffer, FX_FILESIZE offset, size
_t size) override; | 52 » virtual bool» » ReadBlock(void* buffer, FX_FILESIZE offset, size
_t size) override; |
53 | 53 |
54 private: | 54 private: |
55 FPDF_FILEACCESS m_FileAccess; | 55 FPDF_FILEACCESS m_FileAccess; |
56 }; | 56 }; |
57 | 57 |
58 void DropContext(void* data); | 58 void DropContext(void* data); |
59 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); | 59 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); |
60 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); | 60 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); |
61 void FPDF_RenderPage_Retail(CRenderContext* pContext, FPDF_PAGE page, | 61 void FPDF_RenderPage_Retail(CRenderContext* pContext, FPDF_PAGE page, |
62 int start_x, int start_y, int size_x, int size_y, | 62 int start_x, int start_y, int size_x, int size_y, |
63 int rotate, int flags, FX_BOOL bNeedToRestore, | 63 int rotate, int flags, bool bNeedToRestore, |
64 IFSDK_PAUSE_Adapter* pause); | 64 IFSDK_PAUSE_Adapter* pause); |
65 | 65 |
66 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ | 66 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ |
OLD | NEW |