Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Unified Diff: xfa/fwl/core/ifwl_datetimepicker.h

Issue 2524993002: Remove plumbing for today value (Closed)
Patch Set: Review fixes Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fwl/core/cfwl_datetimepicker.cpp ('k') | xfa/fwl/core/ifwl_datetimepicker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/core/ifwl_datetimepicker.h
diff --git a/xfa/fwl/core/ifwl_datetimepicker.h b/xfa/fwl/core/ifwl_datetimepicker.h
index 2b4be4804db9ff4a2ff7d59b88f4bf2ef021e161..3b0dc39b1daec117b2a4f9ac72efb891df032ec8 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;
« no previous file with comments | « xfa/fwl/core/cfwl_datetimepicker.cpp ('k') | xfa/fwl/core/ifwl_datetimepicker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698