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

Side by Side Diff: core/include/fpdfapi/fpdf_parser.h

Issue 1638493002: Remove unused IsContentUsedElsewhere() (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Revert to PS2. Created 4 years, 11 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_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 int RetrievePageCount() const; 187 int RetrievePageCount() const;
188 CPDF_Dictionary* _FindPDFPage(CPDF_Dictionary* pPages, 188 CPDF_Dictionary* _FindPDFPage(CPDF_Dictionary* pPages,
189 int iPage, 189 int iPage,
190 int nPagesToGo, 190 int nPagesToGo,
191 int level); 191 int level);
192 int _FindPageIndex(CPDF_Dictionary* pNode, 192 int _FindPageIndex(CPDF_Dictionary* pNode,
193 FX_DWORD& skip_count, 193 FX_DWORD& skip_count,
194 FX_DWORD objnum, 194 FX_DWORD objnum,
195 int& index, 195 int& index,
196 int level = 0); 196 int level = 0);
197 FX_BOOL IsContentUsedElsewhere(FX_DWORD objnum, CPDF_Dictionary* pPageDict);
198 FX_BOOL CheckOCGVisible(CPDF_Dictionary* pOCG, FX_BOOL bPrinting); 197 FX_BOOL CheckOCGVisible(CPDF_Dictionary* pOCG, FX_BOOL bPrinting);
199 CPDF_DocPageData* GetValidatePageData(); 198 CPDF_DocPageData* GetValidatePageData();
200 CPDF_DocRenderData* GetValidateRenderData(); 199 CPDF_DocRenderData* GetValidateRenderData();
201 friend class CPDF_Creator; 200 friend class CPDF_Creator;
202 friend class CPDF_Parser; 201 friend class CPDF_Parser;
203 friend class CPDF_DataAvail; 202 friend class CPDF_DataAvail;
204 friend class CPDF_OCContext; 203 friend class CPDF_OCContext;
205 204
206 CPDF_DocPageData* m_pDocPage; 205 CPDF_DocPageData* m_pDocPage;
207 206
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 356
358 std::unique_ptr<CPDF_CryptoHandler> m_pCryptoHandler; 357 std::unique_ptr<CPDF_CryptoHandler> m_pCryptoHandler;
359 358
360 uint8_t m_WordBuffer[257]; 359 uint8_t m_WordBuffer[257];
361 360
362 FX_DWORD m_WordSize; 361 FX_DWORD m_WordSize;
363 362
364 FX_FILESIZE m_dwWordPos; 363 FX_FILESIZE m_dwWordPos;
365 }; 364 };
366 365
367 #define PDFPARSE_TYPEONLY 1
368 #define PDFPARSE_NOSTREAM 2
369 struct PARSE_CONTEXT { 366 struct PARSE_CONTEXT {
370 uint32_t m_Flags;
371 FX_FILESIZE m_DictStart; 367 FX_FILESIZE m_DictStart;
372 FX_FILESIZE m_DictEnd; 368 FX_FILESIZE m_DictEnd;
373 FX_FILESIZE m_DataStart; 369 FX_FILESIZE m_DataStart;
374 FX_FILESIZE m_DataEnd; 370 FX_FILESIZE m_DataEnd;
375 }; 371 };
376 372
377 #define PDFPARSE_ERROR_SUCCESS 0 373 #define PDFPARSE_ERROR_SUCCESS 0
378 #define PDFPARSE_ERROR_FILE 1 374 #define PDFPARSE_ERROR_FILE 1
379 #define PDFPARSE_ERROR_FORMAT 2 375 #define PDFPARSE_ERROR_FORMAT 2
380 #define PDFPARSE_ERROR_PASSWORD 3 376 #define PDFPARSE_ERROR_PASSWORD 3
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 FX_DWORD src_size, 993 FX_DWORD src_size,
998 const CPDF_Dictionary* pDict, 994 const CPDF_Dictionary* pDict,
999 uint8_t*& dest_buf, 995 uint8_t*& dest_buf,
1000 FX_DWORD& dest_size, 996 FX_DWORD& dest_size,
1001 CFX_ByteString& ImageEncoding, 997 CFX_ByteString& ImageEncoding,
1002 CPDF_Dictionary*& pImageParms, 998 CPDF_Dictionary*& pImageParms,
1003 FX_DWORD estimated_size, 999 FX_DWORD estimated_size,
1004 FX_BOOL bImageAcc); 1000 FX_BOOL bImageAcc);
1005 1001
1006 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 1002 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_objects.h ('k') | core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698