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

Side by Side Diff: xfa/fwl/theme/cfwl_widgettp.h

Issue 2467203003: Remove FX_BOOL from xfa. (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 | « xfa/fwl/theme/cfwl_scrollbartp.cpp ('k') | xfa/fwl/theme/cfwl_widgettp.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 XFA_FWL_THEME_CFWL_WIDGETTP_H_ 7 #ifndef XFA_FWL_THEME_CFWL_WIDGETTP_H_
8 #define XFA_FWL_THEME_CFWL_WIDGETTP_H_ 8 #define XFA_FWL_THEME_CFWL_WIDGETTP_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 const CFX_RectF* pRect, 189 const CFX_RectF* pRect,
190 FX_FLOAT fWidth = 1, 190 FX_FLOAT fWidth = 1,
191 CFX_Matrix* pMatrix = nullptr); 191 CFX_Matrix* pMatrix = nullptr);
192 void DrawFocus(CFX_Graphics* pGraphics, 192 void DrawFocus(CFX_Graphics* pGraphics,
193 const CFX_RectF* pRect, 193 const CFX_RectF* pRect,
194 CFX_Matrix* pMatrix = nullptr); 194 CFX_Matrix* pMatrix = nullptr);
195 void DrawArrow(CFX_Graphics* pGraphics, 195 void DrawArrow(CFX_Graphics* pGraphics,
196 const CFX_RectF* pRect, 196 const CFX_RectF* pRect,
197 FWLTHEME_DIRECTION eDict, 197 FWLTHEME_DIRECTION eDict,
198 FX_ARGB argbFill, 198 FX_ARGB argbFill,
199 FX_BOOL bPressed, 199 bool bPressed,
200 CFX_Matrix* pMatrix = nullptr); 200 CFX_Matrix* pMatrix = nullptr);
201 void DrawArrow(CFX_Graphics* pGraphics, 201 void DrawArrow(CFX_Graphics* pGraphics,
202 const CFX_RectF* pRect, 202 const CFX_RectF* pRect,
203 FWLTHEME_DIRECTION eDict, 203 FWLTHEME_DIRECTION eDict,
204 FX_ARGB argSign, 204 FX_ARGB argSign,
205 CFX_Matrix* pMatrix = nullptr); 205 CFX_Matrix* pMatrix = nullptr);
206 void DrawBtn(CFX_Graphics* pGraphics, 206 void DrawBtn(CFX_Graphics* pGraphics,
207 const CFX_RectF* pRect, 207 const CFX_RectF* pRect,
208 FWLTHEME_STATE eState, 208 FWLTHEME_STATE eState,
209 CFX_Matrix* pMatrix = nullptr); 209 CFX_Matrix* pMatrix = nullptr);
(...skipping 13 matching lines...) Expand all
223 223
224 void FWLTHEME_Release(); 224 void FWLTHEME_Release();
225 uint32_t FWL_GetThemeLayout(uint32_t dwThemeID); 225 uint32_t FWL_GetThemeLayout(uint32_t dwThemeID);
226 uint32_t FWL_GetThemeColor(uint32_t dwThemeID); 226 uint32_t FWL_GetThemeColor(uint32_t dwThemeID);
227 227
228 class CFWL_FontData { 228 class CFWL_FontData {
229 public: 229 public:
230 CFWL_FontData(); 230 CFWL_FontData();
231 virtual ~CFWL_FontData(); 231 virtual ~CFWL_FontData();
232 232
233 FX_BOOL Equal(const CFX_WideStringC& wsFontFamily, 233 bool Equal(const CFX_WideStringC& wsFontFamily,
234 uint32_t dwFontStyles,
235 uint16_t wCodePage);
236 bool LoadFont(const CFX_WideStringC& wsFontFamily,
234 uint32_t dwFontStyles, 237 uint32_t dwFontStyles,
235 uint16_t wCodePage); 238 uint16_t wCodePage);
236 FX_BOOL LoadFont(const CFX_WideStringC& wsFontFamily,
237 uint32_t dwFontStyles,
238 uint16_t wCodePage);
239 CFGAS_GEFont* GetFont() const { return m_pFont.get(); } 239 CFGAS_GEFont* GetFont() const { return m_pFont.get(); }
240 240
241 protected: 241 protected:
242 CFX_WideString m_wsFamily; 242 CFX_WideString m_wsFamily;
243 uint32_t m_dwStyles; 243 uint32_t m_dwStyles;
244 uint32_t m_dwCodePage; 244 uint32_t m_dwCodePage;
245 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ 245 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
246 std::unique_ptr<CFX_FontSourceEnum_File> m_pFontSource; 246 std::unique_ptr<CFX_FontSourceEnum_File> m_pFontSource;
247 #endif 247 #endif
248 std::unique_ptr<IFGAS_FontMgr> m_pFontMgr; 248 std::unique_ptr<IFGAS_FontMgr> m_pFontMgr;
(...skipping 11 matching lines...) Expand all
260 260
261 protected: 261 protected:
262 CFWL_FontManager(); 262 CFWL_FontManager();
263 virtual ~CFWL_FontManager(); 263 virtual ~CFWL_FontManager();
264 264
265 static CFWL_FontManager* s_FontManager; 265 static CFWL_FontManager* s_FontManager;
266 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; 266 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray;
267 }; 267 };
268 268
269 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ 269 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/theme/cfwl_scrollbartp.cpp ('k') | xfa/fwl/theme/cfwl_widgettp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698