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

Side by Side Diff: xfa/fxfa/app/xfa_ffdocview.cpp

Issue 1892813004: Avoid narrowing of strings in FWL SetEditText methods. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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/fxfa/app/xfa_ffchoicelist.cpp ('k') | xfa/fxfa/app/xfa_fftextedit.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/fxfa/include/xfa_ffdocview.h" 7 #include "xfa/fxfa/include/xfa_ffdocview.h"
8 8
9 #include "core/fxcrt/include/fx_ext.h" 9 #include "core/fxcrt/include/fx_ext.h"
10 #include "xfa/fxfa/app/xfa_ffbarcode.h" 10 #include "xfa/fxfa/app/xfa_ffbarcode.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 if (bChanged) { 249 if (bChanged) {
250 m_pDoc->GetDocProvider()->SetChangeMark(m_pDoc); 250 m_pDoc->GetDocProvider()->SetChangeMark(m_pDoc);
251 } 251 }
252 } 252 }
253 int32_t CXFA_FFDocView::ProcessWidgetEvent(CXFA_EventParam* pParam, 253 int32_t CXFA_FFDocView::ProcessWidgetEvent(CXFA_EventParam* pParam,
254 CXFA_WidgetAcc* pWidgetAcc) { 254 CXFA_WidgetAcc* pWidgetAcc) {
255 if (pParam == NULL) { 255 if (pParam == NULL) {
256 return XFA_EVENTERROR_Error; 256 return XFA_EVENTERROR_Error;
257 } 257 }
258 if (pParam->m_eType == XFA_EVENT_Validate) { 258 if (pParam->m_eType == XFA_EVENT_Validate) {
259 CFX_WideString wsValidateStr = FX_WSTRC(L"preSubmit"); 259 CFX_WideString wsValidateStr(L"preSubmit");
260 CXFA_Node* pConfigItem = 260 CXFA_Node* pConfigItem =
261 ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Config)); 261 ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Config));
262 if (pConfigItem) { 262 if (pConfigItem) {
263 CXFA_Node* pValidateNode = NULL; 263 CXFA_Node* pValidateNode = NULL;
264 CXFA_Node* pAcrobatNode = pConfigItem->GetChild(0, XFA_ELEMENT_Acrobat); 264 CXFA_Node* pAcrobatNode = pConfigItem->GetChild(0, XFA_ELEMENT_Acrobat);
265 pValidateNode = 265 pValidateNode =
266 pAcrobatNode ? pAcrobatNode->GetChild(0, XFA_ELEMENT_Validate) : NULL; 266 pAcrobatNode ? pAcrobatNode->GetChild(0, XFA_ELEMENT_Validate) : NULL;
267 if (!pValidateNode) { 267 if (!pValidateNode) {
268 CXFA_Node* pPresentNode = pConfigItem->GetChild(0, XFA_ELEMENT_Present); 268 CXFA_Node* pPresentNode = pConfigItem->GetChild(0, XFA_ELEMENT_Present);
269 pValidateNode = pPresentNode 269 pValidateNode = pPresentNode
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 CXFA_WidgetAcc* CXFA_WidgetAccIterator::GetCurrentWidgetAcc() { 906 CXFA_WidgetAcc* CXFA_WidgetAccIterator::GetCurrentWidgetAcc() {
907 return NULL; 907 return NULL;
908 } 908 }
909 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) { 909 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) {
910 return FALSE; 910 return FALSE;
911 } 911 }
912 void CXFA_WidgetAccIterator::SkipTree() { 912 void CXFA_WidgetAccIterator::SkipTree() {
913 m_ContentIterator.SkipChildrenAndMoveToNext(); 913 m_ContentIterator.SkipChildrenAndMoveToNext();
914 m_pCurWidgetAcc = NULL; 914 m_pCurWidgetAcc = NULL;
915 } 915 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffchoicelist.cpp ('k') | xfa/fxfa/app/xfa_fftextedit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698