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

Side by Side Diff: core/fxge/android/cfx_androidfontinfo.h

Issue 2477443002: Remove FX_BOOL from core (Closed)
Patch Set: Created 4 years, 1 month 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/fxge/android/cfpf_skiafont.cpp ('k') | core/fxge/android/cfx_androidfontinfo.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 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_FXGE_ANDROID_CFX_ANDROIDFONTINFO_H_ 7 #ifndef CORE_FXGE_ANDROID_CFX_ANDROIDFONTINFO_H_
8 #define CORE_FXGE_ANDROID_CFX_ANDROIDFONTINFO_H_ 8 #define CORE_FXGE_ANDROID_CFX_ANDROIDFONTINFO_H_
9 9
10 #include "core/fxcrt/fx_system.h" 10 #include "core/fxcrt/fx_system.h"
11 #include "core/fxge/cfx_fontmapper.h" 11 #include "core/fxge/cfx_fontmapper.h"
12 #include "core/fxge/fx_font.h" 12 #include "core/fxge/fx_font.h"
13 #include "core/fxge/ifx_systemfontinfo.h" 13 #include "core/fxge/ifx_systemfontinfo.h"
14 14
15 class CFPF_SkiaFontMgr; 15 class CFPF_SkiaFontMgr;
16 16
17 class CFX_AndroidFontInfo : public IFX_SystemFontInfo { 17 class CFX_AndroidFontInfo : public IFX_SystemFontInfo {
18 public: 18 public:
19 CFX_AndroidFontInfo(); 19 CFX_AndroidFontInfo();
20 ~CFX_AndroidFontInfo() override; 20 ~CFX_AndroidFontInfo() override;
21 21
22 FX_BOOL Init(CFPF_SkiaFontMgr* pFontMgr); 22 bool Init(CFPF_SkiaFontMgr* pFontMgr);
23 23
24 // IFX_SystemFontInfo: 24 // IFX_SystemFontInfo:
25 FX_BOOL EnumFontList(CFX_FontMapper* pMapper) override; 25 bool EnumFontList(CFX_FontMapper* pMapper) override;
26 void* MapFont(int weight, 26 void* MapFont(int weight,
27 FX_BOOL bItalic, 27 bool bItalic,
28 int charset, 28 int charset,
29 int pitch_family, 29 int pitch_family,
30 const FX_CHAR* face, 30 const FX_CHAR* face,
31 int& bExact) override; 31 int& bExact) override;
32 void* GetFont(const FX_CHAR* face) override; 32 void* GetFont(const FX_CHAR* face) override;
33 uint32_t GetFontData(void* hFont, 33 uint32_t GetFontData(void* hFont,
34 uint32_t table, 34 uint32_t table,
35 uint8_t* buffer, 35 uint8_t* buffer,
36 uint32_t size) override; 36 uint32_t size) override;
37 FX_BOOL GetFaceName(void* hFont, CFX_ByteString& name) override; 37 bool GetFaceName(void* hFont, CFX_ByteString& name) override;
38 FX_BOOL GetFontCharset(void* hFont, int& charset) override; 38 bool GetFontCharset(void* hFont, int& charset) override;
39 void DeleteFont(void* hFont) override; 39 void DeleteFont(void* hFont) override;
40 40
41 protected: 41 protected:
42 CFPF_SkiaFontMgr* m_pFontMgr; 42 CFPF_SkiaFontMgr* m_pFontMgr;
43 }; 43 };
44 44
45 #endif // CORE_FXGE_ANDROID_CFX_ANDROIDFONTINFO_H_ 45 #endif // CORE_FXGE_ANDROID_CFX_ANDROIDFONTINFO_H_
OLDNEW
« no previous file with comments | « core/fxge/android/cfpf_skiafont.cpp ('k') | core/fxge/android/cfx_androidfontinfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698