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

Side by Side Diff: core/fpdfapi/parser/cpdf_document.h

Issue 2472473005: Move CPDF_Document insert methods from namespace (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
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_PARSER_CPDF_DOCUMENT_H_ 7 #ifndef CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_
8 #define CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_ 8 #define CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_
9 9
10 #include <functional> 10 #include <functional>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 CPDF_Object* ParseIndirectObject(uint32_t objnum) override; 117 CPDF_Object* ParseIndirectObject(uint32_t objnum) override;
118 void LoadDocInternal(); 118 void LoadDocInternal();
119 size_t CalculateEncodingDict(int charset, CPDF_Dictionary* pBaseDict); 119 size_t CalculateEncodingDict(int charset, CPDF_Dictionary* pBaseDict);
120 CPDF_Dictionary* GetPagesDict() const; 120 CPDF_Dictionary* GetPagesDict() const;
121 CPDF_Dictionary* ProcessbCJK( 121 CPDF_Dictionary* ProcessbCJK(
122 CPDF_Dictionary* pBaseDict, 122 CPDF_Dictionary* pBaseDict,
123 int charset, 123 int charset,
124 bool bVert, 124 bool bVert,
125 CFX_ByteString basefont, 125 CFX_ByteString basefont,
126 std::function<void(FX_WCHAR, FX_WCHAR, CPDF_Array*)> Insert); 126 std::function<void(FX_WCHAR, FX_WCHAR, CPDF_Array*)> Insert);
127 int InsertDeletePDFPage(CPDF_Dictionary* pPages,
128 int nPagesToGo,
129 CPDF_Dictionary* pPage,
130 bool bInsert,
131 std::set<CPDF_Dictionary*>* pVisited);
132 int InsertNewPage(int iPage,
133 CPDF_Dictionary* pPageDict,
134 CFX_ArrayTemplate<uint32_t>& pageList);
127 135
128 std::unique_ptr<CPDF_Parser> m_pParser; 136 std::unique_ptr<CPDF_Parser> m_pParser;
129 CPDF_Dictionary* m_pRootDict; 137 CPDF_Dictionary* m_pRootDict;
130 CPDF_Dictionary* m_pInfoDict; 138 CPDF_Dictionary* m_pInfoDict;
131 bool m_bLinearized; 139 bool m_bLinearized;
132 int m_iFirstPageNo; 140 int m_iFirstPageNo;
133 uint32_t m_dwFirstPageObjNum; 141 uint32_t m_dwFirstPageObjNum;
134 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. 142 // TODO(thestig): Figure out why this cannot be a std::unique_ptr.
135 CPDF_DocPageData* m_pDocPage; 143 CPDF_DocPageData* m_pDocPage;
136 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; 144 std::unique_ptr<CPDF_DocRenderData> m_pDocRender;
137 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext; 145 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext;
138 std::unique_ptr<CPDF_LinkList> m_pLinksContext; 146 std::unique_ptr<CPDF_LinkList> m_pLinksContext;
139 CFX_ArrayTemplate<uint32_t> m_PageList; 147 CFX_ArrayTemplate<uint32_t> m_PageList;
140 CFX_WeakPtr<CFX_ByteStringPool> m_pByteStringPool; 148 CFX_WeakPtr<CFX_ByteStringPool> m_pByteStringPool;
141 }; 149 };
142 150
143 #endif // CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_ 151 #endif // CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_
OLDNEW
« no previous file with comments | « no previous file | core/fpdfapi/parser/cpdf_document.cpp » ('j') | core/fpdfapi/parser/cpdf_document.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698