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

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

Issue 2095653002: Remove NULL in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 6 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 | « xfa/fwl/theme/cfwl_carettp.h ('k') | xfa/fwl/theme/cfwl_listboxtp.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 XFA_FWL_THEME_CFWL_CHECKBOXTP_H_ 7 #ifndef XFA_FWL_THEME_CFWL_CHECKBOXTP_H_
8 #define XFA_FWL_THEME_CFWL_CHECKBOXTP_H_ 8 #define XFA_FWL_THEME_CFWL_CHECKBOXTP_H_
9 9
10 #include "xfa/fwl/theme/cfwl_utils.h" 10 #include "xfa/fwl/theme/cfwl_utils.h"
(...skipping 12 matching lines...) Expand all
23 FX_BOOL DrawText(CFWL_ThemeText* pParams) override; 23 FX_BOOL DrawText(CFWL_ThemeText* pParams) override;
24 FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) override; 24 FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) override;
25 FWL_Error Initialize() override; 25 FWL_Error Initialize() override;
26 FWL_Error Finalize() override; 26 FWL_Error Finalize() override;
27 27
28 protected: 28 protected:
29 void DrawBoxBk(IFWL_Widget* pWidget, 29 void DrawBoxBk(IFWL_Widget* pWidget,
30 CFX_Graphics* pGraphics, 30 CFX_Graphics* pGraphics,
31 const CFX_RectF* pRect, 31 const CFX_RectF* pRect,
32 uint32_t dwStates, 32 uint32_t dwStates,
33 CFX_Matrix* pMatrix = NULL); 33 CFX_Matrix* pMatrix = nullptr);
34 void DrawSign(IFWL_Widget* pWidget, 34 void DrawSign(IFWL_Widget* pWidget,
35 CFX_Graphics* pGraphics, 35 CFX_Graphics* pGraphics,
36 const CFX_RectF* pRtBox, 36 const CFX_RectF* pRtBox,
37 uint32_t dwStates, 37 uint32_t dwStates,
38 CFX_Matrix* pMatrix = NULL); 38 CFX_Matrix* pMatrix = nullptr);
39 void DrawSignNeutral(CFX_Graphics* pGraphics, 39 void DrawSignNeutral(CFX_Graphics* pGraphics,
40 const CFX_RectF* pRtSign, 40 const CFX_RectF* pRtSign,
41 CFX_Matrix* pMatrix = NULL); 41 CFX_Matrix* pMatrix = nullptr);
42 void DrawSignCheck(CFX_Graphics* pGraphics, 42 void DrawSignCheck(CFX_Graphics* pGraphics,
43 const CFX_RectF* pRtSign, 43 const CFX_RectF* pRtSign,
44 FX_ARGB argbFill, 44 FX_ARGB argbFill,
45 CFX_Matrix* pMatrix = NULL); 45 CFX_Matrix* pMatrix = nullptr);
46 void DrawSignCircle(CFX_Graphics* pGraphics, 46 void DrawSignCircle(CFX_Graphics* pGraphics,
47 const CFX_RectF* pRtSign, 47 const CFX_RectF* pRtSign,
48 FX_ARGB argbFill, 48 FX_ARGB argbFill,
49 CFX_Matrix* pMatrix = NULL); 49 CFX_Matrix* pMatrix = nullptr);
50 void DrawSignCross(CFX_Graphics* pGraphics, 50 void DrawSignCross(CFX_Graphics* pGraphics,
51 const CFX_RectF* pRtSign, 51 const CFX_RectF* pRtSign,
52 FX_ARGB argbFill, 52 FX_ARGB argbFill,
53 CFX_Matrix* pMatrix = NULL); 53 CFX_Matrix* pMatrix = nullptr);
54 void DrawSignDiamond(CFX_Graphics* pGraphics, 54 void DrawSignDiamond(CFX_Graphics* pGraphics,
55 const CFX_RectF* pRtSign, 55 const CFX_RectF* pRtSign,
56 FX_ARGB argbFill, 56 FX_ARGB argbFill,
57 CFX_Matrix* pMatrix = NULL); 57 CFX_Matrix* pMatrix = nullptr);
58 void DrawSignSquare(CFX_Graphics* pGraphics, 58 void DrawSignSquare(CFX_Graphics* pGraphics,
59 const CFX_RectF* pRtSign, 59 const CFX_RectF* pRtSign,
60 FX_ARGB argbFill, 60 FX_ARGB argbFill,
61 CFX_Matrix* pMatrix = NULL); 61 CFX_Matrix* pMatrix = nullptr);
62 void DrawSignStar(CFX_Graphics* pGraphics, 62 void DrawSignStar(CFX_Graphics* pGraphics,
63 const CFX_RectF* pRtSign, 63 const CFX_RectF* pRtSign,
64 FX_ARGB argbFill, 64 FX_ARGB argbFill,
65 CFX_Matrix* pMatrix = NULL); 65 CFX_Matrix* pMatrix = nullptr);
66 void DrawSignBorder(IFWL_Widget* pWidget, 66 void DrawSignBorder(IFWL_Widget* pWidget,
67 CFX_Graphics* pGraphics, 67 CFX_Graphics* pGraphics,
68 const CFX_RectF* pRtBox, 68 const CFX_RectF* pRtBox,
69 FX_BOOL bDisable = FALSE, 69 FX_BOOL bDisable = FALSE,
70 CFX_Matrix* pMatrix = NULL); 70 CFX_Matrix* pMatrix = nullptr);
71 void SetThemeData(uint32_t dwID); 71 void SetThemeData(uint32_t dwID);
72 void initCheckPath(FX_FLOAT fCheckLen); 72 void initCheckPath(FX_FLOAT fCheckLen);
73 struct CKBThemeData { 73 struct CKBThemeData {
74 FX_ARGB clrBoxBk[13][2]; 74 FX_ARGB clrBoxBk[13][2];
75 FX_ARGB clrSignBorderNormal; 75 FX_ARGB clrSignBorderNormal;
76 FX_ARGB clrSignBorderDisable; 76 FX_ARGB clrSignBorderDisable;
77 FX_ARGB clrSignCheck; 77 FX_ARGB clrSignCheck;
78 FX_ARGB clrSignNeutral; 78 FX_ARGB clrSignNeutral;
79 FX_ARGB clrSignNeutralNormal; 79 FX_ARGB clrSignNeutralNormal;
80 FX_ARGB clrSignNeutralHover; 80 FX_ARGB clrSignNeutralHover;
81 FX_ARGB clrSignNeutralPressed; 81 FX_ARGB clrSignNeutralPressed;
82 } * m_pThemeData; 82 } * m_pThemeData;
83 CFX_Path* m_pCheckPath; 83 CFX_Path* m_pCheckPath;
84 }; 84 };
85 85
86 #endif // XFA_FWL_THEME_CFWL_CHECKBOXTP_H_ 86 #endif // XFA_FWL_THEME_CFWL_CHECKBOXTP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/theme/cfwl_carettp.h ('k') | xfa/fwl/theme/cfwl_listboxtp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698