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

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

Issue 1290383003: Fix more sign comparison errors. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 4 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
« no previous file with comments | « no previous file | core/src/fpdfdoc/doc_ap.cpp » ('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_RESOURCE_H_ 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_
8 #define CORE_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_ 8 #define CORE_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_
9 9
10 #include "../fxcrt/fx_system.h" 10 #include "../fxcrt/fx_system.h"
11 #include "../fxge/fx_font.h" 11 #include "../fxge/fx_font.h"
12 #include "fpdf_parser.h" 12 #include "fpdf_parser.h"
13 13
14 class CFX_CTTGSUBTable; 14 class CFX_CTTGSUBTable;
15 class CFX_DIBitmap; 15 class CFX_DIBitmap;
16 class CFX_Font; 16 class CFX_Font;
17 class CFX_SubstFont; 17 class CFX_SubstFont;
18 class CPDF_CID2UnicodeMap; 18 class CPDF_CID2UnicodeMap;
19 class CPDF_CIDFont; 19 class CPDF_CIDFont;
20 class CPDF_CMap; 20 class CPDF_CMap;
21 class CPDF_Color; 21 class CPDF_Color;
22 class CPDF_ColorSpace; 22 class CPDF_ColorSpace;
23 class CPDF_Face; 23 class CPDF_Face;
24 class CPDF_Font;
25 class CPDF_FontEncoding; 24 class CPDF_FontEncoding;
26 class CPDF_Form; 25 class CPDF_Form;
27 class CPDF_Function; 26 class CPDF_Function;
28 class CPDF_Image; 27 class CPDF_Image;
29 class CPDF_ImageObject; 28 class CPDF_ImageObject;
30 class CPDF_Page; 29 class CPDF_Page;
31 class CPDF_Pattern; 30 class CPDF_Pattern;
32 class CPDF_RenderContext; 31 class CPDF_RenderContext;
33 class CPDF_ShadingPattern; 32 class CPDF_ShadingPattern;
34 class CPDF_TilingPattern; 33 class CPDF_TilingPattern;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 #define PDFFONT_ALLCAP 0x10000 93 #define PDFFONT_ALLCAP 0x10000
95 #define PDFFONT_SMALLCAP 0x20000 94 #define PDFFONT_SMALLCAP 0x20000
96 #define PDFFONT_FORCEBOLD 0x40000 95 #define PDFFONT_FORCEBOLD 0x40000
97 #define PDFFONT_USEEXTERNATTR 0x80000 96 #define PDFFONT_USEEXTERNATTR 0x80000
98 class CPDF_Font { 97 class CPDF_Font {
99 public: 98 public:
100 static CPDF_Font* CreateFontF(CPDF_Document* pDoc, 99 static CPDF_Font* CreateFontF(CPDF_Document* pDoc,
101 CPDF_Dictionary* pFontDict); 100 CPDF_Dictionary* pFontDict);
102 static CPDF_Font* GetStockFont(CPDF_Document* pDoc, 101 static CPDF_Font* GetStockFont(CPDF_Document* pDoc,
103 const CFX_ByteStringC& fontname); 102 const CFX_ByteStringC& fontname);
103 static const FX_DWORD kInvalidCharCode = static_cast<FX_DWORD>(-1);
104 104
105 virtual ~CPDF_Font(); 105 virtual ~CPDF_Font();
106 106
107 bool IsFontType(int fonttype) const { return fonttype == m_FontType; } 107 bool IsFontType(int fonttype) const { return fonttype == m_FontType; }
108 int GetFontType() const { return m_FontType; } 108 int GetFontType() const { return m_FontType; }
109 109
110 CFX_ByteString GetFontTypeName() const; 110 CFX_ByteString GetFontTypeName() const;
111 111
112 const CFX_ByteString& GetBaseFont() const { return m_BaseFont; } 112 const CFX_ByteString& GetBaseFont() const { return m_BaseFont; }
113 113
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 833
834 FX_BOOL m_bInterpolate; 834 FX_BOOL m_bInterpolate;
835 835
836 CPDF_Document* m_pDocument; 836 CPDF_Document* m_pDocument;
837 837
838 CPDF_Dictionary* m_pOC; 838 CPDF_Dictionary* m_pOC;
839 CPDF_Dictionary* InitJPEG(uint8_t* pData, FX_DWORD size); 839 CPDF_Dictionary* InitJPEG(uint8_t* pData, FX_DWORD size);
840 }; 840 };
841 841
842 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_ 842 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfdoc/doc_ap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698