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 #include "xfa/fwl/core/ifwl_datetimepicker.h" | 7 #include "xfa/fwl/core/ifwl_datetimepicker.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 ShowMonthCalendar(false); | 668 ShowMonthCalendar(false); |
669 if (m_pEdit->GetStates() & FWL_WGTSTATE_Focused) { | 669 if (m_pEdit->GetStates() & FWL_WGTSTATE_Focused) { |
670 pMsg->m_pSrcTarget = m_pEdit.get(); | 670 pMsg->m_pSrcTarget = m_pEdit.get(); |
671 m_pEdit->GetDelegate()->OnProcessMessage(pMsg); | 671 m_pEdit->GetDelegate()->OnProcessMessage(pMsg); |
672 } | 672 } |
673 } | 673 } |
674 rtInvalidate.Inflate(2, 2); | 674 rtInvalidate.Inflate(2, 2); |
675 Repaint(&rtInvalidate); | 675 Repaint(&rtInvalidate); |
676 } | 676 } |
677 | 677 |
678 void IFWL_DateTimePicker::GetCaption(IFWL_Widget* pWidget, | |
679 CFX_WideString& wsCaption) {} | |
680 | |
681 int32_t IFWL_DateTimePicker::GetCurDay(IFWL_Widget* pWidget) { | 678 int32_t IFWL_DateTimePicker::GetCurDay(IFWL_Widget* pWidget) { |
682 return m_iCurDay; | 679 return m_iCurDay; |
683 } | 680 } |
684 | 681 |
685 int32_t IFWL_DateTimePicker::GetCurMonth(IFWL_Widget* pWidget) { | 682 int32_t IFWL_DateTimePicker::GetCurMonth(IFWL_Widget* pWidget) { |
686 return m_iCurMonth; | 683 return m_iCurMonth; |
687 } | 684 } |
688 | 685 |
689 int32_t IFWL_DateTimePicker::GetCurYear(IFWL_Widget* pWidget) { | 686 int32_t IFWL_DateTimePicker::GetCurYear(IFWL_Widget* pWidget) { |
690 return m_iCurYear; | 687 return m_iCurYear; |
691 } | 688 } |
OLD | NEW |