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

Unified Diff: fpdfsdk/fpdfxfa/cpdfxfa_app.cpp

Issue 2391313002: Rename CPDFSDK_Environment to CPDFSDK_FormfillEnvironment (Closed)
Patch Set: Rebase to master Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: fpdfsdk/fpdfxfa/cpdfxfa_app.cpp
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_app.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_app.cpp
index 14450a10ab320163c6de3493ae8b19e3c99b7bff..d1a3bd0112fdad2761c0084bb0f32361da3be05f 100644
--- a/fpdfsdk/fpdfxfa/cpdfxfa_app.cpp
+++ b/fpdfsdk/fpdfxfa/cpdfxfa_app.cpp
@@ -8,7 +8,7 @@
#include <memory>
-#include "fpdfsdk/cpdfsdk_environment.h"
+#include "fpdfsdk/cpdfsdk_formfillenvironment.h"
#include "fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h"
#include "fpdfsdk/fsdk_define.h"
#include "third_party/base/ptr_util.h"
@@ -64,7 +64,7 @@ FX_BOOL CPDFXFA_App::Initialize(v8::Isolate* pIsolate) {
return TRUE;
}
-FX_BOOL CPDFXFA_App::AddFormFillEnv(CPDFSDK_Environment* pEnv) {
+FX_BOOL CPDFXFA_App::AddFormFillEnv(CPDFSDK_FormFillEnvironment* pEnv) {
if (!pEnv)
return FALSE;
@@ -72,7 +72,7 @@ FX_BOOL CPDFXFA_App::AddFormFillEnv(CPDFSDK_Environment* pEnv) {
return TRUE;
}
-FX_BOOL CPDFXFA_App::RemoveFormFillEnv(CPDFSDK_Environment* pEnv) {
+FX_BOOL CPDFXFA_App::RemoveFormFillEnv(CPDFSDK_FormFillEnvironment* pEnv) {
if (!pEnv)
return FALSE;
@@ -90,7 +90,7 @@ void CPDFXFA_App::GetAppType(CFX_WideString& wsAppType) {
}
void CPDFXFA_App::GetAppName(CFX_WideString& wsName) {
- CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0);
+ CPDFSDK_FormFillEnvironment* pEnv = m_pEnvList.GetAt(0);
if (pEnv) {
wsName = pEnv->FFI_GetAppName();
}
@@ -101,13 +101,13 @@ void CPDFXFA_App::SetAppType(const CFX_WideStringC& wsAppType) {
}
void CPDFXFA_App::GetLanguage(CFX_WideString& wsLanguage) {
- CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0);
+ CPDFSDK_FormFillEnvironment* pEnv = m_pEnvList.GetAt(0);
if (pEnv)
wsLanguage = pEnv->GetLanguage();
}
void CPDFXFA_App::GetPlatform(CFX_WideString& wsPlatform) {
- CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0);
+ CPDFSDK_FormFillEnvironment* pEnv = m_pEnvList.GetAt(0);
if (pEnv) {
wsPlatform = pEnv->GetPlatform();
}
@@ -122,7 +122,7 @@ void CPDFXFA_App::GetVersion(CFX_WideString& wsVersion) {
}
void CPDFXFA_App::Beep(uint32_t dwType) {
- CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0);
+ CPDFSDK_FormFillEnvironment* pEnv = m_pEnvList.GetAt(0);
if (pEnv) {
pEnv->JS_appBeep(dwType);
}
@@ -132,7 +132,7 @@ int32_t CPDFXFA_App::MsgBox(const CFX_WideString& wsMessage,
const CFX_WideString& wsTitle,
uint32_t dwIconType,
uint32_t dwButtonType) {
- CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0);
+ CPDFSDK_FormFillEnvironment* pEnv = m_pEnvList.GetAt(0);
if (!pEnv)
return -1;
@@ -186,7 +186,7 @@ CFX_WideString CPDFXFA_App::Response(const CFX_WideString& wsQuestion,
const CFX_WideString& wsDefaultAnswer,
FX_BOOL bMark) {
CFX_WideString wsAnswer;
- CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0);
+ CPDFSDK_FormFillEnvironment* pEnv = m_pEnvList.GetAt(0);
if (pEnv) {
int nLength = 2048;
char* pBuff = new char[nLength];
@@ -207,7 +207,7 @@ CFX_WideString CPDFXFA_App::Response(const CFX_WideString& wsQuestion,
}
IFX_FileRead* CPDFXFA_App::DownloadURL(const CFX_WideString& wsURL) {
- CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0);
+ CPDFSDK_FormFillEnvironment* pEnv = m_pEnvList.GetAt(0);
return pEnv ? pEnv->DownloadFromURL(wsURL.c_str()) : nullptr;
}
@@ -217,7 +217,7 @@ FX_BOOL CPDFXFA_App::PostRequestURL(const CFX_WideString& wsURL,
const CFX_WideString& wsEncode,
const CFX_WideString& wsHeader,
CFX_WideString& wsResponse) {
- CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0);
+ CPDFSDK_FormFillEnvironment* pEnv = m_pEnvList.GetAt(0);
if (!pEnv)
return FALSE;
@@ -230,7 +230,7 @@ FX_BOOL CPDFXFA_App::PostRequestURL(const CFX_WideString& wsURL,
FX_BOOL CPDFXFA_App::PutRequestURL(const CFX_WideString& wsURL,
const CFX_WideString& wsData,
const CFX_WideString& wsEncode) {
- CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0);
+ CPDFSDK_FormFillEnvironment* pEnv = m_pEnvList.GetAt(0);
return pEnv &&
pEnv->PutRequestURL(wsURL.c_str(), wsData.c_str(), wsEncode.c_str());
}
@@ -334,7 +334,7 @@ void CPDFXFA_App::LoadString(int32_t iStringID, CFX_WideString& wsString) {
IFWL_AdapterTimerMgr* CPDFXFA_App::GetTimerMgr() {
CXFA_FWLAdapterTimerMgr* pAdapter = nullptr;
- CPDFSDK_Environment* pEnv = m_pEnvList.GetAt(0);
+ CPDFSDK_FormFillEnvironment* pEnv = m_pEnvList.GetAt(0);
if (pEnv)
pAdapter = new CXFA_FWLAdapterTimerMgr(pEnv);
return pAdapter;

Powered by Google App Engine
This is Rietveld 408576698