| 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_DATETIMEPICKER_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ |
| 8 #define XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ | 8 #define XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/cfwl_event.h" | 10 #include "xfa/fwl/core/cfwl_event.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 class IFWL_DateTimePickerDP : public IFWL_DataProvider { | 56 class IFWL_DateTimePickerDP : public IFWL_DataProvider { |
| 57 public: | 57 public: |
| 58 virtual FWL_Error GetToday(IFWL_Widget* pWidget, | 58 virtual FWL_Error GetToday(IFWL_Widget* pWidget, |
| 59 int32_t& iYear, | 59 int32_t& iYear, |
| 60 int32_t& iMonth, | 60 int32_t& iMonth, |
| 61 int32_t& iDay) = 0; | 61 int32_t& iDay) = 0; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 class IFWL_DateTimePicker : public IFWL_Widget { | 64 class IFWL_DateTimePicker : public IFWL_Widget { |
| 65 public: | 65 public: |
| 66 static IFWL_DateTimePicker* Create(const CFWL_WidgetImpProperties& properties, | 66 explicit IFWL_DateTimePicker(const CFWL_WidgetImpProperties& properties); |
| 67 IFWL_Widget* pOuter); | |
| 68 | |
| 69 IFWL_DateTimePicker(const CFWL_WidgetImpProperties& properties, | |
| 70 IFWL_Widget* pOuter); | |
| 71 ~IFWL_DateTimePicker() override; | 67 ~IFWL_DateTimePicker() override; |
| 72 | 68 |
| 73 // IFWL_Widget | 69 // IFWL_Widget |
| 74 FWL_Error GetClassName(CFX_WideString& wsClass) const override; | 70 FWL_Error GetClassName(CFX_WideString& wsClass) const override; |
| 75 FWL_Type GetClassID() const override; | 71 FWL_Type GetClassID() const override; |
| 76 FWL_Error Initialize() override; | 72 FWL_Error Initialize() override; |
| 77 FWL_Error Finalize() override; | 73 FWL_Error Finalize() override; |
| 78 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 74 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
| 79 FWL_Error Update() override; | 75 FWL_Error Update() override; |
| 80 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 76 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 void OnMouseMove(CFWL_MsgMouse* pMsg); | 187 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 192 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 188 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
| 193 | 189 |
| 194 IFWL_DateTimePicker* m_pOwner; | 190 IFWL_DateTimePicker* m_pOwner; |
| 195 | 191 |
| 196 private: | 192 private: |
| 197 void DisForm_OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); | 193 void DisForm_OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); |
| 198 }; | 194 }; |
| 199 | 195 |
| 200 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ | 196 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ |
| OLD | NEW |