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

Side by Side Diff: xfa/fwl/core/ifwl_monthcalendar.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_monthcalendar.h ('k') | xfa/fwl/core/ifwl_picturebox.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_monthcalendar.h" 7 #include "xfa/fwl/core/ifwl_monthcalendar.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 return static_cast<CFX_WideString*>( 110 return static_cast<CFX_WideString*>(
111 pTheme->GetCapacity(&params, CFWL_WidgetCapacity::November)); 111 pTheme->GetCapacity(&params, CFWL_WidgetCapacity::November));
112 } 112 }
113 113
114 return static_cast<CFX_WideString*>( 114 return static_cast<CFX_WideString*>(
115 pTheme->GetCapacity(&params, CFWL_WidgetCapacity::December)); 115 pTheme->GetCapacity(&params, CFWL_WidgetCapacity::December));
116 } 116 }
117 117
118 } // namespace 118 } // namespace
119 119
120 // static
121 IFWL_MonthCalendar* IFWL_MonthCalendar::Create(
122 const CFWL_WidgetImpProperties& properties,
123 IFWL_Widget* pOuter) {
124 return new IFWL_MonthCalendar(properties, pOuter);
125 }
126
127 IFWL_MonthCalendar::IFWL_MonthCalendar( 120 IFWL_MonthCalendar::IFWL_MonthCalendar(
128 const CFWL_WidgetImpProperties& properties, 121 const CFWL_WidgetImpProperties& properties,
129 IFWL_Widget* pOuter) 122 IFWL_Widget* pOuter)
130 : IFWL_Widget(properties, pOuter), 123 : IFWL_Widget(properties, pOuter),
131 m_bInit(FALSE), 124 m_bInit(FALSE),
132 m_pDateTime(new CFX_DateTime), 125 m_pDateTime(new CFX_DateTime),
133 m_iCurYear(2011), 126 m_iCurYear(2011),
134 m_iCurMonth(1), 127 m_iCurMonth(1),
135 m_iYear(2011), 128 m_iYear(2011),
136 m_iMonth(1), 129 m_iMonth(1),
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 uint32_t dwSt, 1216 uint32_t dwSt,
1224 CFX_RectF rc, 1217 CFX_RectF rc,
1225 CFX_WideString& wsday) 1218 CFX_WideString& wsday)
1226 : iDay(day), 1219 : iDay(day),
1227 iDayOfWeek(dayofweek), 1220 iDayOfWeek(dayofweek),
1228 dwStates(dwSt), 1221 dwStates(dwSt),
1229 rect(rc), 1222 rect(rc),
1230 wsDay(wsday) {} 1223 wsDay(wsday) {}
1231 1224
1232 FWL_DATEINFO::~FWL_DATEINFO() {} 1225 FWL_DATEINFO::~FWL_DATEINFO() {}
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_monthcalendar.h ('k') | xfa/fwl/core/ifwl_picturebox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698