Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1004)

Side by Side Diff: xfa/fxfa/fm2js/xfa_fm2jsapi.h

Issue 2013963005: Replace FXJSE_HCONTEXT with CFXJSE_Context* (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | xfa/fxfa/fm2js/xfa_fm2jsapi.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FXFA_FM2JS_XFA_FM2JSAPI_H_ 7 #ifndef XFA_FXFA_FM2JS_XFA_FM2JSAPI_H_
8 #define XFA_FXFA_FM2JS_XFA_FM2JSAPI_H_ 8 #define XFA_FXFA_FM2JS_XFA_FM2JSAPI_H_
9 9
10 #include "core/fxcrt/include/fx_basic.h" 10 #include "core/fxcrt/include/fx_basic.h"
11 #include "xfa/fxfa/parser/xfa_document.h" 11 #include "xfa/fxfa/parser/xfa_document.h"
12 #include "xfa/fxjse/include/fxjse.h" 12 #include "xfa/fxjse/include/fxjse.h"
13 13
14 #define FOXIT_XFA_FM2JS_FORMCALC_RUNTIME "foxit_xfa_formcalc_runtime" 14 #define FOXIT_XFA_FM2JS_FORMCALC_RUNTIME "foxit_xfa_formcalc_runtime"
15 15
16 #ifdef __cplusplus 16 #ifdef __cplusplus
17 extern "C" { 17 extern "C" {
18 #endif 18 #endif
19 19
20 typedef struct XFA_HFM2JSCONTEXT_ { void** pData; } * XFA_HFM2JSCONTEXT; 20 typedef struct XFA_HFM2JSCONTEXT_ { void** pData; } * XFA_HFM2JSCONTEXT;
21 int32_t XFA_FM2JS_Translate(const CFX_WideStringC& wsFormcalc, 21 int32_t XFA_FM2JS_Translate(const CFX_WideStringC& wsFormcalc,
22 CFX_WideTextBuf& wsJavascript, 22 CFX_WideTextBuf& wsJavascript,
23 CFX_WideString& wsError); 23 CFX_WideString& wsError);
24 XFA_HFM2JSCONTEXT XFA_FM2JS_ContextCreate(); 24 XFA_HFM2JSCONTEXT XFA_FM2JS_ContextCreate();
25 void XFA_FM2JS_ContextInitialize(XFA_HFM2JSCONTEXT hFM2JSContext, 25 void XFA_FM2JS_ContextInitialize(XFA_HFM2JSCONTEXT hFM2JSContext,
26 v8::Isolate* pScriptRuntime, 26 v8::Isolate* pScriptIsolate,
27 FXJSE_HCONTEXT hScriptContext, 27 CFXJSE_Context* pScriptContext,
28 CXFA_Document* pDocument); 28 CXFA_Document* pDocument);
29 void XFA_FM2JS_GlobalPropertyGetter(XFA_HFM2JSCONTEXT hFM2JSContext, 29 void XFA_FM2JS_GlobalPropertyGetter(XFA_HFM2JSCONTEXT hFM2JSContext,
30 FXJSE_HVALUE hValue); 30 FXJSE_HVALUE hValue);
31 void XFA_FM2JS_ContextRelease(XFA_HFM2JSCONTEXT hFM2JSContext); 31 void XFA_FM2JS_ContextRelease(XFA_HFM2JSCONTEXT hFM2JSContext);
32 32
33 #ifdef __cplusplus 33 #ifdef __cplusplus
34 } 34 }
35 #endif 35 #endif
36 36
37 #endif // XFA_FXFA_FM2JS_XFA_FM2JSAPI_H_ 37 #endif // XFA_FXFA_FM2JS_XFA_FM2JSAPI_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fxfa/fm2js/xfa_fm2jsapi.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698