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

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: Fix winbots 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
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 <memory> 10 #include <memory>
Tom Sepez 2016/09/16 19:49:07 nit: #include <functional>
11 11
12 #include "core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h" 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h"
13 #include "core/fpdfapi/fpdf_parser/include/cpdf_object.h" 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_object.h"
14 #include "core/fpdfdoc/include/cpdf_linklist.h" 14 #include "core/fpdfdoc/include/cpdf_linklist.h"
15 #include "core/fxcrt/include/fx_basic.h" 15 #include "core/fxcrt/include/fx_basic.h"
16 16
17 class CFX_Font; 17 class CFX_Font;
18 class CFX_Matrix; 18 class CFX_Matrix;
19 class CPDF_ColorSpace; 19 class CPDF_ColorSpace;
20 class CPDF_DocPageData; 20 class CPDF_DocPageData;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. 121 // TODO(thestig): Figure out why this cannot be a std::unique_ptr.
122 CPDF_DocPageData* m_pDocPage; 122 CPDF_DocPageData* m_pDocPage;
123 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; 123 std::unique_ptr<CPDF_DocRenderData> m_pDocRender;
124 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext; 124 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext;
125 std::unique_ptr<CPDF_LinkList> m_pLinksContext; 125 std::unique_ptr<CPDF_LinkList> m_pLinksContext;
126 126
127 private: 127 private:
128 void LoadDocInternal(); 128 void LoadDocInternal();
129 size_t CalculateEncodingDict(int charset, CPDF_Dictionary* pBaseDict); 129 size_t CalculateEncodingDict(int charset, CPDF_Dictionary* pBaseDict);
130 CPDF_Dictionary* GetPagesDict() const; 130 CPDF_Dictionary* GetPagesDict() const;
131 CPDF_Dictionary* ProcessbCJK(
132 CPDF_Dictionary* pBaseDict,
133 int charset,
134 FX_BOOL bVert,
135 CFX_ByteString basefont,
136 std::function<void(FX_WCHAR, FX_WCHAR, CPDF_Array*)> Insert);
131 }; 137 };
132 138
133 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ 139 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_
OLDNEW
« core/fpdfapi/fpdf_parser/cpdf_document.cpp ('K') | « 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