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

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

Issue 2009253003: Clean up fx_ge.h and IWYU. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: win Created 4 years, 6 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
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/fpdfapi/fpdf_parser/include/cpdf_parser.h" 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_parser.h"
11 #include "core/fpdfdoc/include/fpdf_doc.h" 11 #include "core/fpdfdoc/include/fpdf_doc.h"
12 #include "core/fxge/include/fx_ge.h"
13 #include "core/fxge/include/fx_ge_win32.h"
14 #include "public/fpdfview.h" 12 #include "public/fpdfview.h"
15 13
16 #ifdef PDF_ENABLE_XFA 14 #ifdef PDF_ENABLE_XFA
17 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" 15 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h"
18 #endif // PDF_ENABLE_XFA 16 #endif // PDF_ENABLE_XFA
19 17
20 #ifdef _WIN32 18 #ifdef _WIN32
21 #include <math.h> 19 #include <math.h>
22 #include <tchar.h> 20 #include <tchar.h>
23 #endif 21 #endif
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 FPDF_FILEACCESS m_FileAccess; 54 FPDF_FILEACCESS m_FileAccess;
57 #ifdef PDF_ENABLE_XFA 55 #ifdef PDF_ENABLE_XFA
58 uint8_t m_Buffer[512]; 56 uint8_t m_Buffer[512];
59 uint32_t m_BufferOffset; 57 uint32_t m_BufferOffset;
60 #endif // PDF_ENABLE_XFA 58 #endif // PDF_ENABLE_XFA
61 }; 59 };
62 60
63 #ifdef PDF_ENABLE_XFA 61 #ifdef PDF_ENABLE_XFA
64 class CFPDF_FileStream : public IFX_FileStream { 62 class CFPDF_FileStream : public IFX_FileStream {
65 public: 63 public:
66 CFPDF_FileStream(FPDF_FILEHANDLER* pFS); 64 explicit CFPDF_FileStream(FPDF_FILEHANDLER* pFS);
67 virtual ~CFPDF_FileStream() {} 65 virtual ~CFPDF_FileStream() {}
68 66
69 virtual IFX_FileStream* Retain(); 67 virtual IFX_FileStream* Retain();
dsinclair 2016/05/26 02:55:17 Should any of these virtuals be overrides?
Lei Zhang 2016/05/26 04:23:16 Done.
70 virtual void Release(); 68 virtual void Release();
71 69
72 virtual FX_FILESIZE GetSize(); 70 virtual FX_FILESIZE GetSize();
73 virtual FX_BOOL IsEOF(); 71 virtual FX_BOOL IsEOF();
74 virtual FX_FILESIZE GetPosition() { return m_nCurPos; } 72 virtual FX_FILESIZE GetPosition() { return m_nCurPos; }
75 virtual void SetPosition(FX_FILESIZE pos) { m_nCurPos = pos; } 73 virtual void SetPosition(FX_FILESIZE pos) { m_nCurPos = pos; }
76 virtual FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size); 74 virtual FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size);
77 virtual size_t ReadBlock(void* buffer, size_t size); 75 virtual size_t ReadBlock(void* buffer, size_t size);
78 virtual FX_BOOL WriteBlock(const void* buffer, 76 virtual FX_BOOL WriteBlock(const void* buffer,
79 FX_FILESIZE offset, 77 FX_FILESIZE offset,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 int rotate, 118 int rotate,
121 int flags, 119 int flags,
122 FX_BOOL bNeedToRestore, 120 FX_BOOL bNeedToRestore,
123 IFSDK_PAUSE_Adapter* pause); 121 IFSDK_PAUSE_Adapter* pause);
124 122
125 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code); 123 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code);
126 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot); 124 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot);
127 void ProcessParseError(CPDF_Parser::Error err); 125 void ProcessParseError(CPDF_Parser::Error err);
128 126
129 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ 127 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698