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

Side by Side Diff: core/fpdfapi/edit/editint.h

Issue 2477443002: Remove FX_BOOL from core (Closed)
Patch Set: 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 | « core/fpdfapi/edit/cpdf_creator.h ('k') | core/fpdfapi/edit/fpdf_edit_create.cpp » ('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 CORE_FPDFAPI_EDIT_EDITINT_H_ 7 #ifndef CORE_FPDFAPI_EDIT_EDITINT_H_
8 #define CORE_FPDFAPI_EDIT_EDITINT_H_ 8 #define CORE_FPDFAPI_EDIT_EDITINT_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class CPDF_XRefStream { 42 class CPDF_XRefStream {
43 public: 43 public:
44 struct Index { 44 struct Index {
45 uint32_t objnum; 45 uint32_t objnum;
46 uint32_t count; 46 uint32_t count;
47 }; 47 };
48 48
49 CPDF_XRefStream(); 49 CPDF_XRefStream();
50 ~CPDF_XRefStream(); 50 ~CPDF_XRefStream();
51 51
52 FX_BOOL Start(); 52 bool Start();
53 int32_t CompressIndirectObject(uint32_t dwObjNum, 53 int32_t CompressIndirectObject(uint32_t dwObjNum,
54 const CPDF_Object* pObj, 54 const CPDF_Object* pObj,
55 CPDF_Creator* pCreator); 55 CPDF_Creator* pCreator);
56 int32_t CompressIndirectObject(uint32_t dwObjNum, 56 int32_t CompressIndirectObject(uint32_t dwObjNum,
57 const uint8_t* pBuffer, 57 const uint8_t* pBuffer,
58 uint32_t dwSize, 58 uint32_t dwSize,
59 CPDF_Creator* pCreator); 59 CPDF_Creator* pCreator);
60 FX_BOOL End(CPDF_Creator* pCreator, FX_BOOL bEOF = FALSE); 60 bool End(CPDF_Creator* pCreator, bool bEOF = false);
61 void AddObjectNumberToIndexArray(uint32_t objnum); 61 void AddObjectNumberToIndexArray(uint32_t objnum);
62 FX_BOOL EndXRefStream(CPDF_Creator* pCreator); 62 bool EndXRefStream(CPDF_Creator* pCreator);
63 63
64 std::vector<Index> m_IndexArray; 64 std::vector<Index> m_IndexArray;
65 FX_FILESIZE m_PrevOffset; 65 FX_FILESIZE m_PrevOffset;
66 uint32_t m_dwTempObjNum; 66 uint32_t m_dwTempObjNum;
67 67
68 protected: 68 protected:
69 int32_t EndObjectStream(CPDF_Creator* pCreator, FX_BOOL bEOF = TRUE); 69 int32_t EndObjectStream(CPDF_Creator* pCreator, bool bEOF = true);
70 FX_BOOL GenerateXRefStream(CPDF_Creator* pCreator, FX_BOOL bEOF); 70 bool GenerateXRefStream(CPDF_Creator* pCreator, bool bEOF);
71 71
72 size_t m_iSeg; 72 size_t m_iSeg;
73 CPDF_ObjectStream m_ObjStream; 73 CPDF_ObjectStream m_ObjStream;
74 CFX_ByteTextBuf m_Buffer; 74 CFX_ByteTextBuf m_Buffer;
75 }; 75 };
76 76
77 #endif // CORE_FPDFAPI_EDIT_EDITINT_H_ 77 #endif // CORE_FPDFAPI_EDIT_EDITINT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/edit/cpdf_creator.h ('k') | core/fpdfapi/edit/fpdf_edit_create.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698