From 472bb7f919736ae58461f653597eb6854119cca9 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 6 Nov 2017 18:17:41 +0000 Subject: Call CJX methods directly instead of proxying This CL updates the XFA JS code to call the methods on the CJX objects directly instead of proxying through the CXFA objects. The script methods have been removed from the CXFA objects. Change-Id: I2d7b502473a8e88a7af88b10aa0da602d4998394 Reviewed-on: https://pdfium-review.googlesource.com/17851 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- xfa/fxfa/parser/cscript_eventpseudomodel.cpp | 104 --------------------------- 1 file changed, 104 deletions(-) (limited to 'xfa/fxfa/parser/cscript_eventpseudomodel.cpp') diff --git a/xfa/fxfa/parser/cscript_eventpseudomodel.cpp b/xfa/fxfa/parser/cscript_eventpseudomodel.cpp index 806a318d8c..c09ba76c47 100644 --- a/xfa/fxfa/parser/cscript_eventpseudomodel.cpp +++ b/xfa/fxfa/parser/cscript_eventpseudomodel.cpp @@ -18,107 +18,3 @@ CScript_EventPseudoModel::CScript_EventPseudoModel(CXFA_Document* pDocument) pdfium::MakeUnique(this)) {} CScript_EventPseudoModel::~CScript_EventPseudoModel() {} - -void CScript_EventPseudoModel::Change(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->Change(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::CommitKey(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->CommitKey(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::FullText(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->FullText(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::KeyDown(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->KeyDown(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::Modifier(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->Modifier(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::NewContentType(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->NewContentType(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::NewText(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->NewText(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::PrevContentType(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->PrevContentType(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::PrevText(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->PrevText(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::Reenter(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->Reenter(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::SelEnd(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->SelEnd(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::SelStart(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->SelStart(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::Shift(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->Shift(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::SoapFaultCode(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->SoapFaultString(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::SoapFaultString(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->SoapFaultString(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::Target(CFXJSE_Value* pValue, - bool bSetting, - XFA_ATTRIBUTE eAttribute) { - JSEventPseudoModel()->Target(pValue, bSetting, eAttribute); -} - -void CScript_EventPseudoModel::Emit(CFXJSE_Arguments* pArguments) { - JSEventPseudoModel()->Emit(pArguments); -} - -void CScript_EventPseudoModel::Reset(CFXJSE_Arguments* pArguments) { - JSEventPseudoModel()->Reset(pArguments); -} -- cgit v1.2.3