diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-12-07 22:33:43 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-07 22:33:43 +0000 |
commit | 93bb725b62f9779534c9444c1e1319fe8c28912e (patch) | |
tree | af0c758c1129dc076cbf67a89f1c23e4703e02bd /fxjs/cjx_datawindow.h | |
parent | ce6979f8d064507300fe0b3a856687fb958c9a5c (diff) | |
download | pdfium-93bb725b62f9779534c9444c1e1319fe8c28912e.tar.xz |
[xfa] Move JS method information to files.chromium/3288
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 <thestig@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cjx_datawindow.h')
-rw-r--r-- | fxjs/cjx_datawindow.h | 14 |
1 files changed, 9 insertions, 5 deletions
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_ |