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

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

Issue 2464703006: Fold IFWL*::{Initialize|Finalize} into constructor/destructor (Closed)
Patch Set: Rebase to master 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_combolist.cpp ('k') | xfa/fwl/core/ifwl_datetimecalendar.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_DATETIMECALENDAR_H_ 7 #ifndef XFA_FWL_CORE_IFWL_DATETIMECALENDAR_H_
8 #define XFA_FWL_CORE_IFWL_DATETIMECALENDAR_H_ 8 #define XFA_FWL_CORE_IFWL_DATETIMECALENDAR_H_
9 9
10 #include "xfa/fwl/core/ifwl_monthcalendar.h" 10 #include "xfa/fwl/core/ifwl_monthcalendar.h"
11 11
12 class IFWL_DateTimeCalendar : public IFWL_MonthCalendar { 12 class IFWL_DateTimeCalendar : public IFWL_MonthCalendar {
13 public: 13 public:
14 IFWL_DateTimeCalendar(const IFWL_App* app, 14 IFWL_DateTimeCalendar(const IFWL_App* app,
15 const CFWL_WidgetImpProperties& properties, 15 const CFWL_WidgetImpProperties& properties,
16 IFWL_Widget* pOuter); 16 IFWL_Widget* pOuter);
17 17
18 // IFWL_MonthCalendar
19 void Initialize() override;
20 void Finalize() override;
21
22 protected: 18 protected:
23 friend class CFWL_DateTimeCalendarImpDelegate; 19 friend class CFWL_DateTimeCalendarImpDelegate;
24 }; 20 };
25 21
26 class CFWL_DateTimeCalendarImpDelegate : public CFWL_MonthCalendarImpDelegate { 22 class CFWL_DateTimeCalendarImpDelegate : public CFWL_MonthCalendarImpDelegate {
27 public: 23 public:
28 CFWL_DateTimeCalendarImpDelegate(IFWL_DateTimeCalendar* pOwner); 24 CFWL_DateTimeCalendarImpDelegate(IFWL_DateTimeCalendar* pOwner);
29 void OnProcessMessage(CFWL_Message* pMessage) override; 25 void OnProcessMessage(CFWL_Message* pMessage) override;
30 26
31 void OnLButtonDownEx(CFWL_MsgMouse* pMsg); 27 void OnLButtonDownEx(CFWL_MsgMouse* pMsg);
32 void OnLButtonUpEx(CFWL_MsgMouse* pMsg); 28 void OnLButtonUpEx(CFWL_MsgMouse* pMsg);
33 void OnMouseMoveEx(CFWL_MsgMouse* pMsg); 29 void OnMouseMoveEx(CFWL_MsgMouse* pMsg);
34 30
35 protected: 31 protected:
36 IFWL_DateTimeCalendar* m_pOwner; 32 IFWL_DateTimeCalendar* m_pOwner;
37 FX_BOOL m_bFlag; 33 FX_BOOL m_bFlag;
38 34
39 private: 35 private:
40 void DisForm_OnProcessMessage(CFWL_Message* pMessage); 36 void DisForm_OnProcessMessage(CFWL_Message* pMessage);
41 void DisForm_OnLButtonUpEx(CFWL_MsgMouse* pMsg); 37 void DisForm_OnLButtonUpEx(CFWL_MsgMouse* pMsg);
42 }; 38 };
43 39
44 #endif // XFA_FWL_CORE_IFWL_DATETIMECALENDAR_H_ 40 #endif // XFA_FWL_CORE_IFWL_DATETIMECALENDAR_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_combolist.cpp ('k') | xfa/fwl/core/ifwl_datetimecalendar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698