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

Side by Side Diff: core/src/fxge/android/fx_android_font.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/src/fxge/android/fpf_skiafontmgr.cpp ('k') | core/src/fxge/android/fx_android_font.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_SRC_FXGE_ANDROID_FX_ANDROID_FONT_H_ 7 #ifndef CORE_SRC_FXGE_ANDROID_FX_ANDROID_FONT_H_
8 #define CORE_SRC_FXGE_ANDROID_FX_ANDROID_FONT_H_ 8 #define CORE_SRC_FXGE_ANDROID_FX_ANDROID_FONT_H_
9 9
10 #if _FX_OS_ == _FX_ANDROID_ 10 #if _FX_OS_ == _FX_ANDROID_
11 class IFPF_FontMgr; 11 class IFPF_FontMgr;
12 class CFX_AndroidFontInfo : public IFX_SystemFontInfo 12 class CFX_AndroidFontInfo : public IFX_SystemFontInfo
13 { 13 {
14 public: 14 public:
15 CFX_AndroidFontInfo(); 15 CFX_AndroidFontInfo();
16 virtual void Release() 16 virtual void Release()
17 { 17 {
18 delete this; 18 delete this;
19 } 19 }
20 20
21 virtual» FX_BOOL»» EnumFontList(CFX_FontMapper* pMapper); 21 virtual» bool» » EnumFontList(CFX_FontMapper* pMapper);
22 22
23 virtual void*» » MapFont(int weight, FX_BOOL bItalic, int charset , int pitch_family, const FX_CHAR* face, FX_BOOL& bExact); 23 virtual void*» » MapFont(int weight, bool bItalic, int charset, i nt pitch_family, const FX_CHAR* face, bool& bExact);
24 24
25 virtual void* GetFont(const FX_CHAR* face); 25 virtual void* GetFont(const FX_CHAR* face);
26 virtual FX_DWORD GetFontData(void* hFont, FX_DWORD table, uint8_t* buffer , FX_DWORD size); 26 virtual FX_DWORD GetFontData(void* hFont, FX_DWORD table, uint8_t* buffer , FX_DWORD size);
27 virtual FX_BOOL» » GetFaceName(void* hFont, CFX_ByteString& name); 27 virtual bool» » GetFaceName(void* hFont, CFX_ByteString& name);
28 virtual FX_BOOL» » GetFontCharset(void* hFont, int& charset); 28 virtual bool» » GetFontCharset(void* hFont, int& charset);
29 29
30 virtual void DeleteFont(void* hFont); 30 virtual void DeleteFont(void* hFont);
31 virtual void* RetainFont(void* hFont); 31 virtual void* RetainFont(void* hFont);
32 FX_BOOL» » » » Init(IFPF_FontMgr *pFontMgr); 32 bool» » » » Init(IFPF_FontMgr *pFontMgr);
33 protected: 33 protected:
34 IFPF_FontMgr *m_pFontMgr; 34 IFPF_FontMgr *m_pFontMgr;
35 }; 35 };
36 #endif 36 #endif
37 37
38 #endif // CORE_SRC_FXGE_ANDROID_FX_ANDROID_FONT_H_ 38 #endif // CORE_SRC_FXGE_ANDROID_FX_ANDROID_FONT_H_
OLDNEW
« no previous file with comments | « core/src/fxge/android/fpf_skiafontmgr.cpp ('k') | core/src/fxge/android/fx_android_font.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698