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

Side by Side Diff: xfa/fwl/basewidget/fwl_monthcalendarimp.h

Issue 2070583003: Make code compile with clang_use_chrome_plugin (part VI) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: better macros 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/basewidget/fwl_editimp.cpp ('k') | xfa/fwl/basewidget/fwl_monthcalendarimp.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_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"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 FX_FLOAT m_fMCWid; 209 FX_FLOAT m_fMCWid;
210 FX_FLOAT m_fMCHei; 210 FX_FLOAT m_fMCHei;
211 friend class CFWL_MonthCalendarImpDelegate; 211 friend class CFWL_MonthCalendarImpDelegate;
212 }; 212 };
213 213
214 struct FWL_DATEINFO { 214 struct FWL_DATEINFO {
215 FWL_DATEINFO(int32_t day, 215 FWL_DATEINFO(int32_t day,
216 int32_t dayofweek, 216 int32_t dayofweek,
217 uint32_t dwSt, 217 uint32_t dwSt,
218 CFX_RectF rc, 218 CFX_RectF rc,
219 CFX_WideString& wsday) 219 CFX_WideString& wsday);
220 : iDay(day), 220 ~FWL_DATEINFO();
221 iDayOfWeek(dayofweek), 221
222 dwStates(dwSt),
223 rect(rc),
224 wsDay(wsday) {}
225 int32_t iDay; 222 int32_t iDay;
226 int32_t iDayOfWeek; 223 int32_t iDayOfWeek;
227 uint32_t dwStates; 224 uint32_t dwStates;
228 CFX_RectF rect; 225 CFX_RectF rect;
229 CFX_WideString wsDay; 226 CFX_WideString wsDay;
230 }; 227 };
231 228
232 class CFWL_MonthCalendarImpDelegate : public CFWL_WidgetImpDelegate { 229 class CFWL_MonthCalendarImpDelegate : public CFWL_WidgetImpDelegate {
233 public: 230 public:
234 CFWL_MonthCalendarImpDelegate(CFWL_MonthCalendarImp* pOwner); 231 CFWL_MonthCalendarImpDelegate(CFWL_MonthCalendarImp* pOwner);
235 void OnProcessMessage(CFWL_Message* pMessage) override; 232 void OnProcessMessage(CFWL_Message* pMessage) override;
236 void OnDrawWidget(CFX_Graphics* pGraphics, 233 void OnDrawWidget(CFX_Graphics* pGraphics,
237 const CFX_Matrix* pMatrix = NULL) override; 234 const CFX_Matrix* pMatrix = NULL) override;
238 235
239 protected: 236 protected:
240 void OnActivate(CFWL_Message* pMsg); 237 void OnActivate(CFWL_Message* pMsg);
241 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 238 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
242 void OnLButtonDown(CFWL_MsgMouse* pMsg); 239 void OnLButtonDown(CFWL_MsgMouse* pMsg);
243 void OnLButtonUp(CFWL_MsgMouse* pMsg); 240 void OnLButtonUp(CFWL_MsgMouse* pMsg);
244 void OnMouseMove(CFWL_MsgMouse* pMsg); 241 void OnMouseMove(CFWL_MsgMouse* pMsg);
245 void OnMouseLeave(CFWL_MsgMouse* pMsg); 242 void OnMouseLeave(CFWL_MsgMouse* pMsg);
246 CFWL_MonthCalendarImp* m_pOwner; 243 CFWL_MonthCalendarImp* m_pOwner;
247 }; 244 };
248 245
249 #endif // XFA_FWL_BASEWIDGET_FWL_MONTHCALENDARIMP_H_ 246 #endif // XFA_FWL_BASEWIDGET_FWL_MONTHCALENDARIMP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fwl_editimp.cpp ('k') | xfa/fwl/basewidget/fwl_monthcalendarimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698