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

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

Issue 2474283005: Revert of Unify some code (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/parser/cpdf_data_avail.cpp ('k') | core/fpdfapi/parser/cpdf_document.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 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>
11 #include <memory> 11 #include <memory>
12 12
13 #include "core/fpdfapi/parser/cpdf_indirect_object_holder.h" 13 #include "core/fpdfapi/parser/cpdf_indirect_object_holder.h"
14 #include "core/fpdfapi/parser/cpdf_object.h" 14 #include "core/fpdfapi/parser/cpdf_object.h"
15 #include "core/fpdfdoc/cpdf_linklist.h" 15 #include "core/fpdfdoc/cpdf_linklist.h"
16 #include "core/fxcrt/cfx_string_pool_template.h" 16 #include "core/fxcrt/cfx_string_pool_template.h"
17 #include "core/fxcrt/cfx_weak_ptr.h" 17 #include "core/fxcrt/cfx_weak_ptr.h"
18 #include "core/fxcrt/fx_basic.h" 18 #include "core/fxcrt/fx_basic.h"
19 19
20 class CFX_Font; 20 class CFX_Font;
21 class CFX_Matrix; 21 class CFX_Matrix;
22 class CPDF_ColorSpace; 22 class CPDF_ColorSpace;
23 class CPDF_DocPageData; 23 class CPDF_DocPageData;
24 class CPDF_DocRenderData; 24 class CPDF_DocRenderData;
25 class CPDF_Font; 25 class CPDF_Font;
26 class CPDF_FontEncoding; 26 class CPDF_FontEncoding;
27 class CPDF_IccProfile; 27 class CPDF_IccProfile;
28 class CPDF_Image; 28 class CPDF_Image;
29 class CPDF_Linearized;
30 class CPDF_Parser; 29 class CPDF_Parser;
31 class CPDF_Pattern; 30 class CPDF_Pattern;
32 class CPDF_StreamAcc; 31 class CPDF_StreamAcc;
33 class JBig2_DocumentContext; 32 class JBig2_DocumentContext;
34 33
35 #define FPDFPERM_PRINT 0x0004 34 #define FPDFPERM_PRINT 0x0004
36 #define FPDFPERM_MODIFY 0x0008 35 #define FPDFPERM_MODIFY 0x0008
37 #define FPDFPERM_EXTRACT 0x0010 36 #define FPDFPERM_EXTRACT 0x0010
38 #define FPDFPERM_ANNOT_FORM 0x0020 37 #define FPDFPERM_ANNOT_FORM 0x0020
39 #define FPDFPERM_FILL_FORM 0x0100 38 #define FPDFPERM_FILL_FORM 0x0100
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 78
80 CPDF_Pattern* LoadPattern(CPDF_Object* pObj, 79 CPDF_Pattern* LoadPattern(CPDF_Object* pObj,
81 bool bShading, 80 bool bShading,
82 const CFX_Matrix& matrix); 81 const CFX_Matrix& matrix);
83 82
84 CPDF_Image* LoadImageF(CPDF_Object* pObj); 83 CPDF_Image* LoadImageF(CPDF_Object* pObj);
85 CPDF_StreamAcc* LoadFontFile(CPDF_Stream* pStream); 84 CPDF_StreamAcc* LoadFontFile(CPDF_Stream* pStream);
86 CPDF_IccProfile* LoadIccProfile(CPDF_Stream* pStream); 85 CPDF_IccProfile* LoadIccProfile(CPDF_Stream* pStream);
87 86
88 void LoadDoc(); 87 void LoadDoc();
89 void LoadLinearizedDoc(const CPDF_Linearized* pLinearizationParams); 88 void LoadLinearizedDoc(CPDF_Dictionary* pLinearizationParams);
90 void LoadPages(); 89 void LoadPages();
91 90
92 void CreateNewDoc(); 91 void CreateNewDoc();
93 CPDF_Dictionary* CreateNewPage(int iPage); 92 CPDF_Dictionary* CreateNewPage(int iPage);
94 93
95 CPDF_Font* AddStandardFont(const FX_CHAR* font, CPDF_FontEncoding* pEncoding); 94 CPDF_Font* AddStandardFont(const FX_CHAR* font, CPDF_FontEncoding* pEncoding);
96 CPDF_Font* AddFont(CFX_Font* pFont, int charset, bool bVert); 95 CPDF_Font* AddFont(CFX_Font* pFont, int charset, bool bVert);
97 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 96 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
98 CPDF_Font* AddWindowsFont(LOGFONTA* pLogFont, 97 CPDF_Font* AddWindowsFont(LOGFONTA* pLogFont,
99 bool bVert, 98 bool bVert,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. 146 // TODO(thestig): Figure out why this cannot be a std::unique_ptr.
148 CPDF_DocPageData* m_pDocPage; 147 CPDF_DocPageData* m_pDocPage;
149 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; 148 std::unique_ptr<CPDF_DocRenderData> m_pDocRender;
150 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext; 149 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext;
151 std::unique_ptr<CPDF_LinkList> m_pLinksContext; 150 std::unique_ptr<CPDF_LinkList> m_pLinksContext;
152 CFX_ArrayTemplate<uint32_t> m_PageList; 151 CFX_ArrayTemplate<uint32_t> m_PageList;
153 CFX_WeakPtr<CFX_ByteStringPool> m_pByteStringPool; 152 CFX_WeakPtr<CFX_ByteStringPool> m_pByteStringPool;
154 }; 153 };
155 154
156 #endif // CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_ 155 #endif // CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/parser/cpdf_data_avail.cpp ('k') | core/fpdfapi/parser/cpdf_document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698