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

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

Issue 2433133002: Remove IFWL_*::Create methods, use new (Closed)
Patch Set: Rebase to master 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_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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 class IFWL_MonthCalendarDP : public IFWL_DataProvider { 47 class IFWL_MonthCalendarDP : public IFWL_DataProvider {
48 public: 48 public:
49 virtual int32_t GetCurDay(IFWL_Widget* pWidget) = 0; 49 virtual int32_t GetCurDay(IFWL_Widget* pWidget) = 0;
50 virtual int32_t GetCurMonth(IFWL_Widget* pWidget) = 0; 50 virtual int32_t GetCurMonth(IFWL_Widget* pWidget) = 0;
51 virtual int32_t GetCurYear(IFWL_Widget* pWidget) = 0; 51 virtual int32_t GetCurYear(IFWL_Widget* pWidget) = 0;
52 }; 52 };
53 53
54 class IFWL_MonthCalendar : public IFWL_Widget { 54 class IFWL_MonthCalendar : public IFWL_Widget {
55 public: 55 public:
56 static IFWL_MonthCalendar* Create(const CFWL_WidgetImpProperties& properties,
57 IFWL_Widget* pOuter);
58
59 IFWL_MonthCalendar(const CFWL_WidgetImpProperties& properties, 56 IFWL_MonthCalendar(const CFWL_WidgetImpProperties& properties,
60 IFWL_Widget* pOuter); 57 IFWL_Widget* pOuter);
61 ~IFWL_MonthCalendar() override; 58 ~IFWL_MonthCalendar() override;
62 59
63 // FWL_WidgetImp 60 // FWL_WidgetImp
64 FWL_Error GetClassName(CFX_WideString& wsClass) const override; 61 FWL_Error GetClassName(CFX_WideString& wsClass) const override;
65 FWL_Type GetClassID() const override; 62 FWL_Type GetClassID() const override;
66 FWL_Error Initialize() override; 63 FWL_Error Initialize() override;
67 FWL_Error Finalize() override; 64 FWL_Error Finalize() override;
68 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; 65 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 void OnActivate(CFWL_Message* pMsg); 268 void OnActivate(CFWL_Message* pMsg);
272 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 269 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
273 void OnLButtonDown(CFWL_MsgMouse* pMsg); 270 void OnLButtonDown(CFWL_MsgMouse* pMsg);
274 void OnLButtonUp(CFWL_MsgMouse* pMsg); 271 void OnLButtonUp(CFWL_MsgMouse* pMsg);
275 void OnMouseMove(CFWL_MsgMouse* pMsg); 272 void OnMouseMove(CFWL_MsgMouse* pMsg);
276 void OnMouseLeave(CFWL_MsgMouse* pMsg); 273 void OnMouseLeave(CFWL_MsgMouse* pMsg);
277 IFWL_MonthCalendar* m_pOwner; 274 IFWL_MonthCalendar* m_pOwner;
278 }; 275 };
279 276
280 #endif // XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ 277 #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