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

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

Issue 2418413005: Remove FWL theme subclasses (Closed)
Patch Set: Review fixes Created 4 years, 2 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 | « no previous file | xfa/fwl/theme/cfwl_checkboxtp.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_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 <memory> 10 #include <memory>
(...skipping 19 matching lines...) Expand all
30 FX_ARGB clrBoxBk[13][2]; 30 FX_ARGB clrBoxBk[13][2];
31 FX_ARGB clrSignBorderNormal; 31 FX_ARGB clrSignBorderNormal;
32 FX_ARGB clrSignBorderDisable; 32 FX_ARGB clrSignBorderDisable;
33 FX_ARGB clrSignCheck; 33 FX_ARGB clrSignCheck;
34 FX_ARGB clrSignNeutral; 34 FX_ARGB clrSignNeutral;
35 FX_ARGB clrSignNeutralNormal; 35 FX_ARGB clrSignNeutralNormal;
36 FX_ARGB clrSignNeutralHover; 36 FX_ARGB clrSignNeutralHover;
37 FX_ARGB clrSignNeutralPressed; 37 FX_ARGB clrSignNeutralPressed;
38 }; 38 };
39 39
40 void DrawBoxBk(IFWL_Widget* pWidget, 40 void DrawCheckSign(IFWL_Widget* pWidget,
41 CFX_Graphics* pGraphics, 41 CFX_Graphics* pGraphics,
42 const CFX_RectF* pRect, 42 const CFX_RectF& pRtBox,
43 uint32_t dwStates, 43 int32_t iState,
44 CFX_Matrix* pMatrix); 44 CFX_Matrix* pMatrix);
45 void DrawSign(IFWL_Widget* pWidget,
46 CFX_Graphics* pGraphics,
47 const CFX_RectF* pRtBox,
48 uint32_t dwStates,
49 CFX_Matrix* pMatrix);
50 void DrawSignNeutral(CFX_Graphics* pGraphics,
51 const CFX_RectF* pRtSign,
52 CFX_Matrix* pMatrix);
53 void DrawSignCheck(CFX_Graphics* pGraphics, 45 void DrawSignCheck(CFX_Graphics* pGraphics,
54 const CFX_RectF* pRtSign, 46 const CFX_RectF* pRtSign,
55 FX_ARGB argbFill, 47 FX_ARGB argbFill,
56 CFX_Matrix* pMatrix); 48 CFX_Matrix* pMatrix);
57 void DrawSignCircle(CFX_Graphics* pGraphics, 49 void DrawSignCircle(CFX_Graphics* pGraphics,
58 const CFX_RectF* pRtSign, 50 const CFX_RectF* pRtSign,
59 FX_ARGB argbFill, 51 FX_ARGB argbFill,
60 CFX_Matrix* pMatrix); 52 CFX_Matrix* pMatrix);
61 void DrawSignCross(CFX_Graphics* pGraphics, 53 void DrawSignCross(CFX_Graphics* pGraphics,
62 const CFX_RectF* pRtSign, 54 const CFX_RectF* pRtSign,
63 FX_ARGB argbFill, 55 FX_ARGB argbFill,
64 CFX_Matrix* pMatrix); 56 CFX_Matrix* pMatrix);
65 void DrawSignDiamond(CFX_Graphics* pGraphics, 57 void DrawSignDiamond(CFX_Graphics* pGraphics,
66 const CFX_RectF* pRtSign, 58 const CFX_RectF* pRtSign,
67 FX_ARGB argbFill, 59 FX_ARGB argbFill,
68 CFX_Matrix* pMatrix); 60 CFX_Matrix* pMatrix);
69 void DrawSignSquare(CFX_Graphics* pGraphics, 61 void DrawSignSquare(CFX_Graphics* pGraphics,
70 const CFX_RectF* pRtSign, 62 const CFX_RectF* pRtSign,
71 FX_ARGB argbFill, 63 FX_ARGB argbFill,
72 CFX_Matrix* pMatrix); 64 CFX_Matrix* pMatrix);
73 void DrawSignStar(CFX_Graphics* pGraphics, 65 void DrawSignStar(CFX_Graphics* pGraphics,
74 const CFX_RectF* pRtSign, 66 const CFX_RectF* pRtSign,
75 FX_ARGB argbFill, 67 FX_ARGB argbFill,
76 CFX_Matrix* pMatrix); 68 CFX_Matrix* pMatrix);
77 void DrawSignBorder(IFWL_Widget* pWidget, 69
78 CFX_Graphics* pGraphics,
79 const CFX_RectF* pRtBox,
80 FX_BOOL bDisable,
81 CFX_Matrix* pMatrix);
82 void SetThemeData(uint32_t dwID); 70 void SetThemeData(uint32_t dwID);
83 void InitCheckPath(FX_FLOAT fCheckLen); 71 void InitCheckPath(FX_FLOAT fCheckLen);
84 72
85 std::unique_ptr<CKBThemeData> m_pThemeData; 73 std::unique_ptr<CKBThemeData> m_pThemeData;
86 std::unique_ptr<CFX_Path> m_pCheckPath; 74 std::unique_ptr<CFX_Path> m_pCheckPath;
87 }; 75 };
88 76
89 #endif // XFA_FWL_THEME_CFWL_CHECKBOXTP_H_ 77 #endif // XFA_FWL_THEME_CFWL_CHECKBOXTP_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fwl/theme/cfwl_checkboxtp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698