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

Side by Side Diff: xfa/fwl/basewidget/fwl_datetimepickerimp.cpp

Issue 2070583003: Make code compile with clang_use_chrome_plugin (part VI) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: better macros Created 4 years, 6 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/basewidget/fwl_datetimepickerimp.h ('k') | xfa/fwl/basewidget/fwl_editimp.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 #include "xfa/fwl/basewidget/fwl_datetimepickerimp.h" 7 #include "xfa/fwl/basewidget/fwl_datetimepickerimp.h"
8 8
9 #include "xfa/fwl/basewidget/fwl_editimp.h" 9 #include "xfa/fwl/basewidget/fwl_editimp.h"
10 #include "xfa/fwl/basewidget/fwl_formproxyimp.h" 10 #include "xfa/fwl/basewidget/fwl_formproxyimp.h"
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 } 1174 }
1175 if (m_pOwner->m_pEdit->GetStates() & FWL_WGTSTATE_Focused) { 1175 if (m_pOwner->m_pEdit->GetStates() & FWL_WGTSTATE_Focused) {
1176 pMsg->m_pSrcTarget = m_pOwner->m_pEdit.get(); 1176 pMsg->m_pSrcTarget = m_pOwner->m_pEdit.get();
1177 IFWL_WidgetDelegate* pDelegate = m_pOwner->m_pEdit->SetDelegate(NULL); 1177 IFWL_WidgetDelegate* pDelegate = m_pOwner->m_pEdit->SetDelegate(NULL);
1178 pDelegate->OnProcessMessage(pMsg); 1178 pDelegate->OnProcessMessage(pMsg);
1179 } 1179 }
1180 } 1180 }
1181 rtInvalidate.Inflate(2, 2); 1181 rtInvalidate.Inflate(2, 2);
1182 m_pOwner->Repaint(&rtInvalidate); 1182 m_pOwner->Repaint(&rtInvalidate);
1183 } 1183 }
1184
1185 CFWL_DateTimePickerImp::CFWL_MonthCalendarImpDP::CFWL_MonthCalendarImpDP() {
1186 m_iCurYear = 2010;
1187 m_iCurMonth = 3;
1188 m_iCurDay = 29;
1189 }
1190
1191 FWL_Error CFWL_DateTimePickerImp::CFWL_MonthCalendarImpDP::GetCaption(
1192 IFWL_Widget* pWidget,
1193 CFX_WideString& wsCaption) {
1194 return FWL_Error::Succeeded;
1195 }
1196
1197 int32_t CFWL_DateTimePickerImp::CFWL_MonthCalendarImpDP::GetCurDay(
1198 IFWL_Widget* pWidget) {
1199 return m_iCurDay;
1200 }
1201
1202 int32_t CFWL_DateTimePickerImp::CFWL_MonthCalendarImpDP::GetCurMonth(
1203 IFWL_Widget* pWidget) {
1204 return m_iCurMonth;
1205 }
1206
1207 int32_t CFWL_DateTimePickerImp::CFWL_MonthCalendarImpDP::GetCurYear(
1208 IFWL_Widget* pWidget) {
1209 return m_iCurYear;
1210 }
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fwl_datetimepickerimp.h ('k') | xfa/fwl/basewidget/fwl_editimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698