OLD | NEW |
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 FXJS_FXJSE_H_ | 7 #ifndef FXJS_FXJSE_H_ |
8 #define FXJS_FXJSE_H_ | 8 #define FXJS_FXJSE_H_ |
9 | 9 |
10 #include "core/fxcrt/fx_string.h" | 10 #include "core/fxcrt/fx_string.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 }; | 21 }; |
22 | 22 |
23 typedef void (*FXJSE_FuncCallback)(CFXJSE_Value* pThis, | 23 typedef void (*FXJSE_FuncCallback)(CFXJSE_Value* pThis, |
24 const CFX_ByteStringC& szFuncName, | 24 const CFX_ByteStringC& szFuncName, |
25 CFXJSE_Arguments& args); | 25 CFXJSE_Arguments& args); |
26 typedef void (*FXJSE_PropAccessor)(CFXJSE_Value* pObject, | 26 typedef void (*FXJSE_PropAccessor)(CFXJSE_Value* pObject, |
27 const CFX_ByteStringC& szPropName, | 27 const CFX_ByteStringC& szPropName, |
28 CFXJSE_Value* pValue); | 28 CFXJSE_Value* pValue); |
29 typedef int32_t (*FXJSE_PropTypeGetter)(CFXJSE_Value* pObject, | 29 typedef int32_t (*FXJSE_PropTypeGetter)(CFXJSE_Value* pObject, |
30 const CFX_ByteStringC& szPropName, | 30 const CFX_ByteStringC& szPropName, |
31 FX_BOOL bQueryIn); | 31 bool bQueryIn); |
32 typedef FX_BOOL (*FXJSE_PropDeleter)(CFXJSE_Value* pObject, | 32 typedef bool (*FXJSE_PropDeleter)(CFXJSE_Value* pObject, |
33 const CFX_ByteStringC& szPropName); | 33 const CFX_ByteStringC& szPropName); |
34 | 34 |
35 enum FXJSE_ClassPropTypes { | 35 enum FXJSE_ClassPropTypes { |
36 FXJSE_ClassPropType_None, | 36 FXJSE_ClassPropType_None, |
37 FXJSE_ClassPropType_Property, | 37 FXJSE_ClassPropType_Property, |
38 FXJSE_ClassPropType_Method | 38 FXJSE_ClassPropType_Method |
39 }; | 39 }; |
40 | 40 |
41 struct FXJSE_FUNCTION_DESCRIPTOR { | 41 struct FXJSE_FUNCTION_DESCRIPTOR { |
42 const FX_CHAR* name; | 42 const FX_CHAR* name; |
43 FXJSE_FuncCallback callbackProc; | 43 FXJSE_FuncCallback callbackProc; |
(...skipping 21 matching lines...) Expand all Loading... |
65 | 65 |
66 void FXJSE_Initialize(); | 66 void FXJSE_Initialize(); |
67 void FXJSE_Finalize(); | 67 void FXJSE_Finalize(); |
68 | 68 |
69 v8::Isolate* FXJSE_Runtime_Create_Own(); | 69 v8::Isolate* FXJSE_Runtime_Create_Own(); |
70 void FXJSE_Runtime_Release(v8::Isolate* pIsolate); | 70 void FXJSE_Runtime_Release(v8::Isolate* pIsolate); |
71 | 71 |
72 void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Message); | 72 void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Message); |
73 | 73 |
74 #endif // FXJS_FXJSE_H_ | 74 #endif // FXJS_FXJSE_H_ |
OLD | NEW |