| OLD | NEW |
| 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> |
| 11 #include <memory> |
| 11 | 12 |
| 12 #include "core/include/fpdfapi/fpdf_page.h" | 13 #include "core/include/fpdfapi/fpdf_page.h" |
| 13 #include "core/include/fpdfapi/fpdf_pageobj.h" | 14 #include "core/include/fpdfapi/fpdf_pageobj.h" |
| 14 #include "third_party/base/nonstd_unique_ptr.h" | |
| 15 | 15 |
| 16 class CPDF_AllStates; | 16 class CPDF_AllStates; |
| 17 class CPDF_ParseOptions; | 17 class CPDF_ParseOptions; |
| 18 | 18 |
| 19 #define PARSE_STEP_LIMIT 100 | 19 #define PARSE_STEP_LIMIT 100 |
| 20 | 20 |
| 21 class CPDF_StreamParser { | 21 class CPDF_StreamParser { |
| 22 public: | 22 public: |
| 23 CPDF_StreamParser(const uint8_t* pData, FX_DWORD dwSize); | 23 CPDF_StreamParser(const uint8_t* pData, FX_DWORD dwSize); |
| 24 ~CPDF_StreamParser(); | 24 ~CPDF_StreamParser(); |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 CPDF_Dictionary* m_pResources; | 312 CPDF_Dictionary* m_pResources; |
| 313 CPDF_PageObjects* m_pObjectList; | 313 CPDF_PageObjects* m_pObjectList; |
| 314 int m_Level; | 314 int m_Level; |
| 315 CFX_Matrix m_mtContentToUser; | 315 CFX_Matrix m_mtContentToUser; |
| 316 CFX_FloatRect m_BBox; | 316 CFX_FloatRect m_BBox; |
| 317 CPDF_ParseOptions m_Options; | 317 CPDF_ParseOptions m_Options; |
| 318 _ContentParam m_ParamBuf1[PARAM_BUF_SIZE]; | 318 _ContentParam m_ParamBuf1[PARAM_BUF_SIZE]; |
| 319 FX_DWORD m_ParamStartPos; | 319 FX_DWORD m_ParamStartPos; |
| 320 FX_DWORD m_ParamCount; | 320 FX_DWORD m_ParamCount; |
| 321 CPDF_StreamParser* m_pSyntax; | 321 CPDF_StreamParser* m_pSyntax; |
| 322 nonstd::unique_ptr<CPDF_AllStates> m_pCurStates; | 322 std::unique_ptr<CPDF_AllStates> m_pCurStates; |
| 323 CPDF_ContentMark m_CurContentMark; | 323 CPDF_ContentMark m_CurContentMark; |
| 324 CFX_ArrayTemplate<CPDF_TextObject*> m_ClipTextList; | 324 CFX_ArrayTemplate<CPDF_TextObject*> m_ClipTextList; |
| 325 CPDF_TextObject* m_pLastTextObject; | 325 CPDF_TextObject* m_pLastTextObject; |
| 326 FX_FLOAT m_DefFontSize; | 326 FX_FLOAT m_DefFontSize; |
| 327 int m_CompatCount; | 327 int m_CompatCount; |
| 328 FX_PATHPOINT* m_pPathPoints; | 328 FX_PATHPOINT* m_pPathPoints; |
| 329 int m_PathPointCount; | 329 int m_PathPointCount; |
| 330 int m_PathAllocSize; | 330 int m_PathAllocSize; |
| 331 FX_FLOAT m_PathStartX; | 331 FX_FLOAT m_PathStartX; |
| 332 FX_FLOAT m_PathStartY; | 332 FX_FLOAT m_PathStartY; |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 FX_FLOAT& G, | 519 FX_FLOAT& G, |
| 520 FX_FLOAT& B) const override; | 520 FX_FLOAT& B) const override; |
| 521 CPDF_ColorSpace* GetBaseCS() const override; | 521 CPDF_ColorSpace* GetBaseCS() const override; |
| 522 | 522 |
| 523 private: | 523 private: |
| 524 CPDF_ColorSpace* m_pBaseCS; | 524 CPDF_ColorSpace* m_pBaseCS; |
| 525 CPDF_CountedColorSpace* m_pCountedBaseCS; | 525 CPDF_CountedColorSpace* m_pCountedBaseCS; |
| 526 }; | 526 }; |
| 527 | 527 |
| 528 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 528 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
| OLD | NEW |