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

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

Issue 2474303003: Clean up fpdf_page_parsers (Closed)
Patch Set: Fix includes, move method to namespace 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
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_PAGE_PAGEINT_H_ 7 #ifndef CORE_FPDFAPI_PAGE_PAGEINT_H_
8 #define CORE_FPDFAPI_PAGE_PAGEINT_H_ 8 #define CORE_FPDFAPI_PAGE_PAGEINT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 CPDF_Object* pCSObj); 57 CPDF_Object* pCSObj);
58 SyntaxType ParseNextElement(); 58 SyntaxType ParseNextElement();
59 uint8_t* GetWordBuf() { return m_WordBuffer; } 59 uint8_t* GetWordBuf() { return m_WordBuffer; }
60 uint32_t GetWordSize() const { return m_WordSize; } 60 uint32_t GetWordSize() const { return m_WordSize; }
61 CPDF_Object* GetObject(); 61 CPDF_Object* GetObject();
62 uint32_t GetPos() const { return m_Pos; } 62 uint32_t GetPos() const { return m_Pos; }
63 void SetPos(uint32_t pos) { m_Pos = pos; } 63 void SetPos(uint32_t pos) { m_Pos = pos; }
64 CPDF_Object* ReadNextObject(bool bAllowNestedArray, uint32_t dwInArrayLevel); 64 CPDF_Object* ReadNextObject(bool bAllowNestedArray, uint32_t dwInArrayLevel);
65 65
66 private: 66 private:
67 friend class fpdf_page_parser_old_ReadHexString_Test; 67 friend class cpdf_streamparser_ReadHexString_Test;
68 68
69 void GetNextWord(bool& bIsNumber); 69 void GetNextWord(bool& bIsNumber);
70 CFX_ByteString ReadString(); 70 CFX_ByteString ReadString();
71 CFX_ByteString ReadHexString(); 71 CFX_ByteString ReadHexString();
72 bool PositionIsInBounds() const; 72 bool PositionIsInBounds() const;
73 73
74 const uint8_t* m_pBuf; 74 const uint8_t* m_pBuf;
75 uint32_t m_Size; // Length in bytes of m_pBuf. 75 uint32_t m_Size; // Length in bytes of m_pBuf.
76 uint32_t m_Pos; // Current byte position within m_pBuf. 76 uint32_t m_Pos; // Current byte position within m_pBuf.
77 uint8_t m_WordBuffer[256]; 77 uint8_t m_WordBuffer[256];
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 CPDF_Pattern* m_pPattern; 296 CPDF_Pattern* m_pPattern;
297 CPDF_CountedPattern* m_pCountedPattern; 297 CPDF_CountedPattern* m_pCountedPattern;
298 int m_nComps; 298 int m_nComps;
299 FX_FLOAT m_Comps[MAX_PATTERN_COLORCOMPS]; 299 FX_FLOAT m_Comps[MAX_PATTERN_COLORCOMPS];
300 }; 300 };
301 301
302 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr); 302 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr);
303 CFX_ByteStringC PDF_FindValueAbbreviationForTesting( 303 CFX_ByteStringC PDF_FindValueAbbreviationForTesting(
304 const CFX_ByteStringC& abbr); 304 const CFX_ByteStringC& abbr);
305 305
306 void PDF_ReplaceAbbr(CPDF_Object* pObj);
307
308 #endif // CORE_FPDFAPI_PAGE_PAGEINT_H_ 306 #endif // CORE_FPDFAPI_PAGE_PAGEINT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698