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

Side by Side Diff: xfa/include/fwl/theme/monthcalendartp.h

Issue 1835703002: Remove FX_DWORD from XFA, part 2 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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/include/fwl/theme/listboxtp.h ('k') | xfa/include/fwl/theme/pushbuttontp.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_INCLUDE_FWL_THEME_MONTHCALENDARTP_H_ 7 #ifndef XFA_INCLUDE_FWL_THEME_MONTHCALENDARTP_H_
8 #define XFA_INCLUDE_FWL_THEME_MONTHCALENDARTP_H_ 8 #define XFA_INCLUDE_FWL_THEME_MONTHCALENDARTP_H_
9 9
10 #include "xfa/include/fwl/theme/widgettp.h" 10 #include "xfa/include/fwl/theme/widgettp.h"
11 11
12 class CFWL_MonthCalendarTP : public CFWL_WidgetTP { 12 class CFWL_MonthCalendarTP : public CFWL_WidgetTP {
13 public: 13 public:
14 CFWL_MonthCalendarTP(); 14 CFWL_MonthCalendarTP();
15 virtual ~CFWL_MonthCalendarTP(); 15 virtual ~CFWL_MonthCalendarTP();
16 virtual FX_BOOL IsValidWidget(IFWL_Widget* pWidget); 16 virtual FX_BOOL IsValidWidget(IFWL_Widget* pWidget);
17 virtual FX_DWORD SetThemeID(IFWL_Widget* pWidget, 17 virtual uint32_t SetThemeID(IFWL_Widget* pWidget,
18 FX_DWORD dwThemeID, 18 uint32_t dwThemeID,
19 FX_BOOL bChildren = TRUE); 19 FX_BOOL bChildren = TRUE);
20 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams); 20 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams);
21 virtual FX_BOOL DrawText(CFWL_ThemeText* pParams); 21 virtual FX_BOOL DrawText(CFWL_ThemeText* pParams);
22 virtual void* GetCapacity(CFWL_ThemePart* pThemePart, FX_DWORD dwCapacity); 22 virtual void* GetCapacity(CFWL_ThemePart* pThemePart, uint32_t dwCapacity);
23 virtual FWL_ERR Initialize(); 23 virtual FWL_ERR Initialize();
24 virtual FWL_ERR Finalize(); 24 virtual FWL_ERR Finalize();
25 25
26 protected: 26 protected:
27 FX_BOOL DrawTotalBK(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); 27 FX_BOOL DrawTotalBK(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix);
28 FX_BOOL DrawHeadBk(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); 28 FX_BOOL DrawHeadBk(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix);
29 FX_BOOL DrawLButton(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); 29 FX_BOOL DrawLButton(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix);
30 FX_BOOL DrawRButton(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); 30 FX_BOOL DrawRButton(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix);
31 FX_BOOL DrawDatesInBK(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); 31 FX_BOOL DrawDatesInBK(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix);
32 FX_BOOL DrawDatesInCircle(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); 32 FX_BOOL DrawDatesInCircle(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix);
33 FX_BOOL DrawTodayCircle(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); 33 FX_BOOL DrawTodayCircle(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix);
34 FX_BOOL DrawHSeperator(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); 34 FX_BOOL DrawHSeperator(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix);
35 FX_BOOL DrawWeekNumSep(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); 35 FX_BOOL DrawWeekNumSep(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix);
36 FWLTHEME_STATE GetState(FX_DWORD dwFWLStates); 36 FWLTHEME_STATE GetState(uint32_t dwFWLStates);
37 void SetThemeData(FX_DWORD dwThemeID); 37 void SetThemeData(uint32_t dwThemeID);
38 class MCThemeData { 38 class MCThemeData {
39 public: 39 public:
40 FX_ARGB clrCaption; 40 FX_ARGB clrCaption;
41 FX_ARGB clrSeperator; 41 FX_ARGB clrSeperator;
42 FX_ARGB clrDatesHoverBK; 42 FX_ARGB clrDatesHoverBK;
43 FX_ARGB clrDatesSelectedBK; 43 FX_ARGB clrDatesSelectedBK;
44 FX_ARGB clrDatesCircle; 44 FX_ARGB clrDatesCircle;
45 FX_ARGB clrToday; 45 FX_ARGB clrToday;
46 FX_ARGB clrBK; 46 FX_ARGB clrBK;
47 } * m_pThemeData; 47 } * m_pThemeData;
48 CFX_WideString wsResource; 48 CFX_WideString wsResource;
49 }; 49 };
50 50
51 #endif // XFA_INCLUDE_FWL_THEME_MONTHCALENDARTP_H_ 51 #endif // XFA_INCLUDE_FWL_THEME_MONTHCALENDARTP_H_
OLDNEW
« no previous file with comments | « xfa/include/fwl/theme/listboxtp.h ('k') | xfa/include/fwl/theme/pushbuttontp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698