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

Side by Side Diff: core/fpdfapi/fpdf_font/include/cpdf_font.h

Issue 2119013002: Change class member variables in raw pointer type into unique_ptr (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments Created 4 years, 5 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 | « core/fpdfapi/fpdf_font/fpdf_font_cid.cpp ('k') | core/fpdfapi/fpdf_font/ttgsubtable.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_FONT_INCLUDE_CPDF_FONT_H_ 7 #ifndef CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_
8 #define CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_ 8 #define CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_
9 9
10 #include <memory>
11
10 #include "core/fxcrt/include/fx_string.h" 12 #include "core/fxcrt/include/fx_string.h"
11 #include "core/fxcrt/include/fx_system.h" 13 #include "core/fxcrt/include/fx_system.h"
12 #include "core/fxge/include/fx_font.h" 14 #include "core/fxge/include/fx_font.h"
13 15
14 #define PDFFONT_FIXEDPITCH 1 16 #define PDFFONT_FIXEDPITCH 1
15 #define PDFFONT_SERIF 2 17 #define PDFFONT_SERIF 2
16 #define PDFFONT_SYMBOLIC 4 18 #define PDFFONT_SYMBOLIC 4
17 #define PDFFONT_SCRIPT 8 19 #define PDFFONT_SCRIPT 8
18 #define PDFFONT_NONSYMBOLIC 32 20 #define PDFFONT_NONSYMBOLIC 32
19 #define PDFFONT_ITALIC 64 21 #define PDFFONT_ITALIC 64
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 void LoadFontDescriptor(CPDF_Dictionary* pDict); 109 void LoadFontDescriptor(CPDF_Dictionary* pDict);
108 void CheckFontMetrics(); 110 void CheckFontMetrics();
109 111
110 const FX_CHAR* GetAdobeCharName(int iBaseEncoding, 112 const FX_CHAR* GetAdobeCharName(int iBaseEncoding,
111 const CFX_ByteString* pCharNames, 113 const CFX_ByteString* pCharNames,
112 int charcode); 114 int charcode);
113 115
114 CFX_ByteString m_BaseFont; 116 CFX_ByteString m_BaseFont;
115 CPDF_StreamAcc* m_pFontFile; 117 CPDF_StreamAcc* m_pFontFile;
116 CPDF_Dictionary* m_pFontDict; 118 CPDF_Dictionary* m_pFontDict;
117 mutable CPDF_ToUnicodeMap* m_pToUnicodeMap; 119 mutable std::unique_ptr<CPDF_ToUnicodeMap> m_pToUnicodeMap;
118 mutable FX_BOOL m_bToUnicodeLoaded; 120 mutable FX_BOOL m_bToUnicodeLoaded;
119 int m_Flags; 121 int m_Flags;
120 FX_RECT m_FontBBox; 122 FX_RECT m_FontBBox;
121 int m_StemV; 123 int m_StemV;
122 int m_Ascent; 124 int m_Ascent;
123 int m_Descent; 125 int m_Descent;
124 int m_ItalicAngle; 126 int m_ItalicAngle;
125 }; 127 };
126 128
127 #endif // CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_ 129 #endif // CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_font/fpdf_font_cid.cpp ('k') | core/fpdfapi/fpdf_font/ttgsubtable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698