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

Side by Side Diff: xfa/fwl/core/ifwl_datetimeedit.cpp

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_datetimeedit.h ('k') | xfa/fwl/core/ifwl_datetimepicker.h » ('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 #include "xfa/fwl/core/ifwl_datetimeedit.h" 7 #include "xfa/fwl/core/ifwl_datetimeedit.h"
8 8
9 #include "xfa/fwl/core/cfwl_widgetmgr.h" 9 #include "xfa/fwl/core/cfwl_widgetmgr.h"
10 #include "xfa/fwl/core/ifwl_datetimepicker.h" 10 #include "xfa/fwl/core/ifwl_datetimepicker.h"
11 11
12 // static
13 IFWL_DateTimeEdit* IFWL_DateTimeEdit::Create(
14 const CFWL_WidgetImpProperties& properties,
15 IFWL_Widget* pOuter) {
16 return new IFWL_DateTimeEdit(properties, pOuter);
17 }
18
19 IFWL_DateTimeEdit::IFWL_DateTimeEdit(const CFWL_WidgetImpProperties& properties, 12 IFWL_DateTimeEdit::IFWL_DateTimeEdit(const CFWL_WidgetImpProperties& properties,
20 IFWL_Widget* pOuter) 13 IFWL_Widget* pOuter)
21 : IFWL_Edit(properties, pOuter) {} 14 : IFWL_Edit(properties, pOuter) {}
22 15
23 FWL_Error IFWL_DateTimeEdit::Initialize() { 16 FWL_Error IFWL_DateTimeEdit::Initialize() {
24 m_pDelegate = new CFWL_DateTimeEditImpDelegate(this); 17 m_pDelegate = new CFWL_DateTimeEditImpDelegate(this);
25 if (IFWL_Edit::Initialize() != FWL_Error::Succeeded) 18 if (IFWL_Edit::Initialize() != FWL_Error::Succeeded)
26 return FWL_Error::Indefinite; 19 return FWL_Error::Indefinite;
27 return FWL_Error::Succeeded; 20 return FWL_Error::Succeeded;
28 } 21 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 pDateTime->GetWidgetRect(rtInvalidate); 63 pDateTime->GetWidgetRect(rtInvalidate);
71 pDateTime->ShowMonthCalendar(FALSE); 64 pDateTime->ShowMonthCalendar(FALSE);
72 rtInvalidate.Offset(-rtInvalidate.left, -rtInvalidate.top); 65 rtInvalidate.Offset(-rtInvalidate.left, -rtInvalidate.top);
73 pDateTime->Repaint(&rtInvalidate); 66 pDateTime->Repaint(&rtInvalidate);
74 } 67 }
75 } 68 }
76 } 69 }
77 } 70 }
78 CFWL_EditImpDelegate::OnProcessMessage(pMessage); 71 CFWL_EditImpDelegate::OnProcessMessage(pMessage);
79 } 72 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_datetimeedit.h ('k') | xfa/fwl/core/ifwl_datetimepicker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698