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

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

Issue 2435603003: Cleanup unused methods and return values in FWL code. (Closed)
Patch Set: Fix typo Created 4 years, 2 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/core/ifwl_datetimeedit.cpp ('k') | xfa/fwl/core/ifwl_datetimepicker.cpp » ('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_CORE_IFWL_DATETIMEPICKER_H_ 7 #ifndef XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_
8 #define XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ 8 #define XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_
9 9
10 #include "xfa/fwl/core/cfwl_event.h" 10 #include "xfa/fwl/core/cfwl_event.h"
11 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" 11 #include "xfa/fwl/core/cfwl_widgetimpproperties.h"
12 #include "xfa/fwl/core/ifwl_dataprovider.h" 12 #include "xfa/fwl/core/ifwl_dataprovider.h"
13 #include "xfa/fwl/core/ifwl_monthcalendar.h" 13 #include "xfa/fwl/core/ifwl_monthcalendar.h"
14 #include "xfa/fwl/core/ifwl_widget.h" 14 #include "xfa/fwl/core/ifwl_widget.h"
15 15
16 #define FWL_CLASS_DateTimePicker L"FWL_DATETIMEPICKER"
17 #define FWL_STYLEEXT_DTP_AllowEdit (1L << 0) 16 #define FWL_STYLEEXT_DTP_AllowEdit (1L << 0)
18 #define FWL_STYLEEXT_DTP_LongDateFormat (0L << 1) 17 #define FWL_STYLEEXT_DTP_LongDateFormat (0L << 1)
19 #define FWL_STYLEEXT_DTP_ShortDateFormat (1L << 1) 18 #define FWL_STYLEEXT_DTP_ShortDateFormat (1L << 1)
20 #define FWL_STYLEEXT_DTP_TimeFormat (2L << 1) 19 #define FWL_STYLEEXT_DTP_TimeFormat (2L << 1)
21 #define FWL_STYLEEXT_DTP_Spin (1L << 3) 20 #define FWL_STYLEEXT_DTP_Spin (1L << 3)
22 #define FWL_STYLEEXT_DTP_EditHNear (0L << 4) 21 #define FWL_STYLEEXT_DTP_EditHNear (0L << 4)
23 #define FWL_STYLEEXT_DTP_EditHCenter (1L << 4) 22 #define FWL_STYLEEXT_DTP_EditHCenter (1L << 4)
24 #define FWL_STYLEEXT_DTP_EditHFar (2L << 4) 23 #define FWL_STYLEEXT_DTP_EditHFar (2L << 4)
25 #define FWL_STYLEEXT_DTP_EditVNear (0L << 6) 24 #define FWL_STYLEEXT_DTP_EditVNear (0L << 6)
26 #define FWL_STYLEEXT_DTP_EditVCenter (1L << 6) 25 #define FWL_STYLEEXT_DTP_EditVCenter (1L << 6)
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 int32_t& iMonth, 59 int32_t& iMonth,
61 int32_t& iDay) = 0; 60 int32_t& iDay) = 0;
62 }; 61 };
63 62
64 class IFWL_DateTimePicker : public IFWL_Widget { 63 class IFWL_DateTimePicker : public IFWL_Widget {
65 public: 64 public:
66 explicit IFWL_DateTimePicker(const CFWL_WidgetImpProperties& properties); 65 explicit IFWL_DateTimePicker(const CFWL_WidgetImpProperties& properties);
67 ~IFWL_DateTimePicker() override; 66 ~IFWL_DateTimePicker() override;
68 67
69 // IFWL_Widget 68 // IFWL_Widget
70 FWL_Error GetClassName(CFX_WideString& wsClass) const override;
71 FWL_Type GetClassID() const override; 69 FWL_Type GetClassID() const override;
72 FWL_Error Initialize() override; 70 FWL_Error Initialize() override;
73 FWL_Error Finalize() override; 71 void Finalize() override;
74 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; 72 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override;
75 FWL_Error Update() override; 73 FWL_Error Update() override;
76 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; 74 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override;
77 FWL_Error DrawWidget(CFX_Graphics* pGraphics, 75 FWL_Error DrawWidget(CFX_Graphics* pGraphics,
78 const CFX_Matrix* pMatrix = nullptr) override; 76 const CFX_Matrix* pMatrix = nullptr) override;
79 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pTP) override; 77 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pTP) override;
80 78
81 FWL_Error GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay); 79 FWL_Error GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay);
82 FWL_Error SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay); 80 FWL_Error SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay);
83 FWL_Error SetEditText(const CFX_WideString& wsText); 81 FWL_Error SetEditText(const CFX_WideString& wsText);
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 void OnMouseMove(CFWL_MsgMouse* pMsg); 185 void OnMouseMove(CFWL_MsgMouse* pMsg);
188 void OnMouseLeave(CFWL_MsgMouse* pMsg); 186 void OnMouseLeave(CFWL_MsgMouse* pMsg);
189 187
190 IFWL_DateTimePicker* m_pOwner; 188 IFWL_DateTimePicker* m_pOwner;
191 189
192 private: 190 private:
193 void DisForm_OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 191 void DisForm_OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
194 }; 192 };
195 193
196 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ 194 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_datetimeedit.cpp ('k') | xfa/fwl/core/ifwl_datetimepicker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698