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

Side by Side Diff: fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp

Issue 1857713003: Rename GetCStr and GetPtr to match CFX_ByteString (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master 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 | « fpdfsdk/fpdfxfa/fpdfxfa_app.cpp ('k') | fpdfsdk/javascript/cjs_runtime.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 "core/fpdfapi/fpdf_parser/include/cpdf_array.h" 7 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
8 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 8 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
9 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" 9 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h"
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h"
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 if (hDoc != m_pXFADoc) 731 if (hDoc != m_pXFADoc)
732 return; 732 return;
733 733
734 if (m_iDocType != DOCTYPE_DYNAMIC_XFA) 734 if (m_iDocType != DOCTYPE_DYNAMIC_XFA)
735 return; 735 return;
736 736
737 CPDFDoc_Environment* pEnv = m_pSDKDoc->GetEnv(); 737 CPDFDoc_Environment* pEnv = m_pSDKDoc->GetEnv();
738 if (pEnv == NULL) 738 if (pEnv == NULL)
739 return; 739 return;
740 740
741 CFX_WideStringC str(bsURL.GetPtr()); 741 CFX_WideStringC str(bsURL.raw_str());
742 742
743 pEnv->FFI_GotoURL(this, str, bAppend); 743 pEnv->FFI_GotoURL(this, str, bAppend);
744 } 744 }
745 745
746 FX_BOOL CPDFXFA_Document::IsValidationsEnabled(CXFA_FFDoc* hDoc) { 746 FX_BOOL CPDFXFA_Document::IsValidationsEnabled(CXFA_FFDoc* hDoc) {
747 if (hDoc != m_pXFADoc || !m_pSDKDoc) 747 if (hDoc != m_pXFADoc || !m_pSDKDoc)
748 return FALSE; 748 return FALSE;
749 if (m_pSDKDoc->GetInterForm()) 749 if (m_pSDKDoc->GetInterForm())
750 return m_pSDKDoc->GetInterForm()->IsXfaValidationsEnabled(); 750 return m_pSDKDoc->GetInterForm()->IsXfaValidationsEnabled();
751 751
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 } 1272 }
1273 1273
1274 return _GetHValueByName(szPropName, hValue, 1274 return _GetHValueByName(szPropName, hValue,
1275 m_pSDKDoc->GetEnv()->GetJSRuntime()); 1275 m_pSDKDoc->GetEnv()->GetJSRuntime());
1276 } 1276 }
1277 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, 1277 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name,
1278 FXJSE_HVALUE hValue, 1278 FXJSE_HVALUE hValue,
1279 IJS_Runtime* runTime) { 1279 IJS_Runtime* runTime) {
1280 return runTime->GetHValueByName(utf8Name, hValue); 1280 return runTime->GetHValueByName(utf8Name, hValue);
1281 } 1281 }
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/fpdfxfa_app.cpp ('k') | fpdfsdk/javascript/cjs_runtime.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698