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

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

Issue 1977093002: Make CFX_ByteString(const CFX_ByteStringC&) explicit. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase, nit Created 4 years, 7 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 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_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_
8 #define CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 8 #define CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void AddForm(CPDF_Stream* pStream); 148 void AddForm(CPDF_Stream* pStream);
149 void SetGraphicStates(CPDF_PageObject* pObj, 149 void SetGraphicStates(CPDF_PageObject* pObj,
150 FX_BOOL bColor, 150 FX_BOOL bColor,
151 FX_BOOL bText, 151 FX_BOOL bText,
152 FX_BOOL bGraph); 152 FX_BOOL bGraph);
153 void SaveStates(CPDF_AllStates* pState); 153 void SaveStates(CPDF_AllStates* pState);
154 void RestoreStates(CPDF_AllStates* pState); 154 void RestoreStates(CPDF_AllStates* pState);
155 CPDF_Font* FindFont(const CFX_ByteString& name); 155 CPDF_Font* FindFont(const CFX_ByteString& name);
156 CPDF_ColorSpace* FindColorSpace(const CFX_ByteString& name); 156 CPDF_ColorSpace* FindColorSpace(const CFX_ByteString& name);
157 CPDF_Pattern* FindPattern(const CFX_ByteString& name, bool bShading); 157 CPDF_Pattern* FindPattern(const CFX_ByteString& name, bool bShading);
158 CPDF_Object* FindResourceObj(const CFX_ByteStringC& type, 158 CPDF_Object* FindResourceObj(const CFX_ByteString& type,
159 const CFX_ByteString& name); 159 const CFX_ByteString& name);
160 160
161 protected: 161 protected:
162 using OpCodes = 162 using OpCodes =
163 std::unordered_map<uint32_t, void (CPDF_StreamContentParser::*)()>; 163 std::unordered_map<uint32_t, void (CPDF_StreamContentParser::*)()>;
164 static OpCodes InitializeOpCodes(); 164 static OpCodes InitializeOpCodes();
165 165
166 void Handle_CloseFillStrokePath(); 166 void Handle_CloseFillStrokePath();
167 void Handle_FillStrokePath(); 167 void Handle_FillStrokePath();
168 void Handle_CloseEOFillStrokePath(); 168 void Handle_CloseEOFillStrokePath();
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 std::unique_ptr<CPDF_StreamContentParser> m_pParser; 311 std::unique_ptr<CPDF_StreamContentParser> m_pParser;
312 }; 312 };
313 313
314 class CPDF_DocPageData { 314 class CPDF_DocPageData {
315 public: 315 public:
316 explicit CPDF_DocPageData(CPDF_Document* pPDFDoc); 316 explicit CPDF_DocPageData(CPDF_Document* pPDFDoc);
317 ~CPDF_DocPageData(); 317 ~CPDF_DocPageData();
318 318
319 void Clear(FX_BOOL bRelease = FALSE); 319 void Clear(FX_BOOL bRelease = FALSE);
320 CPDF_Font* GetFont(CPDF_Dictionary* pFontDict, FX_BOOL findOnly); 320 CPDF_Font* GetFont(CPDF_Dictionary* pFontDict, FX_BOOL findOnly);
321 CPDF_Font* GetStandardFont(const CFX_ByteStringC& fontName, 321 CPDF_Font* GetStandardFont(const CFX_ByteString& fontName,
322 CPDF_FontEncoding* pEncoding); 322 CPDF_FontEncoding* pEncoding);
323 void ReleaseFont(CPDF_Dictionary* pFontDict); 323 void ReleaseFont(CPDF_Dictionary* pFontDict);
324 CPDF_ColorSpace* GetColorSpace(CPDF_Object* pCSObj, 324 CPDF_ColorSpace* GetColorSpace(CPDF_Object* pCSObj,
325 const CPDF_Dictionary* pResources); 325 const CPDF_Dictionary* pResources);
326 CPDF_ColorSpace* GetCopiedColorSpace(CPDF_Object* pCSObj); 326 CPDF_ColorSpace* GetCopiedColorSpace(CPDF_Object* pCSObj);
327 void ReleaseColorSpace(CPDF_Object* pColorSpace); 327 void ReleaseColorSpace(CPDF_Object* pColorSpace);
328 CPDF_Pattern* GetPattern(CPDF_Object* pPatternObj, 328 CPDF_Pattern* GetPattern(CPDF_Object* pPatternObj,
329 FX_BOOL bShading, 329 FX_BOOL bShading,
330 const CFX_Matrix& matrix); 330 const CFX_Matrix& matrix);
331 void ReleasePattern(CPDF_Object* pPatternObj); 331 void ReleasePattern(CPDF_Object* pPatternObj);
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 }; 523 };
524 524
525 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr); 525 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr);
526 CFX_ByteStringC PDF_FindValueAbbreviationForTesting( 526 CFX_ByteStringC PDF_FindValueAbbreviationForTesting(
527 const CFX_ByteStringC& abbr); 527 const CFX_ByteStringC& abbr);
528 528
529 void PDF_ReplaceAbbr(CPDF_Object* pObj); 529 void PDF_ReplaceAbbr(CPDF_Object* pObj);
530 bool IsPathOperator(const uint8_t* buf, size_t len); 530 bool IsPathOperator(const uint8_t* buf, size_t len);
531 531
532 #endif // CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 532 #endif // CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp ('k') | core/fpdfapi/fpdf_parser/cpdf_document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698