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

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

Issue 2489423002: Make CPDF_PageContentGenerator methods take object numbers (Closed)
Patch Set: Rebase past fix in separate CL 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/page/cpdf_streamcontentparser.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>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // |pFontDict| must not be null. 75 // |pFontDict| must not be null.
76 CPDF_Font* LoadFont(CPDF_Dictionary* pFontDict); 76 CPDF_Font* LoadFont(CPDF_Dictionary* pFontDict);
77 CPDF_ColorSpace* LoadColorSpace(CPDF_Object* pCSObj, 77 CPDF_ColorSpace* LoadColorSpace(CPDF_Object* pCSObj,
78 CPDF_Dictionary* pResources = nullptr); 78 CPDF_Dictionary* pResources = nullptr);
79 79
80 CPDF_Pattern* LoadPattern(CPDF_Object* pObj, 80 CPDF_Pattern* LoadPattern(CPDF_Object* pObj,
81 bool bShading, 81 bool bShading,
82 const CFX_Matrix& matrix); 82 const CFX_Matrix& matrix);
83 83
84 CPDF_Image* LoadImageF(CPDF_Object* pObj); 84 CPDF_Image* LoadImageFromPageData(uint32_t dwStreamObjNum);
85 CPDF_StreamAcc* LoadFontFile(CPDF_Stream* pStream); 85 CPDF_StreamAcc* LoadFontFile(CPDF_Stream* pStream);
86 CPDF_IccProfile* LoadIccProfile(CPDF_Stream* pStream); 86 CPDF_IccProfile* LoadIccProfile(CPDF_Stream* pStream);
87 87
88 void LoadDoc(); 88 void LoadDoc();
89 void LoadLinearizedDoc(const CPDF_LinearizedHeader* pLinearizationParams); 89 void LoadLinearizedDoc(const CPDF_LinearizedHeader* pLinearizationParams);
90 void LoadPages(); 90 void LoadPages();
91 91
92 void CreateNewDoc(); 92 void CreateNewDoc();
93 CPDF_Dictionary* CreateNewPage(int iPage); 93 CPDF_Dictionary* CreateNewPage(int iPage);
94 94
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. 147 // TODO(thestig): Figure out why this cannot be a std::unique_ptr.
148 CPDF_DocPageData* m_pDocPage; 148 CPDF_DocPageData* m_pDocPage;
149 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; 149 std::unique_ptr<CPDF_DocRenderData> m_pDocRender;
150 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext; 150 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext;
151 std::unique_ptr<CPDF_LinkList> m_pLinksContext; 151 std::unique_ptr<CPDF_LinkList> m_pLinksContext;
152 CFX_ArrayTemplate<uint32_t> m_PageList; 152 CFX_ArrayTemplate<uint32_t> m_PageList;
153 CFX_WeakPtr<CFX_ByteStringPool> m_pByteStringPool; 153 CFX_WeakPtr<CFX_ByteStringPool> m_pByteStringPool;
154 }; 154 };
155 155
156 #endif // CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_ 156 #endif // CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/page/cpdf_streamcontentparser.cpp ('k') | core/fpdfapi/parser/cpdf_document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698