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

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

Issue 2436103002: Remove FWL globals. (Closed)
Patch Set: Review feedback 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
« no previous file with comments | « xfa/fwl/core/ifwl_listbox.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 "xfa/fgas/localization/fgas_datetime.h" 10 #include "xfa/fgas/localization/fgas_datetime.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 class IFWL_MonthCalendarDP : public IFWL_DataProvider { 46 class IFWL_MonthCalendarDP : public IFWL_DataProvider {
47 public: 47 public:
48 virtual int32_t GetCurDay(IFWL_Widget* pWidget) = 0; 48 virtual int32_t GetCurDay(IFWL_Widget* pWidget) = 0;
49 virtual int32_t GetCurMonth(IFWL_Widget* pWidget) = 0; 49 virtual int32_t GetCurMonth(IFWL_Widget* pWidget) = 0;
50 virtual int32_t GetCurYear(IFWL_Widget* pWidget) = 0; 50 virtual int32_t GetCurYear(IFWL_Widget* pWidget) = 0;
51 }; 51 };
52 52
53 class IFWL_MonthCalendar : public IFWL_Widget { 53 class IFWL_MonthCalendar : public IFWL_Widget {
54 public: 54 public:
55 IFWL_MonthCalendar(const CFWL_WidgetImpProperties& properties, 55 IFWL_MonthCalendar(const IFWL_App* app,
56 const CFWL_WidgetImpProperties& properties,
56 IFWL_Widget* pOuter); 57 IFWL_Widget* pOuter);
57 ~IFWL_MonthCalendar() override; 58 ~IFWL_MonthCalendar() override;
58 59
59 // FWL_WidgetImp 60 // FWL_WidgetImp
61 void Initialize() override;
62 void Finalize() override;
60 FWL_Type GetClassID() const override; 63 FWL_Type GetClassID() const override;
61 FWL_Error Initialize() override;
62 void Finalize() override;
63 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; 64 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override;
64 FWL_Error Update() override; 65 FWL_Error Update() override;
65 FWL_Error DrawWidget(CFX_Graphics* pGraphics, 66 FWL_Error DrawWidget(CFX_Graphics* pGraphics,
66 const CFX_Matrix* pMatrix = nullptr) override; 67 const CFX_Matrix* pMatrix = nullptr) override;
67 int32_t CountSelect(); 68 int32_t CountSelect();
68 FX_BOOL GetSelect(int32_t& iYear, 69 FX_BOOL GetSelect(int32_t& iYear,
69 int32_t& iMonth, 70 int32_t& iMonth,
70 int32_t& iDay, 71 int32_t& iDay,
71 int32_t nIndex = 0); 72 int32_t nIndex = 0);
72 FX_BOOL SetSelect(int32_t iYear, int32_t iMonth, int32_t iDay); 73 FX_BOOL SetSelect(int32_t iYear, int32_t iMonth, int32_t iDay);
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 void OnActivate(CFWL_Message* pMsg); 267 void OnActivate(CFWL_Message* pMsg);
267 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 268 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
268 void OnLButtonDown(CFWL_MsgMouse* pMsg); 269 void OnLButtonDown(CFWL_MsgMouse* pMsg);
269 void OnLButtonUp(CFWL_MsgMouse* pMsg); 270 void OnLButtonUp(CFWL_MsgMouse* pMsg);
270 void OnMouseMove(CFWL_MsgMouse* pMsg); 271 void OnMouseMove(CFWL_MsgMouse* pMsg);
271 void OnMouseLeave(CFWL_MsgMouse* pMsg); 272 void OnMouseLeave(CFWL_MsgMouse* pMsg);
272 IFWL_MonthCalendar* m_pOwner; 273 IFWL_MonthCalendar* m_pOwner;
273 }; 274 };
274 275
275 #endif // XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ 276 #endif // XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_listbox.cpp ('k') | xfa/fwl/core/ifwl_monthcalendar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698