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

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

Issue 2207093005: Use smart pointers for class owned pointers (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: one more change Created 4 years, 4 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 <memory>
11
10 #include "xfa/fgas/localization/fgas_datetime.h" 12 #include "xfa/fgas/localization/fgas_datetime.h"
11 #include "xfa/fwl/core/fwl_widgetimp.h" 13 #include "xfa/fwl/core/fwl_widgetimp.h"
12 #include "xfa/fwl/core/ifwl_widget.h" 14 #include "xfa/fwl/core/ifwl_widget.h"
13 15
14 class CFWL_MonthCalendarImpDelegate; 16 class CFWL_MonthCalendarImpDelegate;
15 class CFWL_MsgMouse; 17 class CFWL_MsgMouse;
16 class CFWL_WidgetImpProperties; 18 class CFWL_WidgetImpProperties;
17 class IFWL_Widget; 19 class IFWL_Widget;
18 20
19 struct FWL_DATEINFO; 21 struct FWL_DATEINFO;
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 CFX_RectF m_rtDates; 159 CFX_RectF m_rtDates;
158 CFX_RectF m_rtHSep; 160 CFX_RectF m_rtHSep;
159 CFX_RectF m_rtHeadText; 161 CFX_RectF m_rtHeadText;
160 CFX_RectF m_rtToday; 162 CFX_RectF m_rtToday;
161 CFX_RectF m_rtTodayFlag; 163 CFX_RectF m_rtTodayFlag;
162 CFX_RectF m_rtWeekNum; 164 CFX_RectF m_rtWeekNum;
163 CFX_RectF m_rtWeekNumSep; 165 CFX_RectF m_rtWeekNumSep;
164 CFX_RectF m_rtTemp; 166 CFX_RectF m_rtTemp;
165 CFX_WideString m_wsHead; 167 CFX_WideString m_wsHead;
166 CFX_WideString m_wsToday; 168 CFX_WideString m_wsToday;
167 CFX_DateTime* m_pDateTime; 169 std::unique_ptr<CFX_DateTime> m_pDateTime;
168 CFX_ArrayTemplate<FWL_DATEINFO*> m_arrDates; 170 CFX_ArrayTemplate<FWL_DATEINFO*> m_arrDates;
169 int32_t m_iCurYear; 171 int32_t m_iCurYear;
170 int32_t m_iCurMonth; 172 int32_t m_iCurMonth;
171 int32_t m_iYear; 173 int32_t m_iYear;
172 int32_t m_iMonth; 174 int32_t m_iMonth;
173 int32_t m_iDay; 175 int32_t m_iDay;
174 int32_t m_iHovered; 176 int32_t m_iHovered;
175 int32_t m_iLBtnPartStates; 177 int32_t m_iLBtnPartStates;
176 int32_t m_iRBtnPartStates; 178 int32_t m_iRBtnPartStates;
177 DATE m_dtMin; 179 DATE m_dtMin;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 void OnActivate(CFWL_Message* pMsg); 239 void OnActivate(CFWL_Message* pMsg);
238 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 240 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
239 void OnLButtonDown(CFWL_MsgMouse* pMsg); 241 void OnLButtonDown(CFWL_MsgMouse* pMsg);
240 void OnLButtonUp(CFWL_MsgMouse* pMsg); 242 void OnLButtonUp(CFWL_MsgMouse* pMsg);
241 void OnMouseMove(CFWL_MsgMouse* pMsg); 243 void OnMouseMove(CFWL_MsgMouse* pMsg);
242 void OnMouseLeave(CFWL_MsgMouse* pMsg); 244 void OnMouseLeave(CFWL_MsgMouse* pMsg);
243 CFWL_MonthCalendarImp* m_pOwner; 245 CFWL_MonthCalendarImp* m_pOwner;
244 }; 246 };
245 247
246 #endif // XFA_FWL_BASEWIDGET_FWL_MONTHCALENDARIMP_H_ 248 #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