From e0518bf0a0e703b1e010081079c988f011834cb6 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 8 Feb 2018 21:44:59 +0000 Subject: Move cjs_v8.cpp to cfx_v8.cpp The layering should be CJS => CFXJS => CFX_V8 with the CJS name being higher up. Change-Id: Ic130f248906e9c4df641dd508389b0555786b999 Reviewed-on: https://pdfium-review.googlesource.com/26051 Commit-Queue: Tom Sepez Reviewed-by: dsinclair --- fxjs/xfa/cjx_container.cpp | 4 ++-- fxjs/xfa/cjx_datawindow.cpp | 8 +++---- fxjs/xfa/cjx_delta.cpp | 2 +- fxjs/xfa/cjx_desc.cpp | 2 +- fxjs/xfa/cjx_eventpseudomodel.cpp | 4 ++-- fxjs/xfa/cjx_exclgroup.cpp | 10 ++++---- fxjs/xfa/cjx_field.cpp | 24 +++++++++---------- fxjs/xfa/cjx_form.cpp | 12 +++++----- fxjs/xfa/cjx_hostpseudomodel.cpp | 30 ++++++++++++------------ fxjs/xfa/cjx_instancemanager.cpp | 10 ++++---- fxjs/xfa/cjx_layoutpseudomodel.cpp | 44 +++++++++++++++++------------------ fxjs/xfa/cjx_layoutpseudomodel.h | 6 ++--- fxjs/xfa/cjx_list.cpp | 8 +++---- fxjs/xfa/cjx_logpseudomodel.cpp | 10 ++++---- fxjs/xfa/cjx_manifest.cpp | 2 +- fxjs/xfa/cjx_model.cpp | 6 ++--- fxjs/xfa/cjx_node.cpp | 22 +++++++++--------- fxjs/xfa/cjx_object.h | 4 ++-- fxjs/xfa/cjx_packet.cpp | 6 ++--- fxjs/xfa/cjx_signaturepseudomodel.cpp | 8 +++---- fxjs/xfa/cjx_source.cpp | 34 +++++++++++++-------------- fxjs/xfa/cjx_subform.cpp | 8 +++---- fxjs/xfa/cjx_template.cpp | 12 +++++----- fxjs/xfa/cjx_tree.cpp | 4 ++-- fxjs/xfa/cjx_treelist.cpp | 2 +- fxjs/xfa/cjx_wsdlconnection.cpp | 2 +- 26 files changed, 142 insertions(+), 142 deletions(-) (limited to 'fxjs/xfa') diff --git a/fxjs/xfa/cjx_container.cpp b/fxjs/xfa/cjx_container.cpp index b7577da204..e5dbfe8258 100644 --- a/fxjs/xfa/cjx_container.cpp +++ b/fxjs/xfa/cjx_container.cpp @@ -25,13 +25,13 @@ CJX_Container::CJX_Container(CXFA_Node* node) : CJX_Node(node) { CJX_Container::~CJX_Container() {} CJS_Return CJX_Container::getDelta( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(true); } CJS_Return CJX_Container::getDeltas( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { CXFA_ArrayNodeList* pFormNodes = new CXFA_ArrayNodeList(GetDocument()); return CJS_Return(static_cast(runtime)->NewXFAObject( diff --git a/fxjs/xfa/cjx_datawindow.cpp b/fxjs/xfa/cjx_datawindow.cpp index 5209cb47e6..cdb6aab207 100644 --- a/fxjs/xfa/cjx_datawindow.cpp +++ b/fxjs/xfa/cjx_datawindow.cpp @@ -25,25 +25,25 @@ CJX_DataWindow::CJX_DataWindow(CScript_DataWindow* window) CJX_DataWindow::~CJX_DataWindow() {} CJS_Return CJX_DataWindow::moveCurrentRecord( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(true); } CJS_Return CJX_DataWindow::record( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(true); } CJS_Return CJX_DataWindow::gotoRecord( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(true); } CJS_Return CJX_DataWindow::isRecordGroup( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(true); } diff --git a/fxjs/xfa/cjx_delta.cpp b/fxjs/xfa/cjx_delta.cpp index 6d8cbd52f3..1da5953ea1 100644 --- a/fxjs/xfa/cjx_delta.cpp +++ b/fxjs/xfa/cjx_delta.cpp @@ -20,7 +20,7 @@ CJX_Delta::CJX_Delta(CXFA_Delta* delta) : CJX_Object(delta) { CJX_Delta::~CJX_Delta() {} -CJS_Return CJX_Delta::restore(CJS_V8* runtime, +CJS_Return CJX_Delta::restore(CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_desc.cpp b/fxjs/xfa/cjx_desc.cpp index a49ae63323..ae125c2d36 100644 --- a/fxjs/xfa/cjx_desc.cpp +++ b/fxjs/xfa/cjx_desc.cpp @@ -20,7 +20,7 @@ CJX_Desc::CJX_Desc(CXFA_Desc* desc) : CJX_Node(desc) { CJX_Desc::~CJX_Desc() {} -CJS_Return CJX_Desc::metadata(CJS_V8* runtime, +CJS_Return CJX_Desc::metadata(CFX_V8* runtime, const std::vector>& params) { if (params.size() != 0 && params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_eventpseudomodel.cpp b/fxjs/xfa/cjx_eventpseudomodel.cpp index 1362a326ec..db5c14ac14 100644 --- a/fxjs/xfa/cjx_eventpseudomodel.cpp +++ b/fxjs/xfa/cjx_eventpseudomodel.cpp @@ -151,7 +151,7 @@ void CJX_EventPseudoModel::target(CFXJSE_Value* pValue, } CJS_Return CJX_EventPseudoModel::emit( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { CFXJSE_Engine* pScriptContext = GetDocument()->GetScriptContext(); if (!pScriptContext) @@ -174,7 +174,7 @@ CJS_Return CJX_EventPseudoModel::emit( } CJS_Return CJX_EventPseudoModel::reset( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { CFXJSE_Engine* pScriptContext = GetDocument()->GetScriptContext(); if (!pScriptContext) diff --git a/fxjs/xfa/cjx_exclgroup.cpp b/fxjs/xfa/cjx_exclgroup.cpp index 85a6697442..2b66484073 100644 --- a/fxjs/xfa/cjx_exclgroup.cpp +++ b/fxjs/xfa/cjx_exclgroup.cpp @@ -31,7 +31,7 @@ CJX_ExclGroup::CJX_ExclGroup(CXFA_ExclGroup* group) : CJX_Node(group) { CJX_ExclGroup::~CJX_ExclGroup() {} CJS_Return CJX_ExclGroup::execEvent( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -42,7 +42,7 @@ CJS_Return CJX_ExclGroup::execEvent( } CJS_Return CJX_ExclGroup::execInitialize( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -55,7 +55,7 @@ CJS_Return CJX_ExclGroup::execInitialize( } CJS_Return CJX_ExclGroup::execCalculate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -68,7 +68,7 @@ CJS_Return CJX_ExclGroup::execCalculate( } CJS_Return CJX_ExclGroup::execValidate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -83,7 +83,7 @@ CJS_Return CJX_ExclGroup::execValidate( } CJS_Return CJX_ExclGroup::selectedMember( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_field.cpp b/fxjs/xfa/cjx_field.cpp index 2b755b7d53..d3f0280d3f 100644 --- a/fxjs/xfa/cjx_field.cpp +++ b/fxjs/xfa/cjx_field.cpp @@ -39,7 +39,7 @@ CJX_Field::CJX_Field(CXFA_Field* field) : CJX_Container(field) { CJX_Field::~CJX_Field() {} CJS_Return CJX_Field::clearItems( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { CXFA_Node* node = GetXFANode(); if (node->IsWidgetReady()) @@ -48,7 +48,7 @@ CJS_Return CJX_Field::clearItems( } CJS_Return CJX_Field::execEvent( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -63,7 +63,7 @@ CJS_Return CJX_Field::execEvent( } CJS_Return CJX_Field::execInitialize( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -77,7 +77,7 @@ CJS_Return CJX_Field::execInitialize( } CJS_Return CJX_Field::deleteItem( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -91,7 +91,7 @@ CJS_Return CJX_Field::deleteItem( } CJS_Return CJX_Field::getSaveItem( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -112,7 +112,7 @@ CJS_Return CJX_Field::getSaveItem( } CJS_Return CJX_Field::boundItem( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -127,7 +127,7 @@ CJS_Return CJX_Field::boundItem( } CJS_Return CJX_Field::getItemState( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -141,7 +141,7 @@ CJS_Return CJX_Field::getItemState( } CJS_Return CJX_Field::execCalculate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -155,7 +155,7 @@ CJS_Return CJX_Field::execCalculate( } CJS_Return CJX_Field::getDisplayItem( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -176,7 +176,7 @@ CJS_Return CJX_Field::getDisplayItem( } CJS_Return CJX_Field::setItemState( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 2) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -196,7 +196,7 @@ CJS_Return CJX_Field::setItemState( return CJS_Return(true); } -CJS_Return CJX_Field::addItem(CJS_V8* runtime, +CJS_Return CJX_Field::addItem(CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1 && params.size() != 2) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -218,7 +218,7 @@ CJS_Return CJX_Field::addItem(CJS_V8* runtime, } CJS_Return CJX_Field::execValidate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_form.cpp b/fxjs/xfa/cjx_form.cpp index 32de9f5902..fa244b3af6 100644 --- a/fxjs/xfa/cjx_form.cpp +++ b/fxjs/xfa/cjx_form.cpp @@ -32,7 +32,7 @@ CJX_Form::CJX_Form(CXFA_Form* form) : CJX_Model(form) { CJX_Form::~CJX_Form() {} CJS_Return CJX_Form::formNodes( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -53,7 +53,7 @@ CJS_Return CJX_Form::formNodes( return CJS_Return(value->DirectGetValue().Get(runtime->GetIsolate())); } -CJS_Return CJX_Form::remerge(CJS_V8* runtime, +CJS_Return CJX_Form::remerge(CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -63,7 +63,7 @@ CJS_Return CJX_Form::remerge(CJS_V8* runtime, } CJS_Return CJX_Form::execInitialize( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -76,7 +76,7 @@ CJS_Return CJX_Form::execInitialize( } CJS_Return CJX_Form::recalculate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { CXFA_EventParam* pEventParam = GetDocument()->GetScriptContext()->GetEventParam(); @@ -98,7 +98,7 @@ CJS_Return CJX_Form::recalculate( } CJS_Return CJX_Form::execCalculate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -111,7 +111,7 @@ CJS_Return CJX_Form::execCalculate( } CJS_Return CJX_Form::execValidate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 0) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_hostpseudomodel.cpp b/fxjs/xfa/cjx_hostpseudomodel.cpp index fd570990bc..5c63fc8986 100644 --- a/fxjs/xfa/cjx_hostpseudomodel.cpp +++ b/fxjs/xfa/cjx_hostpseudomodel.cpp @@ -246,7 +246,7 @@ void CJX_HostPseudoModel::name(CFXJSE_Value* pValue, } CJS_Return CJX_HostPseudoModel::gotoURL( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!GetDocument()->GetScriptContext()->IsRunAtClient()) return CJS_Return(true); @@ -265,7 +265,7 @@ CJS_Return CJX_HostPseudoModel::gotoURL( } CJS_Return CJX_HostPseudoModel::openList( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!GetDocument()->GetScriptContext()->IsRunAtClient()) return CJS_Return(true); @@ -317,7 +317,7 @@ CJS_Return CJX_HostPseudoModel::openList( } CJS_Return CJX_HostPseudoModel::response( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.empty() || params.size() > 4) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -348,13 +348,13 @@ CJS_Return CJX_HostPseudoModel::response( } CJS_Return CJX_HostPseudoModel::documentInBatch( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(runtime->NewNumber(0)); } CJS_Return CJX_HostPseudoModel::resetData( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() > 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -404,7 +404,7 @@ CJS_Return CJX_HostPseudoModel::resetData( } CJS_Return CJX_HostPseudoModel::beep( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!GetDocument()->GetScriptContext()->IsRunAtClient()) return CJS_Return(true); @@ -425,7 +425,7 @@ CJS_Return CJX_HostPseudoModel::beep( } CJS_Return CJX_HostPseudoModel::setFocus( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!GetDocument()->GetScriptContext()->IsRunAtClient()) return CJS_Return(true); @@ -468,7 +468,7 @@ CJS_Return CJX_HostPseudoModel::setFocus( } CJS_Return CJX_HostPseudoModel::getFocus( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { CXFA_FFNotify* pNotify = GetDocument()->GetNotify(); if (!pNotify) @@ -487,7 +487,7 @@ CJS_Return CJX_HostPseudoModel::getFocus( } CJS_Return CJX_HostPseudoModel::messageBox( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!GetDocument()->GetScriptContext()->IsRunAtClient()) return CJS_Return(true); @@ -527,13 +527,13 @@ CJS_Return CJX_HostPseudoModel::messageBox( } CJS_Return CJX_HostPseudoModel::documentCountInBatch( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(runtime->NewNumber(0)); } CJS_Return CJX_HostPseudoModel::print( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!GetDocument()->GetScriptContext()->IsRunAtClient()) return CJS_Return(true); @@ -568,7 +568,7 @@ CJS_Return CJX_HostPseudoModel::print( } CJS_Return CJX_HostPseudoModel::importData( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.empty() || params.size() > 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -577,7 +577,7 @@ CJS_Return CJX_HostPseudoModel::importData( } CJS_Return CJX_HostPseudoModel::exportData( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.empty() || params.size() > 2) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -599,7 +599,7 @@ CJS_Return CJX_HostPseudoModel::exportData( } CJS_Return CJX_HostPseudoModel::pageUp( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { CXFA_FFNotify* pNotify = GetDocument()->GetNotify(); if (!pNotify) @@ -617,7 +617,7 @@ CJS_Return CJX_HostPseudoModel::pageUp( } CJS_Return CJX_HostPseudoModel::pageDown( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { CXFA_FFNotify* pNotify = GetDocument()->GetNotify(); if (!pNotify) diff --git a/fxjs/xfa/cjx_instancemanager.cpp b/fxjs/xfa/cjx_instancemanager.cpp index 830541ed7c..081b685efa 100644 --- a/fxjs/xfa/cjx_instancemanager.cpp +++ b/fxjs/xfa/cjx_instancemanager.cpp @@ -133,7 +133,7 @@ int32_t CJX_InstanceManager::MoveInstance(int32_t iTo, int32_t iFrom) { } CJS_Return CJX_InstanceManager::moveInstance( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 2) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -160,7 +160,7 @@ CJS_Return CJX_InstanceManager::moveInstance( } CJS_Return CJX_InstanceManager::removeInstance( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -200,7 +200,7 @@ CJS_Return CJX_InstanceManager::removeInstance( } CJS_Return CJX_InstanceManager::setInstances( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -210,7 +210,7 @@ CJS_Return CJX_InstanceManager::setInstances( } CJS_Return CJX_InstanceManager::addInstance( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty() && params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -251,7 +251,7 @@ CJS_Return CJX_InstanceManager::addInstance( } CJS_Return CJX_InstanceManager::insertInstance( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1 && params.size() != 2) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_layoutpseudomodel.cpp b/fxjs/xfa/cjx_layoutpseudomodel.cpp index ba17ed8b8b..fd8c8804f8 100644 --- a/fxjs/xfa/cjx_layoutpseudomodel.cpp +++ b/fxjs/xfa/cjx_layoutpseudomodel.cpp @@ -69,7 +69,7 @@ void CJX_LayoutPseudoModel::ready(CFXJSE_Value* pValue, } CJS_Return CJX_LayoutPseudoModel::HWXY( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params, XFA_LAYOUTMODEL_HWXY layoutModel) { if (params.empty() || params.size() > 3) @@ -127,30 +127,30 @@ CJS_Return CJX_LayoutPseudoModel::HWXY( } CJS_Return CJX_LayoutPseudoModel::h( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return HWXY(runtime, params, XFA_LAYOUTMODEL_H); } CJS_Return CJX_LayoutPseudoModel::w( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return HWXY(runtime, params, XFA_LAYOUTMODEL_W); } CJS_Return CJX_LayoutPseudoModel::x( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return HWXY(runtime, params, XFA_LAYOUTMODEL_X); } CJS_Return CJX_LayoutPseudoModel::y( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return HWXY(runtime, params, XFA_LAYOUTMODEL_Y); } -CJS_Return CJX_LayoutPseudoModel::NumberedPageCount(CJS_V8* runtime, +CJS_Return CJX_LayoutPseudoModel::NumberedPageCount(CFX_V8* runtime, bool bNumbered) { CXFA_LayoutProcessor* pDocLayout = GetDocument()->GetDocLayout(); if (!pDocLayout) @@ -175,13 +175,13 @@ CJS_Return CJX_LayoutPseudoModel::NumberedPageCount(CJS_V8* runtime, } CJS_Return CJX_LayoutPseudoModel::pageCount( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return NumberedPageCount(runtime, true); } CJS_Return CJX_LayoutPseudoModel::pageSpan( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -206,7 +206,7 @@ CJS_Return CJX_LayoutPseudoModel::pageSpan( } CJS_Return CJX_LayoutPseudoModel::page( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return PageInternals(runtime, params, false); } @@ -346,7 +346,7 @@ std::vector CJX_LayoutPseudoModel::GetObjArray( } CJS_Return CJX_LayoutPseudoModel::pageContent( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.empty() || params.size() > 3) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -382,25 +382,25 @@ CJS_Return CJX_LayoutPseudoModel::pageContent( } CJS_Return CJX_LayoutPseudoModel::absPageCount( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return NumberedPageCount(runtime, false); } CJS_Return CJX_LayoutPseudoModel::absPageCountInBatch( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(runtime->NewNumber(0)); } CJS_Return CJX_LayoutPseudoModel::sheetCountInBatch( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(runtime->NewNumber(0)); } CJS_Return CJX_LayoutPseudoModel::relayout( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { CXFA_Node* pRootNode = GetDocument()->GetRoot(); CXFA_Form* pFormRoot = @@ -415,13 +415,13 @@ CJS_Return CJX_LayoutPseudoModel::relayout( } CJS_Return CJX_LayoutPseudoModel::absPageSpan( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return pageSpan(runtime, params); } CJS_Return CJX_LayoutPseudoModel::absPageInBatch( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -429,7 +429,7 @@ CJS_Return CJX_LayoutPseudoModel::absPageInBatch( } CJS_Return CJX_LayoutPseudoModel::sheetInBatch( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -437,31 +437,31 @@ CJS_Return CJX_LayoutPseudoModel::sheetInBatch( } CJS_Return CJX_LayoutPseudoModel::sheet( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return PageInternals(runtime, params, true); } CJS_Return CJX_LayoutPseudoModel::relayoutPageArea( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(true); } CJS_Return CJX_LayoutPseudoModel::sheetCount( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return NumberedPageCount(runtime, false); } CJS_Return CJX_LayoutPseudoModel::absPage( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return PageInternals(runtime, params, true); } CJS_Return CJX_LayoutPseudoModel::PageInternals( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params, bool bAbsPage) { if (params.size() != 1) diff --git a/fxjs/xfa/cjx_layoutpseudomodel.h b/fxjs/xfa/cjx_layoutpseudomodel.h index 6dbef6038a..ecacdd1e83 100644 --- a/fxjs/xfa/cjx_layoutpseudomodel.h +++ b/fxjs/xfa/cjx_layoutpseudomodel.h @@ -52,15 +52,15 @@ class CJX_LayoutPseudoModel : public CJX_Object { JS_PROP(ready); private: - CJS_Return NumberedPageCount(CJS_V8* runtime, bool bNumbered); - CJS_Return HWXY(CJS_V8* runtime, + CJS_Return NumberedPageCount(CFX_V8* runtime, bool bNumbered); + CJS_Return HWXY(CFX_V8* runtime, const std::vector>& params, XFA_LAYOUTMODEL_HWXY layoutModel); std::vector GetObjArray(CXFA_LayoutProcessor* pDocLayout, int32_t iPageNo, const WideString& wsType, bool bOnPageArea); - CJS_Return PageInternals(CJS_V8* runtime, + CJS_Return PageInternals(CFX_V8* runtime, const std::vector>& params, bool bAbsPage); diff --git a/fxjs/xfa/cjx_list.cpp b/fxjs/xfa/cjx_list.cpp index 27a4315d5f..4340e3b089 100644 --- a/fxjs/xfa/cjx_list.cpp +++ b/fxjs/xfa/cjx_list.cpp @@ -31,7 +31,7 @@ CXFA_List* CJX_List::GetXFAList() { return static_cast(GetXFAObject()); } -CJS_Return CJX_List::append(CJS_V8* runtime, +CJS_Return CJX_List::append(CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -45,7 +45,7 @@ CJS_Return CJX_List::append(CJS_V8* runtime, return CJS_Return(true); } -CJS_Return CJX_List::insert(CJS_V8* runtime, +CJS_Return CJX_List::insert(CFX_V8* runtime, const std::vector>& params) { if (params.size() != 2) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -61,7 +61,7 @@ CJS_Return CJX_List::insert(CJS_V8* runtime, return CJS_Return(true); } -CJS_Return CJX_List::remove(CJS_V8* runtime, +CJS_Return CJX_List::remove(CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -75,7 +75,7 @@ CJS_Return CJX_List::remove(CJS_V8* runtime, return CJS_Return(true); } -CJS_Return CJX_List::item(CJS_V8* runtime, +CJS_Return CJX_List::item(CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_logpseudomodel.cpp b/fxjs/xfa/cjx_logpseudomodel.cpp index 810ddfa008..446c937fc3 100644 --- a/fxjs/xfa/cjx_logpseudomodel.cpp +++ b/fxjs/xfa/cjx_logpseudomodel.cpp @@ -26,31 +26,31 @@ CJX_LogPseudoModel::CJX_LogPseudoModel(CScript_LogPseudoModel* model) CJX_LogPseudoModel::~CJX_LogPseudoModel() {} CJS_Return CJX_LogPseudoModel::message( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(true); } CJS_Return CJX_LogPseudoModel::traceEnabled( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(true); } CJS_Return CJX_LogPseudoModel::traceActivate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(true); } CJS_Return CJX_LogPseudoModel::traceDeactivate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(true); } CJS_Return CJX_LogPseudoModel::trace( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(true); } diff --git a/fxjs/xfa/cjx_manifest.cpp b/fxjs/xfa/cjx_manifest.cpp index 86e2926ba6..642f4ca59a 100644 --- a/fxjs/xfa/cjx_manifest.cpp +++ b/fxjs/xfa/cjx_manifest.cpp @@ -22,7 +22,7 @@ CJX_Manifest::CJX_Manifest(CXFA_Manifest* manifest) : CJX_Node(manifest) { CJX_Manifest::~CJX_Manifest() {} CJS_Return CJX_Manifest::evaluate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_model.cpp b/fxjs/xfa/cjx_model.cpp index aa5d6b21fa..857d6a4b01 100644 --- a/fxjs/xfa/cjx_model.cpp +++ b/fxjs/xfa/cjx_model.cpp @@ -26,13 +26,13 @@ CJX_Model::CJX_Model(CXFA_Node* node) : CJX_Node(node) { CJX_Model::~CJX_Model() {} CJS_Return CJX_Model::clearErrorList( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { return CJS_Return(true); } CJS_Return CJX_Model::createNode( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.empty() || params.size() > 3) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -70,7 +70,7 @@ CJS_Return CJX_Model::createNode( } CJS_Return CJX_Model::isCompatibleNS( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_node.cpp b/fxjs/xfa/cjx_node.cpp index 8c49b6f1e4..b1749d6025 100644 --- a/fxjs/xfa/cjx_node.cpp +++ b/fxjs/xfa/cjx_node.cpp @@ -109,7 +109,7 @@ const CXFA_Node* CJX_Node::GetXFANode() const { return static_cast(GetXFAObject()); } -CJS_Return CJX_Node::applyXSL(CJS_V8* runtime, +CJS_Return CJX_Node::applyXSL(CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -119,7 +119,7 @@ CJS_Return CJX_Node::applyXSL(CJS_V8* runtime, } CJS_Return CJX_Node::assignNode( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.empty() || params.size() > 3) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -128,7 +128,7 @@ CJS_Return CJX_Node::assignNode( return CJS_Return(true); } -CJS_Return CJX_Node::clone(CJS_V8* runtime, +CJS_Return CJX_Node::clone(CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -142,7 +142,7 @@ CJS_Return CJX_Node::clone(CJS_V8* runtime, } CJS_Return CJX_Node::getAttribute( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -153,7 +153,7 @@ CJS_Return CJX_Node::getAttribute( } CJS_Return CJX_Node::getElement( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.empty() || params.size() > 2) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -174,7 +174,7 @@ CJS_Return CJX_Node::getElement( } CJS_Return CJX_Node::isPropertySpecified( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.empty() || params.size() > 3) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -197,7 +197,7 @@ CJS_Return CJX_Node::isPropertySpecified( return CJS_Return(runtime->NewBoolean(bHas)); } -CJS_Return CJX_Node::loadXML(CJS_V8* runtime, +CJS_Return CJX_Node::loadXML(CFX_V8* runtime, const std::vector>& params) { if (params.empty() || params.size() > 3) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -318,13 +318,13 @@ CJS_Return CJX_Node::loadXML(CJS_V8* runtime, } CJS_Return CJX_Node::saveFilteredXML( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { // TODO(weili): Check whether we need to implement this, pdfium:501. return CJS_Return(true); } -CJS_Return CJX_Node::saveXML(CJS_V8* runtime, +CJS_Return CJX_Node::saveXML(CFX_V8* runtime, const std::vector>& params) { if (params.size() > 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -366,7 +366,7 @@ CJS_Return CJX_Node::saveXML(CJS_V8* runtime, } CJS_Return CJX_Node::setAttribute( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 2) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -378,7 +378,7 @@ CJS_Return CJX_Node::setAttribute( } CJS_Return CJX_Node::setElement( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1 && params.size() != 2) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_object.h b/fxjs/xfa/cjx_object.h index deedebc8e5..e21a3ef3f5 100644 --- a/fxjs/xfa/cjx_object.h +++ b/fxjs/xfa/cjx_object.h @@ -20,7 +20,7 @@ #include "xfa/fxfa/fxfa_basic.h" class CFXJSE_Value; -class CJS_V8; +class CFX_V8; class CXFA_CalcData; class CXFA_Document; class CXFA_LayoutItem; @@ -30,7 +30,7 @@ struct XFA_MAPMODULEDATA; typedef CJS_Return (*CJX_MethodCall)( CJX_Object* obj, - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params); struct CJX_MethodSpec { const char* pName; diff --git a/fxjs/xfa/cjx_packet.cpp b/fxjs/xfa/cjx_packet.cpp index fdebe626ab..80b391c87b 100644 --- a/fxjs/xfa/cjx_packet.cpp +++ b/fxjs/xfa/cjx_packet.cpp @@ -24,7 +24,7 @@ CJX_Packet::CJX_Packet(CXFA_Packet* packet) : CJX_Node(packet) { CJX_Packet::~CJX_Packet() {} CJS_Return CJX_Packet::getAttribute( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -40,7 +40,7 @@ CJS_Return CJX_Packet::getAttribute( } CJS_Return CJX_Packet::setAttribute( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 2) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -54,7 +54,7 @@ CJS_Return CJX_Packet::setAttribute( } CJS_Return CJX_Packet::removeAttribute( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_signaturepseudomodel.cpp b/fxjs/xfa/cjx_signaturepseudomodel.cpp index 202532c6ca..304177884b 100644 --- a/fxjs/xfa/cjx_signaturepseudomodel.cpp +++ b/fxjs/xfa/cjx_signaturepseudomodel.cpp @@ -27,7 +27,7 @@ CJX_SignaturePseudoModel::CJX_SignaturePseudoModel( CJX_SignaturePseudoModel::~CJX_SignaturePseudoModel() {} CJS_Return CJX_SignaturePseudoModel::verifySignature( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.empty() || params.size() > 4) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -35,7 +35,7 @@ CJS_Return CJX_SignaturePseudoModel::verifySignature( } CJS_Return CJX_SignaturePseudoModel::sign( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() < 3 || params.size() > 7) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -43,7 +43,7 @@ CJS_Return CJX_SignaturePseudoModel::sign( } CJS_Return CJX_SignaturePseudoModel::enumerate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -51,7 +51,7 @@ CJS_Return CJX_SignaturePseudoModel::enumerate( } CJS_Return CJX_SignaturePseudoModel::clear( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.empty() || params.size() > 2) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_source.cpp b/fxjs/xfa/cjx_source.cpp index 399a6c3664..7576e7718d 100644 --- a/fxjs/xfa/cjx_source.cpp +++ b/fxjs/xfa/cjx_source.cpp @@ -37,7 +37,7 @@ CJX_Source::CJX_Source(CXFA_Source* src) : CJX_Node(src) { CJX_Source::~CJX_Source() {} -CJS_Return CJX_Source::next(CJS_V8* runtime, +CJS_Return CJX_Source::next(CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -45,14 +45,14 @@ CJS_Return CJX_Source::next(CJS_V8* runtime, } CJS_Return CJX_Source::cancelBatch( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); return CJS_Return(true); } -CJS_Return CJX_Source::first(CJS_V8* runtime, +CJS_Return CJX_Source::first(CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -60,7 +60,7 @@ CJS_Return CJX_Source::first(CJS_V8* runtime, } CJS_Return CJX_Source::updateBatch( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -68,42 +68,42 @@ CJS_Return CJX_Source::updateBatch( } CJS_Return CJX_Source::previous( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); return CJS_Return(true); } -CJS_Return CJX_Source::isBOF(CJS_V8* runtime, +CJS_Return CJX_Source::isBOF(CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); return CJS_Return(true); } -CJS_Return CJX_Source::isEOF(CJS_V8* runtime, +CJS_Return CJX_Source::isEOF(CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); return CJS_Return(true); } -CJS_Return CJX_Source::cancel(CJS_V8* runtime, +CJS_Return CJX_Source::cancel(CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); return CJS_Return(true); } -CJS_Return CJX_Source::update(CJS_V8* runtime, +CJS_Return CJX_Source::update(CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); return CJS_Return(true); } -CJS_Return CJX_Source::open(CJS_V8* runtime, +CJS_Return CJX_Source::open(CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -111,14 +111,14 @@ CJS_Return CJX_Source::open(CJS_V8* runtime, } CJS_Return CJX_Source::deleteItem( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); return CJS_Return(true); } -CJS_Return CJX_Source::addNew(CJS_V8* runtime, +CJS_Return CJX_Source::addNew(CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -126,28 +126,28 @@ CJS_Return CJX_Source::addNew(CJS_V8* runtime, } CJS_Return CJX_Source::requery( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); return CJS_Return(true); } -CJS_Return CJX_Source::resync(CJS_V8* runtime, +CJS_Return CJX_Source::resync(CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); return CJS_Return(true); } -CJS_Return CJX_Source::close(CJS_V8* runtime, +CJS_Return CJX_Source::close(CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); return CJS_Return(true); } -CJS_Return CJX_Source::last(CJS_V8* runtime, +CJS_Return CJX_Source::last(CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -155,7 +155,7 @@ CJS_Return CJX_Source::last(CJS_V8* runtime, } CJS_Return CJX_Source::hasDataChanged( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_subform.cpp b/fxjs/xfa/cjx_subform.cpp index f153fa2ba0..52f08655ca 100644 --- a/fxjs/xfa/cjx_subform.cpp +++ b/fxjs/xfa/cjx_subform.cpp @@ -29,7 +29,7 @@ CJX_Subform::CJX_Subform(CXFA_Node* node) : CJX_Container(node) { CJX_Subform::~CJX_Subform() {} CJS_Return CJX_Subform::execEvent( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -40,7 +40,7 @@ CJS_Return CJX_Subform::execEvent( } CJS_Return CJX_Subform::execInitialize( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -53,7 +53,7 @@ CJS_Return CJX_Subform::execInitialize( } CJS_Return CJX_Subform::execCalculate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -66,7 +66,7 @@ CJS_Return CJX_Subform::execCalculate( } CJS_Return CJX_Subform::execValidate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_template.cpp b/fxjs/xfa/cjx_template.cpp index d909567c51..6612a7c5c2 100644 --- a/fxjs/xfa/cjx_template.cpp +++ b/fxjs/xfa/cjx_template.cpp @@ -28,7 +28,7 @@ CJX_Template::CJX_Template(CXFA_Template* tmpl) : CJX_Model(tmpl) { CJX_Template::~CJX_Template() {} CJS_Return CJX_Template::formNodes( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -36,7 +36,7 @@ CJS_Return CJX_Template::formNodes( } CJS_Return CJX_Template::remerge( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -46,7 +46,7 @@ CJS_Return CJX_Template::remerge( } CJS_Return CJX_Template::execInitialize( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -54,7 +54,7 @@ CJS_Return CJX_Template::execInitialize( } CJS_Return CJX_Template::recalculate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -62,7 +62,7 @@ CJS_Return CJX_Template::recalculate( } CJS_Return CJX_Template::execCalculate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -70,7 +70,7 @@ CJS_Return CJX_Template::execCalculate( } CJS_Return CJX_Template::execValidate( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_tree.cpp b/fxjs/xfa/cjx_tree.cpp index c11d77b125..219953d1d4 100644 --- a/fxjs/xfa/cjx_tree.cpp +++ b/fxjs/xfa/cjx_tree.cpp @@ -30,7 +30,7 @@ CJX_Tree::CJX_Tree(CXFA_Object* obj) : CJX_Object(obj) { CJX_Tree::~CJX_Tree() {} CJS_Return CJX_Tree::resolveNode( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); @@ -79,7 +79,7 @@ CJS_Return CJX_Tree::resolveNode( } CJS_Return CJX_Tree::resolveNodes( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_treelist.cpp b/fxjs/xfa/cjx_treelist.cpp index b91a0b7541..904e09370f 100644 --- a/fxjs/xfa/cjx_treelist.cpp +++ b/fxjs/xfa/cjx_treelist.cpp @@ -29,7 +29,7 @@ CXFA_TreeList* CJX_TreeList::GetXFATreeList() { } CJS_Return CJX_TreeList::namedItem( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); diff --git a/fxjs/xfa/cjx_wsdlconnection.cpp b/fxjs/xfa/cjx_wsdlconnection.cpp index 4c6ca46dd9..1f9ae59fdb 100644 --- a/fxjs/xfa/cjx_wsdlconnection.cpp +++ b/fxjs/xfa/cjx_wsdlconnection.cpp @@ -23,7 +23,7 @@ CJX_WsdlConnection::CJX_WsdlConnection(CXFA_WsdlConnection* connection) CJX_WsdlConnection::~CJX_WsdlConnection() {} CJS_Return CJX_WsdlConnection::execute( - CJS_V8* runtime, + CFX_V8* runtime, const std::vector>& params) { if (!params.empty() && params.size() != 1) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); -- cgit v1.2.3