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

Side by Side Diff: core/src/fpdfapi/fpdf_page/pageint.h

Issue 1725303003: Fix static initializers. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 years, 10 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/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp ('k') | fpdfsdk/include/fpdfxfa/fpdfxfa_util.h » ('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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 7 #ifndef CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_
8 #define CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 8 #define CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 void RestoreStates(CPDF_AllStates*); 147 void RestoreStates(CPDF_AllStates*);
148 CPDF_Font* FindFont(const CFX_ByteString& name); 148 CPDF_Font* FindFont(const CFX_ByteString& name);
149 CPDF_ColorSpace* FindColorSpace(const CFX_ByteString& name); 149 CPDF_ColorSpace* FindColorSpace(const CFX_ByteString& name);
150 CPDF_Pattern* FindPattern(const CFX_ByteString& name, FX_BOOL bShading); 150 CPDF_Pattern* FindPattern(const CFX_ByteString& name, FX_BOOL bShading);
151 CPDF_Object* FindResourceObj(const CFX_ByteStringC& type, 151 CPDF_Object* FindResourceObj(const CFX_ByteStringC& type,
152 const CFX_ByteString& name); 152 const CFX_ByteString& name);
153 153
154 protected: 154 protected:
155 using OpCodes = 155 using OpCodes =
156 std::unordered_map<FX_DWORD, void (CPDF_StreamContentParser::*)()>; 156 std::unordered_map<FX_DWORD, void (CPDF_StreamContentParser::*)()>;
157 static const OpCodes s_OpCodes; 157 static OpCodes InitializeOpCodes();
158 158
159 void Handle_CloseFillStrokePath(); 159 void Handle_CloseFillStrokePath();
160 void Handle_FillStrokePath(); 160 void Handle_FillStrokePath();
161 void Handle_CloseEOFillStrokePath(); 161 void Handle_CloseEOFillStrokePath();
162 void Handle_EOFillStrokePath(); 162 void Handle_EOFillStrokePath();
163 void Handle_BeginMarkedContent_Dictionary(); 163 void Handle_BeginMarkedContent_Dictionary();
164 void Handle_BeginImage(); 164 void Handle_BeginImage();
165 void Handle_BeginMarkedContent(); 165 void Handle_BeginMarkedContent();
166 void Handle_BeginText(); 166 void Handle_BeginText();
167 void Handle_CurveTo_123(); 167 void Handle_CurveTo_123();
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 449
450 private: 450 private:
451 CPDF_ColorSpace* m_pBaseCS; 451 CPDF_ColorSpace* m_pBaseCS;
452 CPDF_CountedColorSpace* m_pCountedBaseCS; 452 CPDF_CountedColorSpace* m_pCountedBaseCS;
453 }; 453 };
454 454
455 void PDF_ReplaceAbbr(CPDF_Object* pObj); 455 void PDF_ReplaceAbbr(CPDF_Object* pObj);
456 bool IsPathOperator(const uint8_t* buf, size_t len); 456 bool IsPathOperator(const uint8_t* buf, size_t len);
457 457
458 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 458 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp ('k') | fpdfsdk/include/fpdfxfa/fpdfxfa_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698