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

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

Issue 2533623002: Cleanup default FWL params part I (Closed)
Patch Set: Rebase to master 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/cfwl_listbox.cpp ('k') | xfa/fwl/core/cfwl_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_CFWL_MONTHCALENDAR_H_ 7 #ifndef XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_
8 #define XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ 8 #define XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 17 matching lines...) Expand all
28 28
29 class CFWL_MonthCalendar : public CFWL_Widget { 29 class CFWL_MonthCalendar : public CFWL_Widget {
30 public: 30 public:
31 CFWL_MonthCalendar(const CFWL_App* app, 31 CFWL_MonthCalendar(const CFWL_App* app,
32 std::unique_ptr<CFWL_WidgetProperties> properties, 32 std::unique_ptr<CFWL_WidgetProperties> properties,
33 CFWL_Widget* pOuter); 33 CFWL_Widget* pOuter);
34 ~CFWL_MonthCalendar() override; 34 ~CFWL_MonthCalendar() override;
35 35
36 // FWL_WidgetImp 36 // FWL_WidgetImp
37 FWL_Type GetClassID() const override; 37 FWL_Type GetClassID() const override;
38 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; 38 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize) override;
39 void Update() override; 39 void Update() override;
40 void DrawWidget(CFX_Graphics* pGraphics, 40 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override;
41 const CFX_Matrix* pMatrix = nullptr) override;
42 void OnProcessMessage(CFWL_Message* pMessage) override; 41 void OnProcessMessage(CFWL_Message* pMessage) override;
43 void OnDrawWidget(CFX_Graphics* pGraphics, 42 void OnDrawWidget(CFX_Graphics* pGraphics,
44 const CFX_Matrix* pMatrix) override; 43 const CFX_Matrix* pMatrix) override;
45 44
46 void SetSelect(int32_t iYear, int32_t iMonth, int32_t iDay); 45 void SetSelect(int32_t iYear, int32_t iMonth, int32_t iDay);
47 46
48 private: 47 private:
49 struct DATE { 48 struct DATE {
50 DATE() : iYear(0), iMonth(0), iDay(0) {} 49 DATE() : iYear(0), iMonth(0), iDay(0) {}
51 50
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 FX_FLOAT m_fDateCellHei; 218 FX_FLOAT m_fDateCellHei;
220 FX_FLOAT m_fTodayWid; 219 FX_FLOAT m_fTodayWid;
221 FX_FLOAT m_fTodayHei; 220 FX_FLOAT m_fTodayHei;
222 FX_FLOAT m_fTodayFlagWid; 221 FX_FLOAT m_fTodayFlagWid;
223 FX_FLOAT m_fMCWid; 222 FX_FLOAT m_fMCWid;
224 FX_FLOAT m_fMCHei; 223 FX_FLOAT m_fMCHei;
225 bool m_bFlag; 224 bool m_bFlag;
226 }; 225 };
227 226
228 #endif // XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ 227 #endif // XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_listbox.cpp ('k') | xfa/fwl/core/cfwl_monthcalendar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698