summaryrefslogtreecommitdiff
path: root/xfa/fxfa/fxfa_basic.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-06 18:17:41 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-06 18:17:41 +0000
commit472bb7f919736ae58461f653597eb6854119cca9 (patch)
treefb7a694e41bba43a7be04b3d7790b0872fee68bf /xfa/fxfa/fxfa_basic.h
parentd19aa7c572c252dd0398f277d13ec1733f1c7098 (diff)
downloadpdfium-472bb7f919736ae58461f653597eb6854119cca9.tar.xz
Call CJX methods directly instead of proxying
This CL updates the XFA JS code to call the methods on the CJX objects directly instead of proxying through the CXFA objects. The script methods have been removed from the CXFA objects. Change-Id: I2d7b502473a8e88a7af88b10aa0da602d4998394 Reviewed-on: https://pdfium-review.googlesource.com/17851 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/fxfa_basic.h')
-rw-r--r--xfa/fxfa/fxfa_basic.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/xfa/fxfa/fxfa_basic.h b/xfa/fxfa/fxfa_basic.h
index a33f8c8153..be8fcf2833 100644
--- a/xfa/fxfa/fxfa_basic.h
+++ b/xfa/fxfa/fxfa_basic.h
@@ -10,6 +10,8 @@
#include "fxjs/cfxjse_arguments.h"
#include "fxjs/fxjse.h"
+class CFXJSE_Arguments;
+class CJX_Object;
class CXFA_Measurement;
enum class XFA_ObjectType;
@@ -998,19 +1000,16 @@ struct XFA_NOTSUREATTRIBUTE {
void* pValue;
};
-class CFXJSE_Arguments;
-class CXFA_Object;
-
-typedef void (CXFA_Object::*XFA_METHOD_CALLBACK)(CFXJSE_Arguments* pArguments);
+typedef void (CJX_Object::*XFA_METHOD_CALLBACK)(CFXJSE_Arguments* pArguments);
struct XFA_METHODINFO {
uint32_t uHash;
const wchar_t* pName;
- XFA_METHOD_CALLBACK lpfnCallback;
+ XFA_METHOD_CALLBACK callback;
};
-typedef void (CXFA_Object::*XFA_ATTRIBUTE_CALLBACK)(CFXJSE_Value* pValue,
- bool bSetting,
- XFA_ATTRIBUTE eAttribute);
+typedef void (CJX_Object::*XFA_ATTRIBUTE_CALLBACK)(CFXJSE_Value* pValue,
+ bool bSetting,
+ XFA_ATTRIBUTE eAttribute);
enum XFA_SCRIPT_TYPE {
XFA_SCRIPT_Basic,
XFA_SCRIPT_Object,
@@ -1018,7 +1017,7 @@ enum XFA_SCRIPT_TYPE {
struct XFA_SCRIPTATTRIBUTEINFO {
uint32_t uHash;
const wchar_t* pName;
- XFA_ATTRIBUTE_CALLBACK lpfnCallback;
+ XFA_ATTRIBUTE_CALLBACK callback;
int32_t eAttribute;
uint16_t eValueType;
};