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

Unified Diff: xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp

Issue 2050913002: Remove foxit app related setter and getter APIs in XFA code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase and fix indexes Created 4 years, 5 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: xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp
diff --git a/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp b/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp
index 8bc71699b46abef66424fa67dfc91502e87a757b..2ede85e2045178391d42c9ed7743a3852d922615 100644
--- a/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp
+++ b/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp
@@ -54,22 +54,6 @@ void CScript_HostPseudoModel::AppType(CFXJSE_Value* pValue,
pValue->SetString(FX_UTF8Encode(wsAppType).AsStringC());
}
-void CScript_HostPseudoModel::FoxitAppType(CFXJSE_Value* pValue,
- FX_BOOL bSetting,
- XFA_ATTRIBUTE eAttribute) {
- CXFA_FFNotify* pNotify = m_pDocument->GetNotify();
- if (!pNotify) {
- return;
- }
- if (bSetting) {
- ThrowException(XFA_IDS_INVAlID_PROP_SET);
- return;
- }
- CFX_WideString wsAppType;
- pNotify->GetAppProvider()->GetFoxitAppType(wsAppType);
- pValue->SetString(FX_UTF8Encode(wsAppType).AsStringC());
-}
-
void CScript_HostPseudoModel::CalculationsEnabled(CFXJSE_Value* pValue,
FX_BOOL bSetting,
XFA_ATTRIBUTE eAttribute) {
@@ -217,22 +201,6 @@ void CScript_HostPseudoModel::Version(CFXJSE_Value* pValue,
pValue->SetString(FX_UTF8Encode(wsVersion).AsStringC());
}
-void CScript_HostPseudoModel::FoxitVersion(CFXJSE_Value* pValue,
- FX_BOOL bSetting,
- XFA_ATTRIBUTE eAttribute) {
- CXFA_FFNotify* pNotify = m_pDocument->GetNotify();
- if (!pNotify) {
- return;
- }
- if (bSetting) {
- ThrowException(XFA_IDS_UNABLE_SET_VERSION);
- return;
- }
- CFX_WideString wsVersion;
- pNotify->GetAppProvider()->GetFoxitVersion(wsVersion);
- pValue->SetString(FX_UTF8Encode(wsVersion).AsStringC());
-}
-
void CScript_HostPseudoModel::Name(CFXJSE_Value* pValue,
FX_BOOL bSetting,
XFA_ATTRIBUTE eAttribute) {
@@ -249,21 +217,6 @@ void CScript_HostPseudoModel::Name(CFXJSE_Value* pValue,
pValue->SetString(FX_UTF8Encode(wsAppName).AsStringC());
}
-void CScript_HostPseudoModel::FoxitName(CFXJSE_Value* pValue,
- FX_BOOL bSetting,
- XFA_ATTRIBUTE eAttribute) {
- CXFA_FFNotify* pNotify = m_pDocument->GetNotify();
- if (!pNotify) {
- return;
- }
- if (bSetting) {
- ThrowException(XFA_IDS_INVAlID_PROP_SET);
- return;
- }
- CFX_WideString wsFoxitAppName;
- pNotify->GetAppProvider()->GetFoxitAppName(wsFoxitAppName);
- pValue->SetString(FX_UTF8Encode(wsFoxitAppName).AsStringC());
-}
void CScript_HostPseudoModel::GotoURL(CFXJSE_Arguments* pArguments) {
if (!m_pDocument->GetScriptContext()->IsRunAtClient()) {
return;

Powered by Google App Engine
This is Rietveld 408576698