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

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

Issue 1252613002: FX_BOOL considered harmful. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual edits. Created 5 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_xml.h ('k') | core/include/fxge/fx_dib.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_FXGE_FPF_H_ 7 #ifndef CORE_INCLUDE_FXGE_FPF_H_
8 #define CORE_INCLUDE_FXGE_FPF_H_ 8 #define CORE_INCLUDE_FXGE_FPF_H_
9 9
10 #include "../fxcrt/fx_coordinates.h" 10 #include "../fxcrt/fx_coordinates.h"
(...skipping 23 matching lines...) Expand all
34 virtual CFX_WideString GetPsName() = 0; 34 virtual CFX_WideString GetPsName() = 0;
35 virtual FX_DWORD GetFontStyle() const = 0; 35 virtual FX_DWORD GetFontStyle() const = 0;
36 virtual uint8_t GetCharset() const = 0; 36 virtual uint8_t GetCharset() const = 0;
37 37
38 virtual int32_t GetGlyphIndex(FX_WCHAR wUnicode) = 0; 38 virtual int32_t GetGlyphIndex(FX_WCHAR wUnicode) = 0;
39 virtual int32_t GetGlyphWidth(int32_t iGlyphIndex) = 0; 39 virtual int32_t GetGlyphWidth(int32_t iGlyphIndex) = 0;
40 40
41 virtual int32_t GetAscent() const = 0; 41 virtual int32_t GetAscent() const = 0;
42 virtual int32_t GetDescent() const = 0; 42 virtual int32_t GetDescent() const = 0;
43 43
44 virtual FX_BOOL» » » GetGlyphBBox(int32_t iGlyphIndex, FX_REC T &rtBBox) = 0; 44 virtual bool» » » GetGlyphBBox(int32_t iGlyphIndex, FX_REC T &rtBBox) = 0;
45 virtual FX_BOOL» » » GetBBox(FX_RECT &rtBBox) = 0; 45 virtual bool» » » GetBBox(FX_RECT &rtBBox) = 0;
46 46
47 virtual int32_t GetHeight() const = 0; 47 virtual int32_t GetHeight() const = 0;
48 virtual int32_t GetItalicAngle() const = 0; 48 virtual int32_t GetItalicAngle() const = 0;
49 virtual FX_DWORD GetFontData(FX_DWORD dwTable, uint8_t* pBuffer, FX_DWORD dwSize) = 0; 49 virtual FX_DWORD GetFontData(FX_DWORD dwTable, uint8_t* pBuffer, FX_DWORD dwSize) = 0;
50 50
51 protected: 51 protected:
52 ~IFPF_Font() { } 52 ~IFPF_Font() { }
53 }; 53 };
54 class IFPF_FontMgr 54 class IFPF_FontMgr
55 { 55 {
56 public: 56 public:
57 virtual ~IFPF_FontMgr() { } 57 virtual ~IFPF_FontMgr() { }
58 virtual void LoadSystemFonts() = 0; 58 virtual void LoadSystemFonts() = 0;
59 virtual void LoadPrivateFont(IFX_FileRead* pFontFile) = 0; 59 virtual void LoadPrivateFont(IFX_FileRead* pFontFile) = 0;
60 virtual void LoadPrivateFont(const CFX_ByteStringC& b sFileName) = 0; 60 virtual void LoadPrivateFont(const CFX_ByteStringC& b sFileName) = 0;
61 virtual void LoadPrivateFont(void* pBuffer, size_t sz Buffer) = 0; 61 virtual void LoadPrivateFont(void* pBuffer, size_t sz Buffer) = 0;
62 62
63 virtual IFPF_Font* CreateFont(const CFX_ByteStringC& bsFamilyname, uint8_t charset, FX_DWORD dwStyle, FX_DWORD dwMatch = 0) = 0; 63 virtual IFPF_Font* CreateFont(const CFX_ByteStringC& bsFamilyname, uint8_t charset, FX_DWORD dwStyle, FX_DWORD dwMatch = 0) = 0;
64 }; 64 };
65 65
66 #endif // CORE_INCLUDE_FXGE_FPF_H_ 66 #endif // CORE_INCLUDE_FXGE_FPF_H_
OLDNEW
« no previous file with comments | « core/include/fxcrt/fx_xml.h ('k') | core/include/fxge/fx_dib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698