summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfformfill.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-10-05 15:47:02 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-05 15:47:02 -0700
commit735606d84b6898a51c61b17a2d286a13d964589a (patch)
tree1feb64d2aae6d79c1f7d65f5dd05d7e934b428cc /fpdfsdk/fpdfformfill.cpp
parent2116105b7d0545eb353264d4b42420cf51af5195 (diff)
downloadpdfium-735606d84b6898a51c61b17a2d286a13d964589a.tar.xz
Rename CPDFSDK_Environment to CPDFSDK_FormfillEnvironment
Rename CPDFSDK_Environment to make it explicit that this is part of the formfill system. Review-Url: https://codereview.chromium.org/2391313002
Diffstat (limited to 'fpdfsdk/fpdfformfill.cpp')
-rw-r--r--fpdfsdk/fpdfformfill.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/fpdfsdk/fpdfformfill.cpp b/fpdfsdk/fpdfformfill.cpp
index 904a3c867e..8be9d5f0b7 100644
--- a/fpdfsdk/fpdfformfill.cpp
+++ b/fpdfsdk/fpdfformfill.cpp
@@ -18,7 +18,7 @@
#include "core/fpdfdoc/cpdf_occontext.h"
#include "core/fxge/cfx_fxgedevice.h"
#include "fpdfsdk/cpdfsdk_document.h"
-#include "fpdfsdk/cpdfsdk_environment.h"
+#include "fpdfsdk/cpdfsdk_formfillenvironment.h"
#include "fpdfsdk/cpdfsdk_interform.h"
#include "fpdfsdk/cpdfsdk_pageview.h"
#include "fpdfsdk/fsdk_actionhandler.h"
@@ -38,8 +38,9 @@
namespace {
-CPDFSDK_Environment* HandleToCPDFSDKEnvironment(FPDF_FORMHANDLE handle) {
- return static_cast<CPDFSDK_Environment*>(handle);
+CPDFSDK_FormFillEnvironment* HandleToCPDFSDKEnvironment(
+ FPDF_FORMHANDLE handle) {
+ return static_cast<CPDFSDK_FormFillEnvironment*>(handle);
}
CPDFSDK_InterForm* FormHandleToInterForm(FPDF_FORMHANDLE hHandle) {
@@ -91,7 +92,7 @@ void FFLCommon(FPDF_FORMHANDLE hHandle,
CPDF_Document* pPDFDoc = pDocument->GetPDFDoc();
if (!pPDFDoc)
return;
- CPDFSDK_Environment* pEnv = HandleToCPDFSDKEnvironment(hHandle);
+ CPDFSDK_FormFillEnvironment* pEnv = HandleToCPDFSDKEnvironment(hHandle);
CPDFSDK_Document* pFXDoc = pEnv->GetSDKDocument();
if (!pFXDoc)
return;
@@ -251,7 +252,8 @@ FPDFDOC_InitFormFillEnvironment(FPDF_DOCUMENT document,
return pDocument->GetSDKDoc()->GetEnv();
#endif
- CPDFSDK_Environment* pEnv = new CPDFSDK_Environment(pDocument, formInfo);
+ CPDFSDK_FormFillEnvironment* pEnv =
+ new CPDFSDK_FormFillEnvironment(pDocument, formInfo);
#ifdef PDF_ENABLE_XFA
pDocument->SetSDKDoc(pEnv->GetSDKDocument());
@@ -266,7 +268,7 @@ FPDFDOC_ExitFormFillEnvironment(FPDF_FORMHANDLE hHandle) {
if (!hHandle)
return;
- CPDFSDK_Environment* pEnv = HandleToCPDFSDKEnvironment(hHandle);
+ CPDFSDK_FormFillEnvironment* pEnv = HandleToCPDFSDKEnvironment(hHandle);
#ifdef PDF_ENABLE_XFA
CPDFXFA_App::GetInstance()->RemoveFormFillEnv(pEnv);
@@ -725,7 +727,7 @@ DLLEXPORT void STDCALL FORM_DoPageAAction(FPDF_PAGE page,
if (!pSDKDoc->GetPageView(pPage, false))
return;
- CPDFSDK_Environment* pEnv = pSDKDoc->GetEnv();
+ CPDFSDK_FormFillEnvironment* pEnv = pSDKDoc->GetEnv();
CPDFSDK_ActionHandler* pActionHandler = pEnv->GetActionHander();
CPDF_Dictionary* pPageDict = pPDFPage->m_pFormDict;
CPDF_AAction aa(pPageDict->GetDictFor("AA"));