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

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

Issue 1965243002: Clean up CPDF_Color and some related code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const FX_FLOAT* GetType3Data() const { return m_Type3Data; } 117 const FX_FLOAT* GetType3Data() const { return m_Type3Data; }
118 118
119 void AddNumberParam(const FX_CHAR* str, int len); 119 void AddNumberParam(const FX_CHAR* str, int len);
120 void AddObjectParam(CPDF_Object* pObj); 120 void AddObjectParam(CPDF_Object* pObj);
121 void AddNameParam(const FX_CHAR* name, int size); 121 void AddNameParam(const FX_CHAR* name, int size);
122 int GetNextParamPos(); 122 int GetNextParamPos();
123 void ClearAllParams(); 123 void ClearAllParams();
124 CPDF_Object* GetObject(uint32_t index); 124 CPDF_Object* GetObject(uint32_t index);
125 CFX_ByteString GetString(uint32_t index); 125 CFX_ByteString GetString(uint32_t index);
126 FX_FLOAT GetNumber(uint32_t index); 126 FX_FLOAT GetNumber(uint32_t index);
127 FX_FLOAT GetNumber16(uint32_t index);
128 int GetInteger(uint32_t index) { return (int32_t)(GetNumber(index)); } 127 int GetInteger(uint32_t index) { return (int32_t)(GetNumber(index)); }
129 void OnOperator(const FX_CHAR* op); 128 void OnOperator(const FX_CHAR* op);
130 void BigCaseCaller(int index); 129 void BigCaseCaller(int index);
131 uint32_t GetParsePos() { return m_pSyntax->GetPos(); } 130 uint32_t GetParsePos() { return m_pSyntax->GetPos(); }
132 void AddTextObject(CFX_ByteString* pText, 131 void AddTextObject(CFX_ByteString* pText,
133 FX_FLOAT fInitKerning, 132 FX_FLOAT fInitKerning,
134 FX_FLOAT* pKerning, 133 FX_FLOAT* pKerning,
135 int count); 134 int count);
136 135
137 void ConvertUserSpace(FX_FLOAT& x, FX_FLOAT& y); 136 void ConvertUserSpace(FX_FLOAT& x, FX_FLOAT& y);
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 }; 523 };
525 524
526 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr); 525 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr);
527 CFX_ByteStringC PDF_FindValueAbbreviationForTesting( 526 CFX_ByteStringC PDF_FindValueAbbreviationForTesting(
528 const CFX_ByteStringC& abbr); 527 const CFX_ByteStringC& abbr);
529 528
530 void PDF_ReplaceAbbr(CPDF_Object* pObj); 529 void PDF_ReplaceAbbr(CPDF_Object* pObj);
531 bool IsPathOperator(const uint8_t* buf, size_t len); 530 bool IsPathOperator(const uint8_t* buf, size_t len);
532 531
533 #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/include/cpdf_colorspace.h ('k') | core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698