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

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

Issue 2469893004: Unify CFWL_WidgetProperties and CFWL_WidgetImpProperties. (Closed)
Patch Set: review cleanup 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_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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 } 113 }
114 114
115 return static_cast<CFX_WideString*>( 115 return static_cast<CFX_WideString*>(
116 pTheme->GetCapacity(&params, CFWL_WidgetCapacity::December)); 116 pTheme->GetCapacity(&params, CFWL_WidgetCapacity::December));
117 } 117 }
118 118
119 } // namespace 119 } // namespace
120 120
121 IFWL_MonthCalendar::IFWL_MonthCalendar( 121 IFWL_MonthCalendar::IFWL_MonthCalendar(
122 const IFWL_App* app, 122 const IFWL_App* app,
123 const CFWL_WidgetImpProperties& properties, 123 std::unique_ptr<CFWL_WidgetProperties> properties,
124 IFWL_Widget* pOuter) 124 IFWL_Widget* pOuter)
125 : IFWL_Widget(app, properties, pOuter), 125 : IFWL_Widget(app, std::move(properties), pOuter),
126 m_bInit(false), 126 m_bInit(false),
127 m_pDateTime(new CFX_DateTime), 127 m_pDateTime(new CFX_DateTime),
128 m_iCurYear(2011), 128 m_iCurYear(2011),
129 m_iCurMonth(1), 129 m_iCurMonth(1),
130 m_iYear(2011), 130 m_iYear(2011),
131 m_iMonth(1), 131 m_iMonth(1),
132 m_iDay(1), 132 m_iDay(1),
133 m_iHovered(-1), 133 m_iHovered(-1),
134 m_iLBtnPartStates(CFWL_PartState_Normal), 134 m_iLBtnPartStates(CFWL_PartState_Normal),
135 m_iRBtnPartStates(CFWL_PartState_Normal), 135 m_iRBtnPartStates(CFWL_PartState_Normal),
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
1178 uint32_t dwSt, 1178 uint32_t dwSt,
1179 CFX_RectF rc, 1179 CFX_RectF rc,
1180 CFX_WideString& wsday) 1180 CFX_WideString& wsday)
1181 : iDay(day), 1181 : iDay(day),
1182 iDayOfWeek(dayofweek), 1182 iDayOfWeek(dayofweek),
1183 dwStates(dwSt), 1183 dwStates(dwSt),
1184 rect(rc), 1184 rect(rc),
1185 wsDay(wsday) {} 1185 wsDay(wsday) {}
1186 1186
1187 FWL_DATEINFO::~FWL_DATEINFO() {} 1187 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