summaryrefslogtreecommitdiff
path: root/fxjs/cjx_hostpseudomodel.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-12-07 22:33:43 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-07 22:33:43 +0000
commit93bb725b62f9779534c9444c1e1319fe8c28912e (patch)
treeaf0c758c1129dc076cbf67a89f1c23e4703e02bd /fxjs/cjx_hostpseudomodel.h
parentce6979f8d064507300fe0b3a856687fb958c9a5c (diff)
downloadpdfium-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_hostpseudomodel.h')
-rw-r--r--fxjs/cjx_hostpseudomodel.h36
1 files changed, 19 insertions, 17 deletions
diff --git a/fxjs/cjx_hostpseudomodel.h b/fxjs/cjx_hostpseudomodel.h
index 9a71bc4224..d5c90aa87c 100644
--- a/fxjs/cjx_hostpseudomodel.h
+++ b/fxjs/cjx_hostpseudomodel.h
@@ -7,10 +7,10 @@
#ifndef FXJS_CJX_HOSTPSEUDOMODEL_H_
#define FXJS_CJX_HOSTPSEUDOMODEL_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_HostPseudoModel;
@@ -36,27 +36,29 @@ class CJX_HostPseudoModel : public CJX_Object {
void Variation(CFXJSE_Value* pValue, bool bSetting, XFA_Attribute eAttribute);
void Version(CFXJSE_Value* pValue, bool bSetting, XFA_Attribute eAttribute);
void Name(CFXJSE_Value* pValue, bool bSetting, XFA_Attribute eAttribute);
- void GotoURL(CFXJSE_Arguments* pArguments);
- void OpenList(CFXJSE_Arguments* pArguments);
- void Response(CFXJSE_Arguments* pArguments);
- void DocumentInBatch(CFXJSE_Arguments* pArguments);
- void ResetData(CFXJSE_Arguments* pArguments);
- void Beep(CFXJSE_Arguments* pArguments);
- void SetFocus(CFXJSE_Arguments* pArguments);
- void GetFocus(CFXJSE_Arguments* pArguments);
- void MessageBox(CFXJSE_Arguments* pArguments);
- void DocumentCountInBatch(CFXJSE_Arguments* pArguments);
- void Print(CFXJSE_Arguments* pArguments);
- void ImportData(CFXJSE_Arguments* pArguments);
- void ExportData(CFXJSE_Arguments* pArguments);
- void PageUp(CFXJSE_Arguments* pArguments);
- void PageDown(CFXJSE_Arguments* pArguments);
- void CurrentDateTime(CFXJSE_Arguments* pArguments);
+
+ JS_METHOD(beep, CJX_HostPseudoModel);
+ JS_METHOD(documentCountInBatch, CJX_HostPseudoModel);
+ JS_METHOD(documentInBatch, CJX_HostPseudoModel);
+ JS_METHOD(exportData, CJX_HostPseudoModel);
+ JS_METHOD(getFocus, CJX_HostPseudoModel);
+ JS_METHOD(gotoURL, CJX_HostPseudoModel);
+ JS_METHOD(importData, CJX_HostPseudoModel);
+ JS_METHOD(messageBox, CJX_HostPseudoModel);
+ JS_METHOD(openList, CJX_HostPseudoModel);
+ JS_METHOD(pageDown, CJX_HostPseudoModel);
+ JS_METHOD(pageUp, CJX_HostPseudoModel);
+ JS_METHOD(print, CJX_HostPseudoModel);
+ JS_METHOD(resetData, CJX_HostPseudoModel);
+ JS_METHOD(response, CJX_HostPseudoModel);
+ JS_METHOD(setFocus, CJX_HostPseudoModel);
private:
bool ValidateArgsForMsg(CFXJSE_Arguments* pArguments,
int32_t iArgIndex,
WideString& wsValue);
+
+ static const CJX_MethodSpec MethodSpecs[];
};
#endif // FXJS_CJX_HOSTPSEUDOMODEL_H_