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

Side by Side Diff: core/include/fxge/fx_font.h

Issue 370853002: pdfium: Fix all -Wdelete-non-virtual-dtor violations on Mac. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 6 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/include/fxcrt/fx_system.h ('k') | core/src/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 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 _FX_FONT_H_ 7 #ifndef _FX_FONT_H_
8 #define _FX_FONT_H_ 8 #define _FX_FONT_H_
9 #ifndef _FXCRT_EXTENSION_ 9 #ifndef _FXCRT_EXTENSION_
10 #include "../../include/fxcrt/fx_ext.h" 10 #include "../../include/fxcrt/fx_ext.h"
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 virtual void DeleteFont(void* hFont) = 0; 309 virtual void DeleteFont(void* hFont) = 0;
310 virtual void* RetainFont(void* hFont) 310 virtual void* RetainFont(void* hFont)
311 { 311 {
312 return NULL; 312 return NULL;
313 } 313 }
314 }; 314 };
315 class CFX_FolderFontInfo : public IFX_SystemFontInfo 315 class CFX_FolderFontInfo : public IFX_SystemFontInfo
316 { 316 {
317 public: 317 public:
318 CFX_FolderFontInfo(); 318 CFX_FolderFontInfo();
319 ~CFX_FolderFontInfo(); 319 virtual ~CFX_FolderFontInfo();
320 void AddPath(FX_BSTR path); 320 void AddPath(FX_BSTR path);
321 virtual void Release(); 321 virtual void Release();
322 virtual FX_BOOL EnumFontList(CFX_FontMapper* pMapper); 322 virtual FX_BOOL EnumFontList(CFX_FontMapper* pMapper);
323 virtual void* MapFont(int weight, FX_BOOL bItalic, int charset , int pitch_family, FX_LPCSTR face, FX_BOOL& bExact); 323 virtual void* MapFont(int weight, FX_BOOL bItalic, int charset , int pitch_family, FX_LPCSTR face, FX_BOOL& bExact);
324 virtual void* GetFont(FX_LPCSTR face); 324 virtual void* GetFont(FX_LPCSTR face);
325 virtual FX_DWORD GetFontData(void* hFont, FX_DWORD table, FX_LPBYTE buffe r, FX_DWORD size); 325 virtual FX_DWORD GetFontData(void* hFont, FX_DWORD table, FX_LPBYTE buffe r, FX_DWORD size);
326 virtual void DeleteFont(void* hFont); 326 virtual void DeleteFont(void* hFont);
327 virtual FX_BOOL GetFaceName(void* hFont, CFX_ByteString& name); 327 virtual FX_BOOL GetFaceName(void* hFont, CFX_ByteString& name);
328 virtual FX_BOOL GetFontCharset(void* hFont, int& charset); 328 virtual FX_BOOL GetFontCharset(void* hFont, int& charset);
329 protected: 329 protected:
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 FX_BOOL OutputText(void* dib, int x, int y, CFX_Font* pFont, double font_size, 419 FX_BOOL OutputText(void* dib, int x, int y, CFX_Font* pFont, double font_size,
420 CFX_AffineMatrix* pText_matrix, unsigned short const* text, u nsigned long argb); 420 CFX_AffineMatrix* pText_matrix, unsigned short const* text, u nsigned long argb);
421 class IFX_GSUBTable 421 class IFX_GSUBTable
422 { 422 {
423 public: 423 public:
424 virtual void Release() = 0; 424 virtual void Release() = 0;
425 virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) = 0 ; 425 virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) = 0 ;
426 }; 426 };
427 IFX_GSUBTable* FXGE_CreateGSUBTable(CFX_Font* pFont); 427 IFX_GSUBTable* FXGE_CreateGSUBTable(CFX_Font* pFont);
428 #endif 428 #endif
OLDNEW
« no previous file with comments | « core/include/fxcrt/fx_system.h ('k') | core/src/fpdfapi/fpdf_font/ttgsubtable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698