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.cpp | |
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.cpp')
-rw-r--r-- | xfa/fwl/core/ifwl_datetimepicker.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/xfa/fwl/core/ifwl_datetimepicker.cpp b/xfa/fwl/core/ifwl_datetimepicker.cpp index 9662ec0140..1a7cf2c06c 100644 --- a/xfa/fwl/core/ifwl_datetimepicker.cpp +++ b/xfa/fwl/core/ifwl_datetimepicker.cpp @@ -36,9 +36,6 @@ IFWL_DateTimePicker::IFWL_DateTimePicker( m_iYear(-1), m_iMonth(-1), m_iDay(-1), - m_iCurYear(2010), - m_iCurMonth(3), - m_iCurDay(29), m_bLBtnDown(false) { m_rtBtn.Set(0, 0, 0, 0); @@ -117,12 +114,6 @@ void IFWL_DateTimePicker::Update() { m_pEdit->Update(); if (!(m_pMonthCal->GetThemeProvider())) m_pMonthCal->SetThemeProvider(m_pProperties->m_pThemeProvider); - if (m_pProperties->m_pDataProvider) { - IFWL_DateTimePicker::DataProvider* pData = - static_cast<IFWL_DateTimePicker::DataProvider*>( - m_pProperties->m_pDataProvider); - pData->GetToday(this, m_iCurYear, m_iCurMonth, m_iCurDay); - } CFX_RectF rtMonthCal; m_pMonthCal->GetWidgetRect(rtMonthCal, true); @@ -467,12 +458,6 @@ void IFWL_DateTimePicker::DisForm_Update() { if (!m_pMonthCal->GetThemeProvider()) m_pMonthCal->SetThemeProvider(m_pProperties->m_pThemeProvider); - if (m_pProperties->m_pDataProvider) { - IFWL_DateTimePicker::DataProvider* pData = - static_cast<IFWL_DateTimePicker::DataProvider*>( - m_pProperties->m_pDataProvider); - pData->GetToday(this, m_iCurYear, m_iCurMonth, m_iCurDay); - } FX_FLOAT* pWidth = static_cast<FX_FLOAT*>( GetThemeCapacity(CFWL_WidgetCapacity::ScrollBarWidth)); @@ -674,15 +659,3 @@ void IFWL_DateTimePicker::DisForm_OnFocusChanged(CFWL_Message* pMsg, rtInvalidate.Inflate(2, 2); Repaint(&rtInvalidate); } - -int32_t IFWL_DateTimePicker::GetCurDay(IFWL_Widget* pWidget) { - return m_iCurDay; -} - -int32_t IFWL_DateTimePicker::GetCurMonth(IFWL_Widget* pWidget) { - return m_iCurMonth; -} - -int32_t IFWL_DateTimePicker::GetCurYear(IFWL_Widget* pWidget) { - return m_iCurYear; -} |