diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-23 09:02:34 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-23 09:02:34 -0800 |
commit | 209821f79d0bbeeaeadf4e82ff643ee20d676222 (patch) | |
tree | 8384d4422830f598fbe727448e1f39bdd73a895d /xfa/fwl/core/ifwl_datetimepicker.h | |
parent | 1e32d811c1c9f0a729e8072cf3530208cf52e763 (diff) | |
download | pdfium-209821f79d0bbeeaeadf4e82ff643ee20d676222.tar.xz |
Remove plumbing for today value
The calendar always sets today to 2011/01/01. This Cl removes the various
DataProviders needed to plumb this value and just sets it where needed.
Review-Url: https://codereview.chromium.org/2524993002
Diffstat (limited to 'xfa/fwl/core/ifwl_datetimepicker.h')
-rw-r--r-- | xfa/fwl/core/ifwl_datetimepicker.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/xfa/fwl/core/ifwl_datetimepicker.h b/xfa/fwl/core/ifwl_datetimepicker.h index 2b4be4804d..3b0dc39b1d 100644 --- a/xfa/fwl/core/ifwl_datetimepicker.h +++ b/xfa/fwl/core/ifwl_datetimepicker.h @@ -36,16 +36,8 @@ class IFWL_DateTimeEdit; class IFWL_FormProxy; class IFWL_DateTimePicker : public IFWL_Widget, - public IFWL_MonthCalendar::DataProvider { + public IFWL_Widget::DataProvider { public: - class DataProvider : public IFWL_Widget::DataProvider { - public: - virtual void GetToday(IFWL_Widget* pWidget, - int32_t& iYear, - int32_t& iMonth, - int32_t& iDay) = 0; - }; - explicit IFWL_DateTimePicker( const CFWL_App* app, std::unique_ptr<CFWL_WidgetProperties> properties); @@ -63,11 +55,6 @@ class IFWL_DateTimePicker : public IFWL_Widget, void OnDrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; - // IFWL_MonthCalendar::DataProvider - int32_t GetCurDay(IFWL_Widget* pWidget) override; - int32_t GetCurMonth(IFWL_Widget* pWidget) override; - int32_t GetCurYear(IFWL_Widget* pWidget) override; - void GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay); void SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay); @@ -124,9 +111,6 @@ class IFWL_DateTimePicker : public IFWL_Widget, int32_t m_iYear; int32_t m_iMonth; int32_t m_iDay; - int32_t m_iCurYear; - int32_t m_iCurMonth; - int32_t m_iCurDay; bool m_bLBtnDown; std::unique_ptr<IFWL_DateTimeEdit> m_pEdit; std::unique_ptr<IFWL_MonthCalendar> m_pMonthCal; |