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 11 matching lines...) Expand all Loading... |
22 #include "xfa/fwl/core/ifwl_themeprovider.h" | 22 #include "xfa/fwl/core/ifwl_themeprovider.h" |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 const int kDateTimePickerWidth = 100; | 26 const int kDateTimePickerWidth = 100; |
27 const int kDateTimePickerHeight = 20; | 27 const int kDateTimePickerHeight = 20; |
28 | 28 |
29 } // namespace | 29 } // namespace |
30 | 30 |
31 IFWL_DateTimePicker::IFWL_DateTimePicker( | 31 IFWL_DateTimePicker::IFWL_DateTimePicker( |
32 const IFWL_App* app, | 32 const CFWL_App* app, |
33 std::unique_ptr<CFWL_WidgetProperties> properties) | 33 std::unique_ptr<CFWL_WidgetProperties> properties) |
34 : IFWL_Widget(app, std::move(properties), nullptr), | 34 : IFWL_Widget(app, std::move(properties), nullptr), |
35 m_iBtnState(1), | 35 m_iBtnState(1), |
36 m_iYear(-1), | 36 m_iYear(-1), |
37 m_iMonth(-1), | 37 m_iMonth(-1), |
38 m_iDay(-1), | 38 m_iDay(-1), |
39 m_iCurYear(2010), | 39 m_iCurYear(2010), |
40 m_iCurMonth(3), | 40 m_iCurMonth(3), |
41 m_iCurDay(29), | 41 m_iCurDay(29), |
42 m_bLBtnDown(false) { | 42 m_bLBtnDown(false) { |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 return m_iCurDay; | 679 return m_iCurDay; |
680 } | 680 } |
681 | 681 |
682 int32_t IFWL_DateTimePicker::GetCurMonth(IFWL_Widget* pWidget) { | 682 int32_t IFWL_DateTimePicker::GetCurMonth(IFWL_Widget* pWidget) { |
683 return m_iCurMonth; | 683 return m_iCurMonth; |
684 } | 684 } |
685 | 685 |
686 int32_t IFWL_DateTimePicker::GetCurYear(IFWL_Widget* pWidget) { | 686 int32_t IFWL_DateTimePicker::GetCurYear(IFWL_Widget* pWidget) { |
687 return m_iCurYear; | 687 return m_iCurYear; |
688 } | 688 } |
OLD | NEW |