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

Side by Side Diff: fpdfsdk/fsdk_define.h

Issue 2450183003: Fix some FX_BOOL / int noise in fxcrt. (Closed)
Patch Set: moar Created 4 years, 1 month 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 | « fpdfsdk/fpdfview.cpp ('k') | xfa/fgas/crt/fgas_stream.h » ('j') | no next file with comments »
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_FSDK_DEFINE_H_ 7 #ifndef FPDFSDK_FSDK_DEFINE_H_
8 #define FPDFSDK_FSDK_DEFINE_H_ 8 #define FPDFSDK_FSDK_DEFINE_H_
9 9
10 #include "core/fpdfapi/parser/cpdf_parser.h" 10 #include "core/fpdfapi/parser/cpdf_parser.h"
(...skipping 15 matching lines...) Expand all
26 class IFSDK_PAUSE_Adapter; 26 class IFSDK_PAUSE_Adapter;
27 27
28 class CPDF_CustomAccess final : public IFX_SeekableReadStream { 28 class CPDF_CustomAccess final : public IFX_SeekableReadStream {
29 public: 29 public:
30 explicit CPDF_CustomAccess(FPDF_FILEACCESS* pFileAccess); 30 explicit CPDF_CustomAccess(FPDF_FILEACCESS* pFileAccess);
31 ~CPDF_CustomAccess() override {} 31 ~CPDF_CustomAccess() override {}
32 32
33 // IFX_SeekableReadStream 33 // IFX_SeekableReadStream
34 FX_FILESIZE GetSize() override; 34 FX_FILESIZE GetSize() override;
35 void Release() override; 35 void Release() override;
36 FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override; 36 bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override;
37 37
38 private: 38 private:
39 FPDF_FILEACCESS m_FileAccess; 39 FPDF_FILEACCESS m_FileAccess;
40 }; 40 };
41 41
42 #ifdef PDF_ENABLE_XFA 42 #ifdef PDF_ENABLE_XFA
43 class CFPDF_FileStream : public IFX_SeekableStream { 43 class CFPDF_FileStream : public IFX_SeekableStream {
44 public: 44 public:
45 explicit CFPDF_FileStream(FPDF_FILEHANDLER* pFS); 45 explicit CFPDF_FileStream(FPDF_FILEHANDLER* pFS);
46 ~CFPDF_FileStream() override {} 46 ~CFPDF_FileStream() override {}
47 47
48 // IFX_SeekableStream: 48 // IFX_SeekableStream:
49 IFX_SeekableStream* Retain() override; 49 IFX_SeekableStream* Retain() override;
50 void Release() override; 50 void Release() override;
51 FX_FILESIZE GetSize() override; 51 FX_FILESIZE GetSize() override;
52 FX_BOOL IsEOF() override; 52 bool IsEOF() override;
53 FX_FILESIZE GetPosition() override; 53 FX_FILESIZE GetPosition() override;
54 FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override; 54 bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override;
55 size_t ReadBlock(void* buffer, size_t size) override; 55 size_t ReadBlock(void* buffer, size_t size) override;
56 FX_BOOL WriteBlock(const void* buffer, 56 bool WriteBlock(const void* buffer, FX_FILESIZE offset, size_t size) override;
57 FX_FILESIZE offset, 57 bool Flush() override;
58 size_t size) override;
59 FX_BOOL Flush() override;
60 58
61 void SetPosition(FX_FILESIZE pos) { m_nCurPos = pos; } 59 void SetPosition(FX_FILESIZE pos) { m_nCurPos = pos; }
62 60
63 protected: 61 protected:
64 FPDF_FILEHANDLER* m_pFS; 62 FPDF_FILEHANDLER* m_pFS;
65 FX_FILESIZE m_nCurPos; 63 FX_FILESIZE m_nCurPos;
66 }; 64 };
67 #endif // PDF_ENABLE_XFA 65 #endif // PDF_ENABLE_XFA
68 66
69 // Object types for public FPDF_ types; these correspond to next layer down 67 // Object types for public FPDF_ types; these correspond to next layer down
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 int rotate, 100 int rotate,
103 int flags, 101 int flags,
104 FX_BOOL bNeedToRestore, 102 FX_BOOL bNeedToRestore,
105 IFSDK_PAUSE_Adapter* pause); 103 IFSDK_PAUSE_Adapter* pause);
106 104
107 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code); 105 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code);
108 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot); 106 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot);
109 void ProcessParseError(CPDF_Parser::Error err); 107 void ProcessParseError(CPDF_Parser::Error err);
110 108
111 #endif // FPDFSDK_FSDK_DEFINE_H_ 109 #endif // FPDFSDK_FSDK_DEFINE_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfview.cpp ('k') | xfa/fgas/crt/fgas_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698