diff options
author | dsinclair <dsinclair@chromium.org> | 2016-09-14 10:38:17 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-14 10:38:17 -0700 |
commit | 1f2489023f2b808c41071d992abceb646ade8e1b (patch) | |
tree | 34fedda2eeb4f5f98397d5ec81a3f9b46d5c8d51 /fpdfsdk/fpdfxfa/fpdfxfa_app.cpp | |
parent | 8b1ed16144925205a34e3796b57db72dd6ee6a89 (diff) | |
download | pdfium-1f2489023f2b808c41071d992abceb646ade8e1b.tar.xz |
Remove FFI_ from CPDFSDK_Environment method names
The prefix doesn't add anything when used in CPDFSDK_Environment, remove.
Review-Url: https://codereview.chromium.org/2338303002
Diffstat (limited to 'fpdfsdk/fpdfxfa/fpdfxfa_app.cpp')
-rw-r--r-- | fpdfsdk/fpdfxfa/fpdfxfa_app.cpp | 35 |
1 files changed, 8 insertions, 27 deletions
diff --git a/fpdfsdk/fpdfxfa/fpdfxfa_app.cpp b/fpdfsdk/fpdfxfa/fpdfxfa_app.cpp index 5cdd903877..6295494621 100644 --- a/fpdfsdk/fpdfxfa/fpdfxfa_app.cpp +++ b/fpdfsdk/fpdfxfa/fpdfxfa_app.cpp @@ -99,15 +99,14 @@ void CPDFXFA_App::SetAppType(const CFX_WideStringC& wsAppType) { void CPDFXFA_App::GetLanguage(CFX_WideString& wsLanguage) { CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0); - if (pEnv) { - wsLanguage = pEnv->FFI_GetLanguage(); - } + if (pEnv) + wsLanguage = pEnv->GetLanguage(); } void CPDFXFA_App::GetPlatform(CFX_WideString& wsPlatform) { CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0); if (pEnv) { - wsPlatform = pEnv->FFI_GetPlatform(); + wsPlatform = pEnv->GetPlatform(); } } @@ -204,26 +203,9 @@ CFX_WideString CPDFXFA_App::Response(const CFX_WideString& wsQuestion, return wsAnswer; } -int32_t CPDFXFA_App::GetCurDocumentInBatch() { - CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0); - if (pEnv) { - return pEnv->FFI_GetCurDocument(); - } - return 0; -} - -int32_t CPDFXFA_App::GetDocumentCountInBatch() { - CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0); - if (pEnv) { - return pEnv->FFI_GetDocumentCount(); - } - - return 0; -} - IFX_FileRead* CPDFXFA_App::DownloadURL(const CFX_WideString& wsURL) { CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0); - return pEnv ? pEnv->FFI_DownloadFromURL(wsURL.c_str()) : nullptr; + return pEnv ? pEnv->DownloadFromURL(wsURL.c_str()) : nullptr; } FX_BOOL CPDFXFA_App::PostRequestURL(const CFX_WideString& wsURL, @@ -236,9 +218,9 @@ FX_BOOL CPDFXFA_App::PostRequestURL(const CFX_WideString& wsURL, if (!pEnv) return FALSE; - wsResponse = pEnv->FFI_PostRequestURL(wsURL.c_str(), wsData.c_str(), - wsContentType.c_str(), wsEncode.c_str(), - wsHeader.c_str()); + wsResponse = + pEnv->PostRequestURL(wsURL.c_str(), wsData.c_str(), wsContentType.c_str(), + wsEncode.c_str(), wsHeader.c_str()); return TRUE; } @@ -247,8 +229,7 @@ FX_BOOL CPDFXFA_App::PutRequestURL(const CFX_WideString& wsURL, const CFX_WideString& wsEncode) { CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0); return pEnv && - pEnv->FFI_PutRequestURL(wsURL.c_str(), wsData.c_str(), - wsEncode.c_str()); + pEnv->PutRequestURL(wsURL.c_str(), wsData.c_str(), wsEncode.c_str()); } void CPDFXFA_App::LoadString(int32_t iStringID, CFX_WideString& wsString) { |