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

Side by Side Diff: fpdfsdk/src/formfiller/FFL_IFormFiller.cpp

Issue 1108903002: Merge to XFA: Reduce usage of operator LPCWSTR from CFX_WideString(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 7 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 | « fpdfsdk/src/formfiller/FFL_ComboBox.cpp ('k') | fpdfsdk/src/formfiller/FFL_ListBox.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 "../../include/formfiller/FFL_FormFiller.h" 7 #include "../../include/formfiller/FFL_FormFiller.h"
8 #include "../../include/formfiller/FFL_IFormFiller.h" 8 #include "../../include/formfiller/FFL_IFormFiller.h"
9 #include "../../include/formfiller/FFL_CheckBox.h" 9 #include "../../include/formfiller/FFL_CheckBox.h"
10 #include "../../include/formfiller/FFL_ComboBox.h" 10 #include "../../include/formfiller/FFL_ComboBox.h"
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 969
970 FX_BOOL bFormated = FALSE; 970 FX_BOOL bFormated = FALSE;
971 CFX_WideString sValue = pInterForm->OnFormat(pWidget->GetFormFie ld(), GetCommitKey(), bFormated); 971 CFX_WideString sValue = pInterForm->OnFormat(pWidget->GetFormFie ld(), GetCommitKey(), bFormated);
972 972
973 // bExit = !IsValidAnnot(m_pApp, pDocument, pDocView, pPageView, pW idget); 973 // bExit = !IsValidAnnot(m_pApp, pDocument, pDocView, pPageView, pW idget);
974 974
975 if (bExit) return; 975 if (bExit) return;
976 976
977 if (bFormated) 977 if (bFormated)
978 { 978 {
979 » » » pInterForm->ResetFieldAppearance(pWidget->GetFormField() , sValue, TRUE); 979 » » » pInterForm->ResetFieldAppearance(pWidget->GetFormField() , sValue.c_str(), TRUE);
980 pInterForm->UpdateField(pWidget->GetFormField()); 980 pInterForm->UpdateField(pWidget->GetFormField());
981 } 981 }
982 982
983 m_bNotifying = FALSE; 983 m_bNotifying = FALSE;
984 } 984 }
985 } 985 }
986 986
987 // LRESULT CALLBACK CFFL_IFormFiller::FFL_WndProc( 987 // LRESULT CALLBACK CFFL_IFormFiller::FFL_WndProc(
988 // int co de, // hook code 988 // int co de, // hook code
989 // WPARAM wParam, // virtual-key code 989 // WPARAM wParam, // virtual-key code
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 ASSERT(pPrivateData != NULL); 1388 ASSERT(pPrivateData != NULL);
1389 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; 1389 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData;
1390 ASSERT(pData->pWidget != NULL); 1390 ASSERT(pData->pWidget != NULL);
1391 1391
1392 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE); 1392 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE);
1393 ASSERT(pFormFiller != NULL); 1393 ASSERT(pFormFiller != NULL);
1394 1394
1395 if (!bEditOrList) 1395 if (!bEditOrList)
1396 pFormFiller->OnKeyStroke(bExit); 1396 pFormFiller->OnKeyStroke(bExit);
1397 } 1397 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_ComboBox.cpp ('k') | fpdfsdk/src/formfiller/FFL_ListBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698