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

Side by Side Diff: xfa/fwl/basewidget/fwl_monthcalendarimp.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/fwl/basewidget/fwl_listboximp.h ('k') | xfa/fwl/basewidget/fwl_pictureboximp.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_BASEWIDGET_FWL_MONTHCALENDARIMP_H_ 7 #ifndef XFA_FWL_BASEWIDGET_FWL_MONTHCALENDARIMP_H_
8 #define XFA_FWL_BASEWIDGET_FWL_MONTHCALENDARIMP_H_ 8 #define XFA_FWL_BASEWIDGET_FWL_MONTHCALENDARIMP_H_
9 9
10 #include "xfa/fgas/localization/fgas_datetime.h" 10 #include "xfa/fgas/localization/fgas_datetime.h"
11 #include "xfa/fwl/core/fwl_widgetimp.h" 11 #include "xfa/fwl/core/fwl_widgetimp.h"
12 12
13 class CFWL_MonthCalendarImpDelegate; 13 class CFWL_MonthCalendarImpDelegate;
14 class CFWL_MsgMouse; 14 class CFWL_MsgMouse;
15 class CFWL_WidgetImpProperties; 15 class CFWL_WidgetImpProperties;
16 class IFWL_Widget; 16 class IFWL_Widget;
17 17
18 extern uint8_t FX_DaysInMonth(int32_t iYear, uint8_t iMonth); 18 extern uint8_t FX_DaysInMonth(int32_t iYear, uint8_t iMonth);
19 19
20 class CFWL_MonthCalendarImp : public CFWL_WidgetImp { 20 class CFWL_MonthCalendarImp : public CFWL_WidgetImp {
21 public: 21 public:
22 CFWL_MonthCalendarImp(const CFWL_WidgetImpProperties& properties, 22 CFWL_MonthCalendarImp(const CFWL_WidgetImpProperties& properties,
23 IFWL_Widget* pOuter); 23 IFWL_Widget* pOuter);
24 ~CFWL_MonthCalendarImp(); 24 ~CFWL_MonthCalendarImp();
25 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; 25 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const;
26 virtual FX_DWORD GetClassID() const; 26 virtual uint32_t GetClassID() const;
27 virtual FWL_ERR Initialize(); 27 virtual FWL_ERR Initialize();
28 virtual FWL_ERR Finalize(); 28 virtual FWL_ERR Finalize();
29 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); 29 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE);
30 virtual FWL_ERR Update(); 30 virtual FWL_ERR Update();
31 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics, 31 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics,
32 const CFX_Matrix* pMatrix = NULL); 32 const CFX_Matrix* pMatrix = NULL);
33 virtual int32_t CountSelect(); 33 virtual int32_t CountSelect();
34 virtual FX_BOOL GetSelect(int32_t& iYear, 34 virtual FX_BOOL GetSelect(int32_t& iYear,
35 int32_t& iMonth, 35 int32_t& iMonth,
36 int32_t& iDay, 36 int32_t& iDay,
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 FX_FLOAT m_fTodayHei; 202 FX_FLOAT m_fTodayHei;
203 FX_FLOAT m_fTodayFlagWid; 203 FX_FLOAT m_fTodayFlagWid;
204 FX_FLOAT m_fMCWid; 204 FX_FLOAT m_fMCWid;
205 FX_FLOAT m_fMCHei; 205 FX_FLOAT m_fMCHei;
206 friend class CFWL_MonthCalendarImpDelegate; 206 friend class CFWL_MonthCalendarImpDelegate;
207 }; 207 };
208 208
209 struct FWL_DATEINFO { 209 struct FWL_DATEINFO {
210 FWL_DATEINFO(int32_t day, 210 FWL_DATEINFO(int32_t day,
211 int32_t dayofweek, 211 int32_t dayofweek,
212 FX_DWORD dwSt, 212 uint32_t dwSt,
213 CFX_RectF rc, 213 CFX_RectF rc,
214 CFX_WideString& wsday) 214 CFX_WideString& wsday)
215 : iDay(day), 215 : iDay(day),
216 iDayOfWeek(dayofweek), 216 iDayOfWeek(dayofweek),
217 dwStates(dwSt), 217 dwStates(dwSt),
218 rect(rc), 218 rect(rc),
219 wsDay(wsday) {} 219 wsDay(wsday) {}
220 int32_t iDay; 220 int32_t iDay;
221 int32_t iDayOfWeek; 221 int32_t iDayOfWeek;
222 FX_DWORD dwStates; 222 uint32_t dwStates;
223 CFX_RectF rect; 223 CFX_RectF rect;
224 CFX_WideString wsDay; 224 CFX_WideString wsDay;
225 }; 225 };
226 226
227 class CFWL_MonthCalendarImpDelegate : public CFWL_WidgetImpDelegate { 227 class CFWL_MonthCalendarImpDelegate : public CFWL_WidgetImpDelegate {
228 public: 228 public:
229 CFWL_MonthCalendarImpDelegate(CFWL_MonthCalendarImp* pOwner); 229 CFWL_MonthCalendarImpDelegate(CFWL_MonthCalendarImp* pOwner);
230 int32_t OnProcessMessage(CFWL_Message* pMessage) override; 230 int32_t OnProcessMessage(CFWL_Message* pMessage) override;
231 FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, 231 FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics,
232 const CFX_Matrix* pMatrix = NULL) override; 232 const CFX_Matrix* pMatrix = NULL) override;
233 233
234 protected: 234 protected:
235 void OnActivate(CFWL_Message* pMsg); 235 void OnActivate(CFWL_Message* pMsg);
236 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 236 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
237 void OnLButtonDown(CFWL_MsgMouse* pMsg); 237 void OnLButtonDown(CFWL_MsgMouse* pMsg);
238 void OnLButtonUp(CFWL_MsgMouse* pMsg); 238 void OnLButtonUp(CFWL_MsgMouse* pMsg);
239 void OnMouseMove(CFWL_MsgMouse* pMsg); 239 void OnMouseMove(CFWL_MsgMouse* pMsg);
240 void OnMouseLeave(CFWL_MsgMouse* pMsg); 240 void OnMouseLeave(CFWL_MsgMouse* pMsg);
241 CFWL_MonthCalendarImp* m_pOwner; 241 CFWL_MonthCalendarImp* m_pOwner;
242 }; 242 };
243 243
244 #endif // XFA_FWL_BASEWIDGET_FWL_MONTHCALENDARIMP_H_ 244 #endif // XFA_FWL_BASEWIDGET_FWL_MONTHCALENDARIMP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fwl_listboximp.h ('k') | xfa/fwl/basewidget/fwl_pictureboximp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698