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

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

Issue 2524993002: Remove plumbing for today value (Closed)
Patch Set: Review fixes Created 4 years 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_datetimepicker.cpp ('k') | xfa/fwl/core/ifwl_monthcalendar.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_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 <memory> 10 #include <memory>
(...skipping 10 matching lines...) Expand all
21 #define FWL_ITEMSTATE_MCD_Nomal (0L << 0) 21 #define FWL_ITEMSTATE_MCD_Nomal (0L << 0)
22 #define FWL_ITEMSTATE_MCD_Flag (1L << 0) 22 #define FWL_ITEMSTATE_MCD_Flag (1L << 0)
23 #define FWL_ITEMSTATE_MCD_Selected (1L << 1) 23 #define FWL_ITEMSTATE_MCD_Selected (1L << 1)
24 #define FWL_ITEMSTATE_MCD_Focused (1L << 2) 24 #define FWL_ITEMSTATE_MCD_Focused (1L << 2)
25 25
26 class CFWL_MsgMouse; 26 class CFWL_MsgMouse;
27 class IFWL_Widget; 27 class IFWL_Widget;
28 28
29 class IFWL_MonthCalendar : public IFWL_Widget { 29 class IFWL_MonthCalendar : public IFWL_Widget {
30 public: 30 public:
31 class DataProvider : public IFWL_Widget::DataProvider {
32 public:
33 virtual int32_t GetCurDay(IFWL_Widget* pWidget) = 0;
34 virtual int32_t GetCurMonth(IFWL_Widget* pWidget) = 0;
35 virtual int32_t GetCurYear(IFWL_Widget* pWidget) = 0;
36 };
37
38 IFWL_MonthCalendar(const CFWL_App* app, 31 IFWL_MonthCalendar(const CFWL_App* app,
39 std::unique_ptr<CFWL_WidgetProperties> properties, 32 std::unique_ptr<CFWL_WidgetProperties> properties,
40 IFWL_Widget* pOuter); 33 IFWL_Widget* pOuter);
41 ~IFWL_MonthCalendar() override; 34 ~IFWL_MonthCalendar() override;
42 35
43 // FWL_WidgetImp 36 // FWL_WidgetImp
44 FWL_Type GetClassID() const override; 37 FWL_Type GetClassID() const override;
45 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; 38 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override;
46 void Update() override; 39 void Update() override;
47 void DrawWidget(CFX_Graphics* pGraphics, 40 void DrawWidget(CFX_Graphics* pGraphics,
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 FX_FLOAT m_fDateCellHei; 219 FX_FLOAT m_fDateCellHei;
227 FX_FLOAT m_fTodayWid; 220 FX_FLOAT m_fTodayWid;
228 FX_FLOAT m_fTodayHei; 221 FX_FLOAT m_fTodayHei;
229 FX_FLOAT m_fTodayFlagWid; 222 FX_FLOAT m_fTodayFlagWid;
230 FX_FLOAT m_fMCWid; 223 FX_FLOAT m_fMCWid;
231 FX_FLOAT m_fMCHei; 224 FX_FLOAT m_fMCHei;
232 bool m_bFlag; 225 bool m_bFlag;
233 }; 226 };
234 227
235 #endif // XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ 228 #endif // XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_datetimepicker.cpp ('k') | xfa/fwl/core/ifwl_monthcalendar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698