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

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

Issue 2435603003: Cleanup unused methods and return values in FWL code. (Closed)
Patch Set: Fix typo 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 | « xfa/fwl/theme/cfwl_carettp.cpp ('k') | 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>
11 11
12 #include "xfa/fwl/theme/cfwl_utils.h" 12 #include "xfa/fwl/theme/cfwl_utils.h"
13 #include "xfa/fwl/theme/cfwl_widgettp.h" 13 #include "xfa/fwl/theme/cfwl_widgettp.h"
14 14
15 class CFWL_CheckBoxTP : public CFWL_WidgetTP { 15 class CFWL_CheckBoxTP : public CFWL_WidgetTP {
16 public: 16 public:
17 CFWL_CheckBoxTP(); 17 CFWL_CheckBoxTP();
18 ~CFWL_CheckBoxTP() override; 18 ~CFWL_CheckBoxTP() override;
19 19
20 // CFWL_WidgeTP 20 // CFWL_WidgeTP
21 void Initialize() override;
22 void Finalize() override;
21 bool IsValidWidget(IFWL_Widget* pWidget) override; 23 bool IsValidWidget(IFWL_Widget* pWidget) override;
22 uint32_t SetThemeID(IFWL_Widget* pWidget, uint32_t dwThemeID) override; 24 uint32_t SetThemeID(IFWL_Widget* pWidget, uint32_t dwThemeID) override;
23 FX_BOOL DrawText(CFWL_ThemeText* pParams) override; 25 void DrawText(CFWL_ThemeText* pParams) override;
24 FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) override; 26 void DrawBackground(CFWL_ThemeBackground* pParams) override;
25 FWL_Error Initialize() override;
26 FWL_Error Finalize() override;
27 27
28 protected: 28 protected:
29 struct CKBThemeData { 29 struct CKBThemeData {
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;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 CFX_Matrix* pMatrix); 68 CFX_Matrix* pMatrix);
69 69
70 void SetThemeData(uint32_t dwID); 70 void SetThemeData(uint32_t dwID);
71 void InitCheckPath(FX_FLOAT fCheckLen); 71 void InitCheckPath(FX_FLOAT fCheckLen);
72 72
73 std::unique_ptr<CKBThemeData> m_pThemeData; 73 std::unique_ptr<CKBThemeData> m_pThemeData;
74 std::unique_ptr<CFX_Path> m_pCheckPath; 74 std::unique_ptr<CFX_Path> m_pCheckPath;
75 }; 75 };
76 76
77 #endif // XFA_FWL_THEME_CFWL_CHECKBOXTP_H_ 77 #endif // XFA_FWL_THEME_CFWL_CHECKBOXTP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/theme/cfwl_carettp.cpp ('k') | xfa/fwl/theme/cfwl_checkboxtp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698