From 93bb725b62f9779534c9444c1e1319fe8c28912e Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 7 Dec 2017 22:33:43 +0000 Subject: [xfa] Move JS method information to files. This CL moves the XFA SOM JS Method information out of the c-array and into individual CJX class files. Change-Id: I401046a06aacaf1f04e5a51eb899e479de012e15 Reviewed-on: https://pdfium-review.googlesource.com/20450 Reviewed-by: Lei Zhang Commit-Queue: dsinclair --- fxjs/cjx_datawindow.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'fxjs/cjx_datawindow.h') diff --git a/fxjs/cjx_datawindow.h b/fxjs/cjx_datawindow.h index ccdfea4b17..e7c39edad8 100644 --- a/fxjs/cjx_datawindow.h +++ b/fxjs/cjx_datawindow.h @@ -7,10 +7,10 @@ #ifndef FXJS_CJX_DATAWINDOW_H_ #define FXJS_CJX_DATAWINDOW_H_ +#include "fxjs/CJX_Define.h" #include "fxjs/cjx_object.h" #include "xfa/fxfa/fxfa_basic.h" -class CFXJSE_Arguments; class CFXJSE_Value; class CScript_DataWindow; @@ -19,10 +19,6 @@ class CJX_DataWindow : public CJX_Object { explicit CJX_DataWindow(CScript_DataWindow* window); ~CJX_DataWindow() override; - void MoveCurrentRecord(CFXJSE_Arguments* pArguments); - void Record(CFXJSE_Arguments* pArguments); - void GotoRecord(CFXJSE_Arguments* pArguments); - void IsRecordGroup(CFXJSE_Arguments* pArguments); void RecordsBefore(CFXJSE_Value* pValue, bool bSetting, XFA_Attribute eAttribute); @@ -33,6 +29,14 @@ class CJX_DataWindow : public CJX_Object { bool bSetting, XFA_Attribute eAttribute); void IsDefined(CFXJSE_Value* pValue, bool bSetting, XFA_Attribute eAttribute); + + JS_METHOD(gotoRecord, CJX_DataWindow); + JS_METHOD(isRecordGroup, CJX_DataWindow); + JS_METHOD(moveCurrentRecord, CJX_DataWindow); + JS_METHOD(record, CJX_DataWindow); + + private: + static const CJX_MethodSpec MethodSpecs[]; }; #endif // FXJS_CJX_DATAWINDOW_H_ -- cgit v1.2.3