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

Side by Side Diff: xfa/include/fxjse/fxjse.h

Issue 1122903002: Merge to XFA: Kill FX_DEFINEHANDLE (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 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 | « core/include/fxge/fpf.h ('k') | xfa/src/fxfa/src/common/xfa_fm2jsapi.h » ('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 _FXJSE_H_ 7 #ifndef _FXJSE_H_
8 #define _FXJSE_H_ 8 #define _FXJSE_H_
9 #ifdef __cplusplus 9
10 #define FXJSE_DEFINEINHERITHANDLE(name, subtypename) typedef struct _##subtypena me : public _##name {} * subtypename; 10 typedef struct FXJSE_HRUNTIME_ {
11 #else 11 FX_LPVOID pData;
12 #define FXJSE_DEFINEINHERITHANDLE(name, subtypename) typedef name subtypename; 12 }* FXJSE_HRUNTIME;
13 #endif 13 typedef struct FXJSE_HCONTEXT_ {
14 FX_DEFINEHANDLE(FXJSE_HRUNTIME); 14 FX_LPVOID pData;
15 FX_DEFINEHANDLE(FXJSE_HCONTEXT); 15 }* FXJSE_HCONTEXT;
16 FX_DEFINEHANDLE(FXJSE_HCLASS); 16 typedef struct FXJSE_HCLASS_ {
17 FX_DEFINEHANDLE(FXJSE_HVALUE); 17 FX_LPVOID pData;
18 FXJSE_DEFINEINHERITHANDLE(FXJSE_HVALUE, FXJSE_HOBJECT); 18 }* FXJSE_HCLASS;
19 typedef struct FXJSE_HVALUE_ {
20 FX_LPVOID pData;
21 }* FXJSE_HVALUE;
22 typedef struct FXJSE_HOBJECT_ : public FXJSE_HVALUE_ {
23 }* FXJSE_HOBJECT;
24
19 typedef double FXJSE_DOUBLE; 25 typedef double FXJSE_DOUBLE;
20 void FXJSE_Initialize(); 26 void FXJSE_Initialize();
21 void FXJSE_Finalize(); 27 void FXJSE_Finalize();
22 FXJSE_HRUNTIME FXJSE_Runtime_Create(); 28 FXJSE_HRUNTIME FXJSE_Runtime_Create();
23 void FXJSE_Runtime_Release(FXJSE_HRUNTIME hRuntime); 29 void FXJSE_Runtime_Release(FXJSE_HRUNTIME hRuntime);
24 typedef struct _FXJSE_CLASS FXJSE_CLASS; 30 typedef struct _FXJSE_CLASS FXJSE_CLASS;
25 FXJSE_HCONTEXT FXJSE_Context_Create (FXJSE_HRUNTIME hRuntime, const FXJSE_CL ASS* lpGlobalClass = NULL, FX_LPVOID lpGlobalObject = NULL); 31 FXJSE_HCONTEXT FXJSE_Context_Create (FXJSE_HRUNTIME hRuntime, const FXJSE_CL ASS* lpGlobalClass = NULL, FX_LPVOID lpGlobalObject = NULL);
26 void FXJSE_Context_Release (FXJSE_HCONTEXT hContext); 32 void FXJSE_Context_Release (FXJSE_HCONTEXT hContext);
27 FXJSE_HVALUE FXJSE_Context_GetGlobalObject(FXJSE_HCONTEXT hContext); 33 FXJSE_HVALUE FXJSE_Context_GetGlobalObject(FXJSE_HCONTEXT hContext);
28 FXJSE_HRUNTIME FXJSE_Context_GetRuntime(FXJSE_HCONTEXT hContext); 34 FXJSE_HRUNTIME FXJSE_Context_GetRuntime(FXJSE_HCONTEXT hContext);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 FX_BOOL FXJSE_Value_DeleteObjectProp (FXJSE_HVALUE hValue, FX _BSTR szPropName); 122 FX_BOOL FXJSE_Value_DeleteObjectProp (FXJSE_HVALUE hValue, FX _BSTR szPropName);
117 FX_BOOL FXJSE_Value_ObjectHasOwnProp (FXJSE_HVALUE hValue, FX _BSTR szPropName, FX_BOOL bUseTypeGetter); 123 FX_BOOL FXJSE_Value_ObjectHasOwnProp (FXJSE_HVALUE hValue, FX _BSTR szPropName, FX_BOOL bUseTypeGetter);
118 FX_BOOL FXJSE_Value_SetObjectOwnProp (FXJSE_HVALUE hValue, FX _BSTR szPropName, FXJSE_HVALUE hPropValue); 124 FX_BOOL FXJSE_Value_SetObjectOwnProp (FXJSE_HVALUE hValue, FX _BSTR szPropName, FXJSE_HVALUE hPropValue);
119 FX_BOOL FXJSE_Value_CallFunction (FXJSE_HVALUE hF unction, FXJSE_HVALUE hThis, FXJSE_HVALUE hRetValue, FX_UINT32 nArgCount, FXJSE_ HVALUE* lpArgs); 125 FX_BOOL FXJSE_Value_CallFunction (FXJSE_HVALUE hF unction, FXJSE_HVALUE hThis, FXJSE_HVALUE hRetValue, FX_UINT32 nArgCount, FXJSE_ HVALUE* lpArgs);
120 FX_BOOL FXJSE_Value_SetFunctionBind (FXJSE_HVALUE hValue, FX JSE_HVALUE hOldFunction, FXJSE_HVALUE hNewThis); 126 FX_BOOL FXJSE_Value_SetFunctionBind (FXJSE_HVALUE hValue, FX JSE_HVALUE hOldFunction, FXJSE_HVALUE hNewThis);
121 FX_BOOL FXJSE_ExecuteScript(FXJSE_HCONTEXT hContext, FX_LPCSTR s zScript, FXJSE_HVALUE hRetValue, FXJSE_HVALUE hNewThisObject = NULL); 127 FX_BOOL FXJSE_ExecuteScript(FXJSE_HCONTEXT hContext, FX_LPCSTR s zScript, FXJSE_HVALUE hRetValue, FXJSE_HVALUE hNewThisObject = NULL);
122 void FXJSE_ThrowMessage(FX_BSTR utf8Name, FX_BSTR utf8Message ); 128 void FXJSE_ThrowMessage(FX_BSTR utf8Name, FX_BSTR utf8Message );
123 FX_BOOL FXJSE_ReturnValue_GetMessage(FXJSE_HVALUE hRetValue, CFX _ByteString& utf8Name, CFX_ByteString& utf8Message); 129 FX_BOOL FXJSE_ReturnValue_GetMessage(FXJSE_HVALUE hRetValue, CFX _ByteString& utf8Name, CFX_ByteString& utf8Message);
124 FX_BOOL FXJSE_ReturnValue_GetLineInfo(FXJSE_HVALUE hRetValue, FX _INT32& nLine, FX_INT32& nCol); 130 FX_BOOL FXJSE_ReturnValue_GetLineInfo(FXJSE_HVALUE hRetValue, FX _INT32& nLine, FX_INT32& nCol);
125 #endif 131 #endif
OLDNEW
« no previous file with comments | « core/include/fxge/fpf.h ('k') | xfa/src/fxfa/src/common/xfa_fm2jsapi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698