summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/cfwl_datetimepicker.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-11-11 16:36:19 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-11 16:36:19 -0800
commitc40697b24550182898b30de639790eaf82ebf158 (patch)
tree16a475f270e8961dd3c7ebf83c1da767c9d1adbd /xfa/fwl/core/cfwl_datetimepicker.h
parentdc40c40f40ed2415605da32f688091a57f53c9e6 (diff)
downloadpdfium-c40697b24550182898b30de639790eaf82ebf158.tar.xz
Continue IFWL widget cleanup.
Remove usunsed methods and FWL_Error returns. Review-Url: https://codereview.chromium.org/2488963005
Diffstat (limited to 'xfa/fwl/core/cfwl_datetimepicker.h')
-rw-r--r--xfa/fwl/core/cfwl_datetimepicker.h46
1 files changed, 16 insertions, 30 deletions
diff --git a/xfa/fwl/core/cfwl_datetimepicker.h b/xfa/fwl/core/cfwl_datetimepicker.h
index 9227c7b889..5003cb2ea5 100644
--- a/xfa/fwl/core/cfwl_datetimepicker.h
+++ b/xfa/fwl/core/cfwl_datetimepicker.h
@@ -17,39 +17,25 @@ class CFWL_DateTimePicker : public CFWL_Widget, public IFWL_DateTimePickerDP {
void Initialize();
- FWL_Error SetToday(int32_t iYear, int32_t iMonth, int32_t iDay);
- FWL_Error GetEditText(CFX_WideString& wsText);
- FWL_Error SetEditText(const CFX_WideString& wsText);
- int32_t CountSelRanges();
- int32_t GetSelRange(int32_t nIndex, int32_t& nStart);
- FWL_Error GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay);
- FWL_Error SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay);
- bool CanUndo();
- bool CanRedo();
- bool Undo();
- bool Redo();
- bool CanCopy();
- bool CanCut();
- bool CanSelectAll();
- bool Copy(CFX_WideString& wsCopy);
- bool Cut(CFX_WideString& wsCut);
- bool Paste(const CFX_WideString& wsPaste);
- bool SelectAll();
- bool Delete();
- bool DeSelect();
- FWL_Error GetBBox(CFX_RectF& rect);
- FWL_Error SetEditLimit(int32_t nLimit);
- void ModifyEditStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved);
-
// IFWL_DataProvider
- FWL_Error GetCaption(IFWL_Widget* pWidget,
- CFX_WideString& wsCaption) override;
+ void GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) override;
// IFWL_DateTimePickerDP
- FWL_Error GetToday(IFWL_Widget* pWidget,
- int32_t& iYear,
- int32_t& iMonth,
- int32_t& iDay) override;
+ void GetToday(IFWL_Widget* pWidget,
+ int32_t& iYear,
+ int32_t& iMonth,
+ int32_t& iDay) override;
+
+ void GetEditText(CFX_WideString& wsText);
+ void SetEditText(const CFX_WideString& wsText);
+
+ int32_t CountSelRanges();
+ int32_t GetSelRange(int32_t nIndex, int32_t& nStart);
+
+ void SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay);
+ void GetBBox(CFX_RectF& rect);
+ void SetEditLimit(int32_t nLimit);
+ void ModifyEditStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved);
private:
int32_t m_iYear;