OLD | NEW |
| (Empty) |
1 // Copyright 2014 PDFium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
6 | |
7 #ifndef XFA_FXFA_FM2JS_XFA_FM2JSAPI_H_ | |
8 #define XFA_FXFA_FM2JS_XFA_FM2JSAPI_H_ | |
9 | |
10 #include "core/fxcrt/include/fx_basic.h" | |
11 #include "xfa/fxfa/parser/xfa_document.h" | |
12 #include "xfa/fxjse/include/fxjse.h" | |
13 | |
14 #define FOXIT_XFA_FM2JS_FORMCALC_RUNTIME "foxit_xfa_formcalc_runtime" | |
15 | |
16 #ifdef __cplusplus | |
17 extern "C" { | |
18 #endif | |
19 | |
20 typedef struct XFA_HFM2JSCONTEXT_ { void** pData; } * XFA_HFM2JSCONTEXT; | |
21 int32_t XFA_FM2JS_Translate(const CFX_WideStringC& wsFormcalc, | |
22 CFX_WideTextBuf& wsJavascript, | |
23 CFX_WideString& wsError); | |
24 XFA_HFM2JSCONTEXT XFA_FM2JS_ContextCreate(v8::Isolate* pScriptIsolate, | |
25 CFXJSE_Context* pScriptContext, | |
26 CXFA_Document* pDocument); | |
27 void XFA_FM2JS_GlobalPropertyGetter(XFA_HFM2JSCONTEXT hFM2JSContext, | |
28 CFXJSE_Value* pValue); | |
29 void XFA_FM2JS_ContextRelease(XFA_HFM2JSCONTEXT hFM2JSContext); | |
30 | |
31 #ifdef __cplusplus | |
32 } | |
33 #endif | |
34 | |
35 #endif // XFA_FXFA_FM2JS_XFA_FM2JSAPI_H_ | |
OLD | NEW |