Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(591)

Side by Side Diff: fpdfsdk/include/fsdk_define.h

Issue 1398703009: Next round of XFA changes to match master (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: remove arg Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | fpdfsdk/include/fsdk_mgr.h » ('j') | fpdfsdk/src/javascript/JS_GlobalData.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // IFX_FileRead 55 // IFX_FileRead
56 FX_FILESIZE GetSize() override { return m_FileAccess.m_FileLen; } 56 FX_FILESIZE GetSize() override { return m_FileAccess.m_FileLen; }
57 void Release() override { delete this; } 57 void Release() override { delete this; }
58 FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override; 58 FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override;
59 59
60 virtual CFX_ByteString GetFullPath() { return ""; } 60 virtual CFX_ByteString GetFullPath() { return ""; }
61 virtual FX_BOOL GetByte(FX_DWORD pos, uint8_t& ch); 61 virtual FX_BOOL GetByte(FX_DWORD pos, uint8_t& ch);
62 virtual FX_BOOL GetBlock(FX_DWORD pos, uint8_t* pBuf, FX_DWORD size); 62 virtual FX_BOOL GetBlock(FX_DWORD pos, uint8_t* pBuf, FX_DWORD size);
63 63
64 private:
64 FPDF_FILEACCESS m_FileAccess; 65 FPDF_FILEACCESS m_FileAccess;
65 uint8_t m_Buffer[512]; 66 uint8_t m_Buffer[512];
66 FX_DWORD m_BufferOffset; 67 FX_DWORD m_BufferOffset;
67 }; 68 };
68 69
69 class CFPDF_FileStream : public IFX_FileStream { 70 class CFPDF_FileStream : public IFX_FileStream {
70 public: 71 public:
71 CFPDF_FileStream(FPDF_FILEHANDLER* pFS); 72 CFPDF_FileStream(FPDF_FILEHANDLER* pFS);
72 virtual ~CFPDF_FileStream() {} 73 virtual ~CFPDF_FileStream() {}
73 74
(...skipping 28 matching lines...) Expand all
102 int rotate, 103 int rotate,
103 int flags, 104 int flags,
104 FX_BOOL bNeedToRestore, 105 FX_BOOL bNeedToRestore,
105 IFSDK_PAUSE_Adapter* pause); 106 IFSDK_PAUSE_Adapter* pause);
106 107
107 void CheckUnSupportError(CPDF_Document* pDoc, FX_DWORD err_code); 108 void CheckUnSupportError(CPDF_Document* pDoc, FX_DWORD err_code);
108 void CheckUnSupportAnnot(CPDF_Document* pDoc, CPDF_Annot* pPDFAnnot); 109 void CheckUnSupportAnnot(CPDF_Document* pDoc, CPDF_Annot* pPDFAnnot);
109 void ProcessParseError(FX_DWORD err_code); 110 void ProcessParseError(FX_DWORD err_code);
110 111
111 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ 112 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/include/fsdk_mgr.h » ('j') | fpdfsdk/src/javascript/JS_GlobalData.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698