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

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

Issue 2095653002: Remove NULL in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 void DisForm_InitDateTimeCalendar(); 209 void DisForm_InitDateTimeCalendar();
210 void DisForm_InitDateTimeEdit(); 210 void DisForm_InitDateTimeEdit();
211 FX_BOOL DisForm_IsMonthCalendarShowed(); 211 FX_BOOL DisForm_IsMonthCalendarShowed();
212 void DisForm_ShowMonthCalendar(FX_BOOL bActivate); 212 void DisForm_ShowMonthCalendar(FX_BOOL bActivate);
213 FWL_WidgetHit DisForm_HitTest(FX_FLOAT fx, FX_FLOAT fy); 213 FWL_WidgetHit DisForm_HitTest(FX_FLOAT fx, FX_FLOAT fy);
214 FX_BOOL DisForm_IsNeedShowButton(); 214 FX_BOOL DisForm_IsNeedShowButton();
215 FWL_Error DisForm_Update(); 215 FWL_Error DisForm_Update();
216 FWL_Error DisForm_GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); 216 FWL_Error DisForm_GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE);
217 FWL_Error DisForm_GetBBox(CFX_RectF& rect); 217 FWL_Error DisForm_GetBBox(CFX_RectF& rect);
218 FWL_Error DisForm_DrawWidget(CFX_Graphics* pGraphics, 218 FWL_Error DisForm_DrawWidget(CFX_Graphics* pGraphics,
219 const CFX_Matrix* pMatrix = NULL); 219 const CFX_Matrix* pMatrix = nullptr);
220 }; 220 };
221 221
222 class CFWL_DateTimePickerImpDelegate : public CFWL_WidgetImpDelegate { 222 class CFWL_DateTimePickerImpDelegate : public CFWL_WidgetImpDelegate {
223 public: 223 public:
224 CFWL_DateTimePickerImpDelegate(CFWL_DateTimePickerImp* pOwner); 224 CFWL_DateTimePickerImpDelegate(CFWL_DateTimePickerImp* pOwner);
225 225
226 // CFWL_WidgetImpDelegate 226 // CFWL_WidgetImpDelegate
227 void OnProcessMessage(CFWL_Message* pMessage) override; 227 void OnProcessMessage(CFWL_Message* pMessage) override;
228 void OnDrawWidget(CFX_Graphics* pGraphics, 228 void OnDrawWidget(CFX_Graphics* pGraphics,
229 const CFX_Matrix* pMatrix = NULL) override; 229 const CFX_Matrix* pMatrix = nullptr) override;
230 230
231 protected: 231 protected:
232 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 232 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
233 void OnLButtonDown(CFWL_MsgMouse* pMsg); 233 void OnLButtonDown(CFWL_MsgMouse* pMsg);
234 void OnLButtonUp(CFWL_MsgMouse* pMsg); 234 void OnLButtonUp(CFWL_MsgMouse* pMsg);
235 void OnMouseMove(CFWL_MsgMouse* pMsg); 235 void OnMouseMove(CFWL_MsgMouse* pMsg);
236 void OnMouseLeave(CFWL_MsgMouse* pMsg); 236 void OnMouseLeave(CFWL_MsgMouse* pMsg);
237 237
238 CFWL_DateTimePickerImp* m_pOwner; 238 CFWL_DateTimePickerImp* m_pOwner;
239 239
240 private: 240 private:
241 void DisForm_OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 241 void DisForm_OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
242 }; 242 };
243 243
244 #endif // XFA_FWL_BASEWIDGET_FWL_DATETIMEPICKERIMP_H_ 244 #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