| OLD | NEW |
| 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_CORE_IFWL_DATETIMECALENDAR_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_DATETIMECALENDAR_H_ |
| 8 #define XFA_FWL_CORE_IFWL_DATETIMECALENDAR_H_ | 8 #define XFA_FWL_CORE_IFWL_DATETIMECALENDAR_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/ifwl_monthcalendar.h" | 10 #include "xfa/fwl/core/ifwl_monthcalendar.h" |
| 11 | 11 |
| 12 class IFWL_DateTimeCalendar : public IFWL_MonthCalendar { | 12 class IFWL_DateTimeCalendar : public IFWL_MonthCalendar { |
| 13 public: | 13 public: |
| 14 IFWL_DateTimeCalendar(const CFWL_WidgetImpProperties& properties, | 14 IFWL_DateTimeCalendar(const IFWL_App* app, |
| 15 const CFWL_WidgetImpProperties& properties, |
| 15 IFWL_Widget* pOuter); | 16 IFWL_Widget* pOuter); |
| 16 | 17 |
| 17 // IFWL_MonthCalendar | 18 // IFWL_MonthCalendar |
| 18 FWL_Error Initialize() override; | 19 void Initialize() override; |
| 19 void Finalize() override; | 20 void Finalize() override; |
| 20 | 21 |
| 21 protected: | 22 protected: |
| 22 friend class CFWL_DateTimeCalendarImpDelegate; | 23 friend class CFWL_DateTimeCalendarImpDelegate; |
| 23 }; | 24 }; |
| 24 | 25 |
| 25 class CFWL_DateTimeCalendarImpDelegate : public CFWL_MonthCalendarImpDelegate { | 26 class CFWL_DateTimeCalendarImpDelegate : public CFWL_MonthCalendarImpDelegate { |
| 26 public: | 27 public: |
| 27 CFWL_DateTimeCalendarImpDelegate(IFWL_DateTimeCalendar* pOwner); | 28 CFWL_DateTimeCalendarImpDelegate(IFWL_DateTimeCalendar* pOwner); |
| 28 void OnProcessMessage(CFWL_Message* pMessage) override; | 29 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 29 | 30 |
| 30 void OnLButtonDownEx(CFWL_MsgMouse* pMsg); | 31 void OnLButtonDownEx(CFWL_MsgMouse* pMsg); |
| 31 void OnLButtonUpEx(CFWL_MsgMouse* pMsg); | 32 void OnLButtonUpEx(CFWL_MsgMouse* pMsg); |
| 32 void OnMouseMoveEx(CFWL_MsgMouse* pMsg); | 33 void OnMouseMoveEx(CFWL_MsgMouse* pMsg); |
| 33 | 34 |
| 34 protected: | 35 protected: |
| 35 IFWL_DateTimeCalendar* m_pOwner; | 36 IFWL_DateTimeCalendar* m_pOwner; |
| 36 FX_BOOL m_bFlag; | 37 FX_BOOL m_bFlag; |
| 37 | 38 |
| 38 private: | 39 private: |
| 39 void DisForm_OnProcessMessage(CFWL_Message* pMessage); | 40 void DisForm_OnProcessMessage(CFWL_Message* pMessage); |
| 40 void DisForm_OnLButtonUpEx(CFWL_MsgMouse* pMsg); | 41 void DisForm_OnLButtonUpEx(CFWL_MsgMouse* pMsg); |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 #endif // XFA_FWL_CORE_IFWL_DATETIMECALENDAR_H_ | 44 #endif // XFA_FWL_CORE_IFWL_DATETIMECALENDAR_H_ |
| OLD | NEW |