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/fpdfapi/fpdf_font/font_int.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/cpdf_font.cpp ('k') | core/fpdfapi/fpdf_font/fpdf_font_cid.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_FPDFAPI_FPDF_FONT_FONT_INT_H_ 7 #ifndef CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_
8 #define CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ 8 #define CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 FX_BOOL m_bVertical; 162 FX_BOOL m_bVertical;
163 CIDSet m_Charset; 163 CIDSet m_Charset;
164 int m_Coding; 164 int m_Coding;
165 CodingScheme m_CodingScheme; 165 CodingScheme m_CodingScheme;
166 int m_nCodeRanges; 166 int m_nCodeRanges;
167 uint8_t* m_pLeadingBytes; 167 uint8_t* m_pLeadingBytes;
168 uint16_t* m_pMapping; 168 uint16_t* m_pMapping;
169 uint8_t* m_pAddMapping; 169 uint8_t* m_pAddMapping;
170 FX_BOOL m_bLoaded; 170 FX_BOOL m_bLoaded;
171 const FXCMAP_CMap* m_pEmbedMap; 171 const FXCMAP_CMap* m_pEmbedMap;
172 CPDF_CMap* m_pUseMap;
173 }; 172 };
174 173
175 class CPDF_CID2UnicodeMap { 174 class CPDF_CID2UnicodeMap {
176 public: 175 public:
177 CPDF_CID2UnicodeMap(); 176 CPDF_CID2UnicodeMap();
178 ~CPDF_CID2UnicodeMap(); 177 ~CPDF_CID2UnicodeMap();
179 178
180 FX_BOOL Initialize(); 179 FX_BOOL Initialize();
181 FX_BOOL IsLoaded(); 180 FX_BOOL IsLoaded();
182 void Load(CPDF_CMapManager* pMgr, CIDSet charset, FX_BOOL bPromptCJK); 181 void Load(CPDF_CMapManager* pMgr, CIDSet charset, FX_BOOL bPromptCJK);
(...skipping 22 matching lines...) Expand all
205 204
206 private: 205 private:
207 friend class fpdf_font_StringToCode_Test; 206 friend class fpdf_font_StringToCode_Test;
208 friend class fpdf_font_StringToWideString_Test; 207 friend class fpdf_font_StringToWideString_Test;
209 208
210 static uint32_t StringToCode(const CFX_ByteStringC& str); 209 static uint32_t StringToCode(const CFX_ByteStringC& str);
211 static CFX_WideString StringToWideString(const CFX_ByteStringC& str); 210 static CFX_WideString StringToWideString(const CFX_ByteStringC& str);
212 }; 211 };
213 212
214 #endif // CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ 213 #endif // CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_font/cpdf_font.cpp ('k') | core/fpdfapi/fpdf_font/fpdf_font_cid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698