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

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

Issue 1918113002: Clean up CPDF_Page. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: More cleanup, fix build 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 std::vector<std::unique_ptr<CPDF_AllStates>> m_StateStack; 284 std::vector<std::unique_ptr<CPDF_AllStates>> m_StateStack;
285 }; 285 };
286 class CPDF_ContentParser { 286 class CPDF_ContentParser {
287 public: 287 public:
288 enum ParseStatus { Ready, ToBeContinued, Done }; 288 enum ParseStatus { Ready, ToBeContinued, Done };
289 289
290 CPDF_ContentParser(); 290 CPDF_ContentParser();
291 ~CPDF_ContentParser(); 291 ~CPDF_ContentParser();
292 292
293 ParseStatus GetStatus() const { return m_Status; } 293 ParseStatus GetStatus() const { return m_Status; }
294 void Start(CPDF_Page* pPage, CPDF_ParseOptions* pOptions); 294 void Start(CPDF_Page* pPage);
295 void Start(CPDF_Form* pForm, 295 void Start(CPDF_Form* pForm,
296 CPDF_AllStates* pGraphicStates, 296 CPDF_AllStates* pGraphicStates,
297 CFX_Matrix* pParentMatrix, 297 CFX_Matrix* pParentMatrix,
298 CPDF_Type3Char* pType3Char, 298 CPDF_Type3Char* pType3Char,
299 CPDF_ParseOptions* pOptions, 299 CPDF_ParseOptions* pOptions,
300 int level); 300 int level);
301 void Continue(IFX_Pause* pPause); 301 void Continue(IFX_Pause* pPause);
302 302
303 private: 303 private:
304 enum InternalStage { 304 enum InternalStage {
305 STAGE_GETCONTENT = 1, 305 STAGE_GETCONTENT = 1,
306 STAGE_PARSE, 306 STAGE_PARSE,
307 STAGE_CHECKCLIP, 307 STAGE_CHECKCLIP,
308 }; 308 };
309 309
310 ParseStatus m_Status; 310 ParseStatus m_Status;
311 InternalStage m_InternalStage; 311 InternalStage m_InternalStage;
312 CPDF_PageObjectHolder* m_pObjectHolder; 312 CPDF_PageObjectHolder* m_pObjectHolder;
313 FX_BOOL m_bForm; 313 FX_BOOL m_bForm;
314 CPDF_ParseOptions m_Options; 314 CPDF_ParseOptions m_Options;
dsinclair 2016/04/26 02:42:26 Can this be removed?
Lei Zhang 2016/04/26 04:24:45 Done.
315 CPDF_Type3Char* m_pType3Char; 315 CPDF_Type3Char* m_pType3Char;
316 uint32_t m_nStreams; 316 uint32_t m_nStreams;
317 std::unique_ptr<CPDF_StreamAcc> m_pSingleStream; 317 std::unique_ptr<CPDF_StreamAcc> m_pSingleStream;
318 std::vector<std::unique_ptr<CPDF_StreamAcc>> m_StreamArray; 318 std::vector<std::unique_ptr<CPDF_StreamAcc>> m_StreamArray;
319 uint8_t* m_pData; 319 uint8_t* m_pData;
320 uint32_t m_Size; 320 uint32_t m_Size;
321 uint32_t m_CurrentOffset; 321 uint32_t m_CurrentOffset;
322 std::unique_ptr<CPDF_StreamContentParser> m_pParser; 322 std::unique_ptr<CPDF_StreamContentParser> m_pParser;
323 }; 323 };
324 324
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 }; 534 };
535 535
536 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr); 536 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr);
537 CFX_ByteStringC PDF_FindValueAbbreviationForTesting( 537 CFX_ByteStringC PDF_FindValueAbbreviationForTesting(
538 const CFX_ByteStringC& abbr); 538 const CFX_ByteStringC& abbr);
539 539
540 void PDF_ReplaceAbbr(CPDF_Object* pObj); 540 void PDF_ReplaceAbbr(CPDF_Object* pObj);
541 bool IsPathOperator(const uint8_t* buf, size_t len); 541 bool IsPathOperator(const uint8_t* buf, size_t len);
542 542
543 #endif // CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 543 #endif // CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698