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

Side by Side Diff: core/src/fxge/win32/dwrite_int.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/skia/fx_skia_device.cpp ('k') | core/src/fxge/win32/fx_win32_device.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_WIN32_DWRITE_INT_H_ 7 #ifndef CORE_SRC_FXGE_WIN32_DWRITE_INT_H_
8 #define CORE_SRC_FXGE_WIN32_DWRITE_INT_H_ 8 #define CORE_SRC_FXGE_WIN32_DWRITE_INT_H_
9 9
10 #ifndef DECLSPEC_UUID 10 #ifndef DECLSPEC_UUID
(...skipping 17 matching lines...) Expand all
28 #endif 28 #endif
29 class CDWriteExt 29 class CDWriteExt
30 { 30 {
31 public: 31 public:
32 CDWriteExt(); 32 CDWriteExt();
33 ~CDWriteExt(); 33 ~CDWriteExt();
34 34
35 void Load(); 35 void Load();
36 void Unload(); 36 void Unload();
37 37
38 FX_BOOL» » » IsAvailable() 38 bool» » » IsAvailable()
39 { 39 {
40 return m_pDWriteFactory != NULL; 40 return m_pDWriteFactory != NULL;
41 } 41 }
42 42
43 void* DwCreateFontFaceFromStream(uint8_t* pData, FX_DW ORD size, int simulation_style); 43 void* DwCreateFontFaceFromStream(uint8_t* pData, FX_DW ORD size, int simulation_style);
44 FX_BOOL DwCreateRenderingTarget(CFX_DIBitmap* pSrc, void** renderTar get); 44 bool DwCreateRenderingTarget(CFX_DIBitmap* pSrc, void** renderTarget );
45 void DwDeleteRenderingTarget(void* renderTarget); 45 void DwDeleteRenderingTarget(void* renderTarget);
46 FX_BOOL» » » DwRendingString(void* renderTarget, CFX_ClipRgn* pClipRgn, FX_RECT& stringRect, CFX_AffineMatrix* pMatrix, 46 bool» » » DwRendingString(void* renderTarget, CFX_ClipRgn* pClipRgn, FX_RECT& stringRect, CFX_AffineMatrix* pMatrix,
47 void *font, FX_FLOAT font_size, FX_ARGB text _color, 47 void *font, FX_FLOAT font_size, FX_ARGB text _color,
48 int glyph_count, unsigned short* glyph_indic es, 48 int glyph_count, unsigned short* glyph_indic es,
49 FX_FLOAT baselineOriginX, FX_FLOAT baselineO riginY, 49 FX_FLOAT baselineOriginX, FX_FLOAT baselineO riginY,
50 void* glyph_offsets, 50 void* glyph_offsets,
51 FX_FLOAT* glyph_advances); 51 FX_FLOAT* glyph_advances);
52 void DwDeleteFont(void* pFont); 52 void DwDeleteFont(void* pFont);
53 53
54 protected: 54 protected:
55 void* m_hModule; 55 void* m_hModule;
56 void* m_pDWriteFactory; 56 void* m_pDWriteFactory;
57 void* m_pDwFontContext; 57 void* m_pDwFontContext;
58 void* m_pDwTextRenderer; 58 void* m_pDwTextRenderer;
59 }; 59 };
60 60
61 #endif // CORE_SRC_FXGE_WIN32_DWRITE_INT_H_ 61 #endif // CORE_SRC_FXGE_WIN32_DWRITE_INT_H_
OLDNEW
« no previous file with comments | « core/src/fxge/skia/fx_skia_device.cpp ('k') | core/src/fxge/win32/fx_win32_device.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698