From cb22f9ad9265f40b1104ed2b09488ccc6ec9e5aa Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 11 Dec 2017 22:01:08 +0000 Subject: [xfa] Refactor CJX method signatures. This CL changes the CJX methods from void (*)(CFXJSE_Arguments*) to CJS_Return (*)(CJS_V8* runtime, const std::vector>& params) which is closer to how CJS works in practice. Change-Id: I3a3129268acfe4262dfeb04179919ed19f6c24e1 Reviewed-on: https://pdfium-review.googlesource.com/20491 Commit-Queue: dsinclair Reviewed-by: Tom Sepez --- fxjs/cjx_logpseudomodel.cpp | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) (limited to 'fxjs/cjx_logpseudomodel.cpp') diff --git a/fxjs/cjx_logpseudomodel.cpp b/fxjs/cjx_logpseudomodel.cpp index 759817257d..54713fa83d 100644 --- a/fxjs/cjx_logpseudomodel.cpp +++ b/fxjs/cjx_logpseudomodel.cpp @@ -6,7 +6,8 @@ #include "fxjs/cjx_logpseudomodel.h" -#include "fxjs/cfxjse_arguments.h" +#include + #include "fxjs/cfxjse_value.h" #include "xfa/fxfa/parser/cscript_logpseudomodel.h" @@ -25,12 +26,32 @@ CJX_LogPseudoModel::CJX_LogPseudoModel(CScript_LogPseudoModel* model) CJX_LogPseudoModel::~CJX_LogPseudoModel() {} -void CJX_LogPseudoModel::message(CFXJSE_Arguments* pArguments) {} +CJS_Return CJX_LogPseudoModel::message( + CJS_V8* runtime, + const std::vector>& params) { + return CJS_Return(true); +} -void CJX_LogPseudoModel::traceEnabled(CFXJSE_Arguments* pArguments) {} +CJS_Return CJX_LogPseudoModel::traceEnabled( + CJS_V8* runtime, + const std::vector>& params) { + return CJS_Return(true); +} -void CJX_LogPseudoModel::traceActivate(CFXJSE_Arguments* pArguments) {} +CJS_Return CJX_LogPseudoModel::traceActivate( + CJS_V8* runtime, + const std::vector>& params) { + return CJS_Return(true); +} -void CJX_LogPseudoModel::traceDeactivate(CFXJSE_Arguments* pArguments) {} +CJS_Return CJX_LogPseudoModel::traceDeactivate( + CJS_V8* runtime, + const std::vector>& params) { + return CJS_Return(true); +} -void CJX_LogPseudoModel::trace(CFXJSE_Arguments* pArguments) {} +CJS_Return CJX_LogPseudoModel::trace( + CJS_V8* runtime, + const std::vector>& params) { + return CJS_Return(true); +} -- cgit v1.2.3