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

Side by Side Diff: core/fpdfapi/fpdf_parser/include/cpdf_document.h

Issue 2341373003: Reduce duplicated code in CPDF_Document by adding auxiliary methods (Closed)
Patch Set: Typo Created 4 years, 3 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 | « core/fpdfapi/fpdf_parser/cpdf_document.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ 7 #ifndef CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_
8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ 8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_
9 9
10 #include <functional>
10 #include <memory> 11 #include <memory>
11 12
12 #include "core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h" 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h"
13 #include "core/fpdfapi/fpdf_parser/include/cpdf_object.h" 14 #include "core/fpdfapi/fpdf_parser/include/cpdf_object.h"
14 #include "core/fpdfdoc/include/cpdf_linklist.h" 15 #include "core/fpdfdoc/include/cpdf_linklist.h"
15 #include "core/fxcrt/include/fx_basic.h" 16 #include "core/fxcrt/include/fx_basic.h"
16 17
17 class CFX_Font; 18 class CFX_Font;
18 class CFX_Matrix; 19 class CFX_Matrix;
19 class CPDF_ColorSpace; 20 class CPDF_ColorSpace;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. 122 // TODO(thestig): Figure out why this cannot be a std::unique_ptr.
122 CPDF_DocPageData* m_pDocPage; 123 CPDF_DocPageData* m_pDocPage;
123 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; 124 std::unique_ptr<CPDF_DocRenderData> m_pDocRender;
124 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext; 125 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext;
125 std::unique_ptr<CPDF_LinkList> m_pLinksContext; 126 std::unique_ptr<CPDF_LinkList> m_pLinksContext;
126 127
127 private: 128 private:
128 void LoadDocInternal(); 129 void LoadDocInternal();
129 size_t CalculateEncodingDict(int charset, CPDF_Dictionary* pBaseDict); 130 size_t CalculateEncodingDict(int charset, CPDF_Dictionary* pBaseDict);
130 CPDF_Dictionary* GetPagesDict() const; 131 CPDF_Dictionary* GetPagesDict() const;
132 CPDF_Dictionary* ProcessbCJK(
133 CPDF_Dictionary* pBaseDict,
134 int charset,
135 FX_BOOL bVert,
136 CFX_ByteString basefont,
137 std::function<void(FX_WCHAR, FX_WCHAR, CPDF_Array*)> Insert);
131 }; 138 };
132 139
133 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ 140 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/cpdf_document.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698