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

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

Issue 1513363002: Remove CFX_AffineMatrix/CPDF_Matrix (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits Created 5 years 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
« no previous file with comments | « core/include/fpdfapi/fpdf_pageobj.h ('k') | core/include/fpdfapi/fpdf_render.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
11 11
12 #include "core/include/fxcrt/fx_system.h" 12 #include "core/include/fxcrt/fx_system.h"
13 #include "fpdf_objects.h" 13 #include "fpdf_objects.h"
14 #include "third_party/base/nonstd_unique_ptr.h" 14 #include "third_party/base/nonstd_unique_ptr.h"
15 15
16 class CFDF_Document; 16 class CFDF_Document;
17 class CFDF_Parser; 17 class CFDF_Parser;
18 class CFX_AffineMatrix;
19 class CFX_DIBSource; 18 class CFX_DIBSource;
20 class CFX_FloatRect; 19 class CFX_FloatRect;
21 class CFX_Font; 20 class CFX_Font;
21 class CFX_Matrix;
22 class CFX_PrivateData; 22 class CFX_PrivateData;
23 class CPDF_ColorSpace; 23 class CPDF_ColorSpace;
24 class CPDF_CryptoHandler; 24 class CPDF_CryptoHandler;
25 class CPDF_DocPageData; 25 class CPDF_DocPageData;
26 class CPDF_DocRenderData; 26 class CPDF_DocRenderData;
27 class CPDF_Document; 27 class CPDF_Document;
28 class CPDF_Font; 28 class CPDF_Font;
29 class CPDF_FontEncoding; 29 class CPDF_FontEncoding;
30 class CPDF_HintTables; 30 class CPDF_HintTables;
31 class CPDF_IccProfile; 31 class CPDF_IccProfile;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 FX_BOOL IsFormStream(FX_DWORD objnum, FX_BOOL& bForm) const; 115 FX_BOOL IsFormStream(FX_DWORD objnum, FX_BOOL& bForm) const;
116 116
117 // |pFontDict| must not be null. 117 // |pFontDict| must not be null.
118 CPDF_Font* LoadFont(CPDF_Dictionary* pFontDict); 118 CPDF_Font* LoadFont(CPDF_Dictionary* pFontDict);
119 119
120 CPDF_ColorSpace* LoadColorSpace(CPDF_Object* pCSObj, 120 CPDF_ColorSpace* LoadColorSpace(CPDF_Object* pCSObj,
121 CPDF_Dictionary* pResources = NULL); 121 CPDF_Dictionary* pResources = NULL);
122 122
123 CPDF_Pattern* LoadPattern(CPDF_Object* pObj, 123 CPDF_Pattern* LoadPattern(CPDF_Object* pObj,
124 FX_BOOL bShading, 124 FX_BOOL bShading,
125 const CFX_AffineMatrix* matrix = NULL); 125 const CFX_Matrix* matrix = NULL);
126 126
127 CPDF_Image* LoadImageF(CPDF_Object* pObj); 127 CPDF_Image* LoadImageF(CPDF_Object* pObj);
128 128
129 CPDF_StreamAcc* LoadFontFile(CPDF_Stream* pStream); 129 CPDF_StreamAcc* LoadFontFile(CPDF_Stream* pStream);
130 130
131 CPDF_IccProfile* LoadIccProfile(CPDF_Stream* pStream); 131 CPDF_IccProfile* LoadIccProfile(CPDF_Stream* pStream);
132 132
133 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 133 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
134 134
135 CPDF_Font* AddWindowsFont(LOGFONTA* pLogFont, 135 CPDF_Font* AddWindowsFont(LOGFONTA* pLogFont,
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 x = xx; 782 x = xx;
783 y = yy; 783 y = yy;
784 } 784 }
785 785
786 FX_FLOAT x; 786 FX_FLOAT x;
787 787
788 FX_FLOAT y; 788 FX_FLOAT y;
789 }; 789 };
790 790
791 #define CPDF_Rect CFX_FloatRect 791 #define CPDF_Rect CFX_FloatRect
792 #define CPDF_Matrix CFX_AffineMatrix
793 CFX_ByteString PDF_NameDecode(const CFX_ByteStringC& orig); 792 CFX_ByteString PDF_NameDecode(const CFX_ByteStringC& orig);
794 CFX_ByteString PDF_NameDecode(const CFX_ByteString& orig); 793 CFX_ByteString PDF_NameDecode(const CFX_ByteString& orig);
795 CFX_ByteString PDF_NameEncode(const CFX_ByteString& orig); 794 CFX_ByteString PDF_NameEncode(const CFX_ByteString& orig);
796 CFX_ByteString PDF_EncodeString(const CFX_ByteString& src, 795 CFX_ByteString PDF_EncodeString(const CFX_ByteString& src,
797 FX_BOOL bHex = FALSE); 796 FX_BOOL bHex = FALSE);
798 CFX_WideString PDF_DecodeText(const uint8_t* pData, 797 CFX_WideString PDF_DecodeText(const uint8_t* pData,
799 FX_DWORD size, 798 FX_DWORD size,
800 CFX_CharMap* pCharMap = NULL); 799 CFX_CharMap* pCharMap = NULL);
801 inline CFX_WideString PDF_DecodeText(const CFX_ByteString& bstr, 800 inline CFX_WideString PDF_DecodeText(const CFX_ByteString& bstr,
802 CFX_CharMap* pCharMap = NULL) { 801 CFX_CharMap* pCharMap = NULL) {
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 FX_DWORD src_size, 1007 FX_DWORD src_size,
1009 const CPDF_Dictionary* pDict, 1008 const CPDF_Dictionary* pDict,
1010 uint8_t*& dest_buf, 1009 uint8_t*& dest_buf,
1011 FX_DWORD& dest_size, 1010 FX_DWORD& dest_size,
1012 CFX_ByteString& ImageEncoding, 1011 CFX_ByteString& ImageEncoding,
1013 CPDF_Dictionary*& pImageParms, 1012 CPDF_Dictionary*& pImageParms,
1014 FX_DWORD estimated_size, 1013 FX_DWORD estimated_size,
1015 FX_BOOL bImageAcc); 1014 FX_BOOL bImageAcc);
1016 1015
1017 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 1016 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_pageobj.h ('k') | core/include/fpdfapi/fpdf_render.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698