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

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

Issue 2505703003: Cleaning up nits in fwl/core files. (Closed)
Patch Set: 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 unified diff | Download patch
« xfa/fwl/core/ifwl_form.cpp ('K') | « xfa/fwl/core/ifwl_form.cpp ('k') | no next file » | 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_MONTHCALENDAR_H_ 7 #ifndef XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_
8 #define XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ 8 #define XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_
9 9
10 #include "xfa/fgas/localization/fgas_datetime.h" 10 #include "xfa/fgas/localization/fgas_datetime.h"
11 #include "xfa/fwl/core/cfwl_event.h" 11 #include "xfa/fwl/core/cfwl_event.h"
12 #include "xfa/fwl/core/cfwl_widgetproperties.h" 12 #include "xfa/fwl/core/cfwl_widgetproperties.h"
13 #include "xfa/fwl/core/ifwl_dataprovider.h" 13 #include "xfa/fwl/core/ifwl_dataprovider.h"
14 #include "xfa/fwl/core/ifwl_widget.h" 14 #include "xfa/fwl/core/ifwl_widget.h"
15 15
16 #define FWL_STYLEEXT_MCD_MultiSelect (1L << 0) 16 #define FWL_STYLEEXT_MCD_MultiSelect (1L << 0)
17 #define FWL_STYLEEXT_MCD_NoToday (1L << 1) 17 #define FWL_STYLEEXT_MCD_NoToday (1L << 1)
18 #define FWL_STYLEEXT_MCD_NoTodayCircle (1L << 2) 18 #define FWL_STYLEEXT_MCD_NoTodayCircle (1L << 2)
19 #define FWL_STYLEEXT_MCD_WeekNumbers (1L << 3) 19 #define FWL_STYLEEXT_MCD_WeekNumbers (1L << 3)
20 #define FWL_ITEMSTATE_MCD_Nomal (0L << 0) 20 #define FWL_ITEMSTATE_MCD_Nomal (0L << 0)
21 #define FWL_ITEMSTATE_MCD_Flag (1L << 0) 21 #define FWL_ITEMSTATE_MCD_Flag (1L << 0)
22 #define FWL_ITEMSTATE_MCD_Selected (1L << 1) 22 #define FWL_ITEMSTATE_MCD_Selected (1L << 1)
23 #define FWL_ITEMSTATE_MCD_Focused (1L << 2) 23 #define FWL_ITEMSTATE_MCD_Focused (1L << 2)
24 24
25 FWL_EVENT_DEF(CFWL_Event_McdDateSelected,
26 CFWL_EventType::DataSelected,
27 int32_t m_iStartDay;
28 int32_t m_iEndDay;)
29
30 FWL_EVENT_DEF(CFWL_EventMcdDateChanged,
31 CFWL_EventType::DateChanged,
32 int32_t m_iOldYear;
33 int32_t m_iOldMonth;
34 int32_t m_iStartDay;
35 int32_t m_iEndDay;)
36
37 class CFWL_MsgMouse; 25 class CFWL_MsgMouse;
38 class IFWL_Widget; 26 class IFWL_Widget;
39 27
40 class IFWL_MonthCalendarDP : public IFWL_DataProvider { 28 class IFWL_MonthCalendarDP : public IFWL_DataProvider {
41 public: 29 public:
42 virtual int32_t GetCurDay(IFWL_Widget* pWidget) = 0; 30 virtual int32_t GetCurDay(IFWL_Widget* pWidget) = 0;
43 virtual int32_t GetCurMonth(IFWL_Widget* pWidget) = 0; 31 virtual int32_t GetCurMonth(IFWL_Widget* pWidget) = 0;
44 virtual int32_t GetCurYear(IFWL_Widget* pWidget) = 0; 32 virtual int32_t GetCurYear(IFWL_Widget* pWidget) = 0;
45 }; 33 };
46 34
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 FX_FLOAT m_fDateCellHei; 225 FX_FLOAT m_fDateCellHei;
238 FX_FLOAT m_fTodayWid; 226 FX_FLOAT m_fTodayWid;
239 FX_FLOAT m_fTodayHei; 227 FX_FLOAT m_fTodayHei;
240 FX_FLOAT m_fTodayFlagWid; 228 FX_FLOAT m_fTodayFlagWid;
241 FX_FLOAT m_fMCWid; 229 FX_FLOAT m_fMCWid;
242 FX_FLOAT m_fMCHei; 230 FX_FLOAT m_fMCHei;
243 bool m_bFlag; 231 bool m_bFlag;
244 }; 232 };
245 233
246 #endif // XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ 234 #endif // XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_
OLDNEW
« xfa/fwl/core/ifwl_form.cpp ('K') | « xfa/fwl/core/ifwl_form.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698