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

Side by Side Diff: xfa/fwl/basewidget/ifwl_datetimepicker.h

Issue 1943413002: Convert FWL_ERR into an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@bcdattribute
Patch Set: Created 4 years, 7 months 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 unified diff | Download patch
« no previous file with comments | « xfa/fwl/basewidget/ifwl_combobox.h ('k') | xfa/fwl/basewidget/ifwl_edit.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_
8 #define XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ 8 #define XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_
9 9
10 #include "xfa/fwl/core/ifwl_widget.h" 10 #include "xfa/fwl/core/ifwl_widget.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 END_FWL_EVENT_DEF 46 END_FWL_EVENT_DEF
47 47
48 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged, CFWL_EventType::SelectChanged) 48 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged, CFWL_EventType::SelectChanged)
49 int32_t iYear; 49 int32_t iYear;
50 int32_t iMonth; 50 int32_t iMonth;
51 int32_t iDay; 51 int32_t iDay;
52 END_FWL_EVENT_DEF 52 END_FWL_EVENT_DEF
53 53
54 class IFWL_DateTimePickerDP : public IFWL_DataProvider { 54 class IFWL_DateTimePickerDP : public IFWL_DataProvider {
55 public: 55 public:
56 virtual FWL_ERR GetToday(IFWL_Widget* pWidget, 56 virtual FWL_Error GetToday(IFWL_Widget* pWidget,
57 int32_t& iYear, 57 int32_t& iYear,
58 int32_t& iMonth, 58 int32_t& iMonth,
59 int32_t& iDay) = 0; 59 int32_t& iDay) = 0;
60 }; 60 };
61 61
62 class IFWL_DateTimePicker : public IFWL_Widget { 62 class IFWL_DateTimePicker : public IFWL_Widget {
63 public: 63 public:
64 static IFWL_DateTimePicker* Create(const CFWL_WidgetImpProperties& properties, 64 static IFWL_DateTimePicker* Create(const CFWL_WidgetImpProperties& properties,
65 IFWL_Widget* pOuter); 65 IFWL_Widget* pOuter);
66 66
67 FWL_ERR GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay); 67 FWL_Error GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay);
68 FWL_ERR SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay); 68 FWL_Error SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay);
69 FWL_ERR SetEditText(const CFX_WideString& wsText); 69 FWL_Error SetEditText(const CFX_WideString& wsText);
70 FWL_ERR GetEditText(CFX_WideString& wsText, 70 FWL_Error GetEditText(CFX_WideString& wsText,
71 int32_t nStart = 0, 71 int32_t nStart = 0,
72 int32_t nCount = -1) const; 72 int32_t nCount = -1) const;
73 int32_t CountSelRanges(); 73 int32_t CountSelRanges();
74 int32_t GetSelRange(int32_t nIndex, int32_t& nStart); 74 int32_t GetSelRange(int32_t nIndex, int32_t& nStart);
75 FX_BOOL CanUndo(); 75 FX_BOOL CanUndo();
76 FX_BOOL CanRedo(); 76 FX_BOOL CanRedo();
77 FX_BOOL Undo(); 77 FX_BOOL Undo();
78 FX_BOOL Redo(); 78 FX_BOOL Redo();
79 FX_BOOL CanCopy(); 79 FX_BOOL CanCopy();
80 FX_BOOL CanCut(); 80 FX_BOOL CanCut();
81 FX_BOOL CanSelectAll(); 81 FX_BOOL CanSelectAll();
82 FX_BOOL Copy(CFX_WideString& wsCopy); 82 FX_BOOL Copy(CFX_WideString& wsCopy);
83 FX_BOOL Cut(CFX_WideString& wsCut); 83 FX_BOOL Cut(CFX_WideString& wsCut);
84 FX_BOOL Paste(const CFX_WideString& wsPaste); 84 FX_BOOL Paste(const CFX_WideString& wsPaste);
85 FX_BOOL SelectAll(); 85 FX_BOOL SelectAll();
86 FX_BOOL Delete(); 86 FX_BOOL Delete();
87 FX_BOOL DeSelect(); 87 FX_BOOL DeSelect();
88 FWL_ERR GetBBox(CFX_RectF& rect); 88 FWL_Error GetBBox(CFX_RectF& rect);
89 FWL_ERR SetEditLimit(int32_t nLimit); 89 FWL_Error SetEditLimit(int32_t nLimit);
90 FWL_ERR ModifyEditStylesEx(uint32_t dwStylesExAdded, 90 FWL_Error ModifyEditStylesEx(uint32_t dwStylesExAdded,
91 uint32_t dwStylesExRemoved); 91 uint32_t dwStylesExRemoved);
92 92
93 protected: 93 protected:
94 IFWL_DateTimePicker(); 94 IFWL_DateTimePicker();
95 }; 95 };
96 96
97 #endif // XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ 97 #endif // XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/ifwl_combobox.h ('k') | xfa/fwl/basewidget/ifwl_edit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698