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

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

Issue 2031873003: Get rid of NULLs in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_fpdfsdk
Patch Set: 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_comboboximp.cpp ('k') | xfa/fwl/basewidget/fwl_datetimepickerimp.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_DATETIMEPICKERIMP_H_ 7 #ifndef XFA_FWL_BASEWIDGET_FWL_DATETIMEPICKERIMP_H_
8 #define XFA_FWL_BASEWIDGET_FWL_DATETIMEPICKERIMP_H_ 8 #define XFA_FWL_BASEWIDGET_FWL_DATETIMEPICKERIMP_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 void DisForm_InitDateTimeCalendar(); 168 void DisForm_InitDateTimeCalendar();
169 void DisForm_InitDateTimeEdit(); 169 void DisForm_InitDateTimeEdit();
170 FX_BOOL DisForm_IsMonthCalendarShowed(); 170 FX_BOOL DisForm_IsMonthCalendarShowed();
171 void DisForm_ShowMonthCalendar(FX_BOOL bActivate); 171 void DisForm_ShowMonthCalendar(FX_BOOL bActivate);
172 FWL_WidgetHit DisForm_HitTest(FX_FLOAT fx, FX_FLOAT fy); 172 FWL_WidgetHit DisForm_HitTest(FX_FLOAT fx, FX_FLOAT fy);
173 FX_BOOL DisForm_IsNeedShowButton(); 173 FX_BOOL DisForm_IsNeedShowButton();
174 FWL_Error DisForm_Update(); 174 FWL_Error DisForm_Update();
175 FWL_Error DisForm_GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); 175 FWL_Error DisForm_GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE);
176 FWL_Error DisForm_GetBBox(CFX_RectF& rect); 176 FWL_Error DisForm_GetBBox(CFX_RectF& rect);
177 FWL_Error DisForm_DrawWidget(CFX_Graphics* pGraphics, 177 FWL_Error DisForm_DrawWidget(CFX_Graphics* pGraphics,
178 const CFX_Matrix* pMatrix = NULL); 178 const CFX_Matrix* pMatrix = nullptr);
179 179
180 protected: 180 protected:
181 CFX_RectF m_rtBtn; 181 CFX_RectF m_rtBtn;
182 CFX_RectF m_rtClient; 182 CFX_RectF m_rtClient;
183 int32_t m_iBtnState; 183 int32_t m_iBtnState;
184 int32_t m_iYear; 184 int32_t m_iYear;
185 int32_t m_iMonth; 185 int32_t m_iMonth;
186 int32_t m_iDay; 186 int32_t m_iDay;
187 FX_BOOL m_bLBtnDown; 187 FX_BOOL m_bLBtnDown;
188 std::unique_ptr<IFWL_DateTimeEdit> m_pEdit; 188 std::unique_ptr<IFWL_DateTimeEdit> m_pEdit;
(...skipping 23 matching lines...) Expand all
212 friend class CFWL_DateTimeEditImpDelegate; 212 friend class CFWL_DateTimeEditImpDelegate;
213 friend class CFWL_DateTimeCalendar; 213 friend class CFWL_DateTimeCalendar;
214 friend class CFWL_DateTimeCalendarImpDelegate; 214 friend class CFWL_DateTimeCalendarImpDelegate;
215 friend class CFWL_DateTimePickerImpDelegate; 215 friend class CFWL_DateTimePickerImpDelegate;
216 }; 216 };
217 class CFWL_DateTimePickerImpDelegate : public CFWL_WidgetImpDelegate { 217 class CFWL_DateTimePickerImpDelegate : public CFWL_WidgetImpDelegate {
218 public: 218 public:
219 CFWL_DateTimePickerImpDelegate(CFWL_DateTimePickerImp* pOwner); 219 CFWL_DateTimePickerImpDelegate(CFWL_DateTimePickerImp* pOwner);
220 void OnProcessMessage(CFWL_Message* pMessage) override; 220 void OnProcessMessage(CFWL_Message* pMessage) override;
221 void OnDrawWidget(CFX_Graphics* pGraphics, 221 void OnDrawWidget(CFX_Graphics* pGraphics,
222 const CFX_Matrix* pMatrix = NULL) override; 222 const CFX_Matrix* pMatrix = nullptr) override;
223 223
224 protected: 224 protected:
225 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 225 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
226 void OnLButtonDown(CFWL_MsgMouse* pMsg); 226 void OnLButtonDown(CFWL_MsgMouse* pMsg);
227 void OnLButtonUp(CFWL_MsgMouse* pMsg); 227 void OnLButtonUp(CFWL_MsgMouse* pMsg);
228 void OnMouseMove(CFWL_MsgMouse* pMsg); 228 void OnMouseMove(CFWL_MsgMouse* pMsg);
229 void OnMouseLeave(CFWL_MsgMouse* pMsg); 229 void OnMouseLeave(CFWL_MsgMouse* pMsg);
230 230
231 CFWL_DateTimePickerImp* m_pOwner; 231 CFWL_DateTimePickerImp* m_pOwner;
232 232
233 private: 233 private:
234 void DisForm_OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 234 void DisForm_OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
235 }; 235 };
236 236
237 #endif // XFA_FWL_BASEWIDGET_FWL_DATETIMEPICKERIMP_H_ 237 #endif // XFA_FWL_BASEWIDGET_FWL_DATETIMEPICKERIMP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fwl_comboboximp.cpp ('k') | xfa/fwl/basewidget/fwl_datetimepickerimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698