| 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 XFA_FXJSE_INCLUDE_FXJSE_H_ | 7 #ifndef XFA_FXJSE_INCLUDE_FXJSE_H_ |
| 8 #define XFA_FXJSE_INCLUDE_FXJSE_H_ | 8 #define XFA_FXJSE_INCLUDE_FXJSE_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_string.h" | 10 #include "core/fxcrt/include/fx_string.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 FXJSE_PropTypeGetter dynPropTypeGetter; | 62 FXJSE_PropTypeGetter dynPropTypeGetter; |
| 63 FXJSE_PropAccessor dynPropGetter; | 63 FXJSE_PropAccessor dynPropGetter; |
| 64 FXJSE_PropAccessor dynPropSetter; | 64 FXJSE_PropAccessor dynPropSetter; |
| 65 FXJSE_PropDeleter dynPropDeleter; | 65 FXJSE_PropDeleter dynPropDeleter; |
| 66 FXJSE_FuncCallback dynMethodCall; | 66 FXJSE_FuncCallback dynMethodCall; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 void FXJSE_Initialize(); | 69 void FXJSE_Initialize(); |
| 70 void FXJSE_Finalize(); | 70 void FXJSE_Finalize(); |
| 71 | 71 |
| 72 v8::Isolate* FXJSE_Runtime_Create(); | 72 v8::Isolate* FXJSE_Runtime_Create_Own(); |
| 73 void FXJSE_Runtime_Release(v8::Isolate* pIsolate, bool bOwnedRuntime); | 73 void FXJSE_Runtime_Release(v8::Isolate* pIsolate); |
| 74 | 74 |
| 75 CFXJSE_Context* FXJSE_Context_Create( | 75 CFXJSE_Context* FXJSE_Context_Create( |
| 76 v8::Isolate* pIsolate, | 76 v8::Isolate* pIsolate, |
| 77 const FXJSE_CLASS_DESCRIPTOR* lpGlobalClass, | 77 const FXJSE_CLASS_DESCRIPTOR* lpGlobalClass, |
| 78 CFXJSE_HostObject* lpGlobalObject); | 78 CFXJSE_HostObject* lpGlobalObject); |
| 79 void FXJSE_Context_Release(CFXJSE_Context* pContext); | 79 void FXJSE_Context_Release(CFXJSE_Context* pContext); |
| 80 CFXJSE_Value* FXJSE_Context_GetGlobalObject(CFXJSE_Context* pContext); | 80 CFXJSE_Value* FXJSE_Context_GetGlobalObject(CFXJSE_Context* pContext); |
| 81 | 81 |
| 82 void FXJSE_Context_EnableCompatibleMode(CFXJSE_Context* pContext, | 82 void FXJSE_Context_EnableCompatibleMode(CFXJSE_Context* pContext, |
| 83 uint32_t dwCompatibleFlags); | 83 uint32_t dwCompatibleFlags); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 FX_BOOL FXJSE_ExecuteScript(CFXJSE_Context* pContext, | 144 FX_BOOL FXJSE_ExecuteScript(CFXJSE_Context* pContext, |
| 145 const FX_CHAR* szScript, | 145 const FX_CHAR* szScript, |
| 146 CFXJSE_Value* pRetValue, | 146 CFXJSE_Value* pRetValue, |
| 147 CFXJSE_Value* pNewThisObject = nullptr); | 147 CFXJSE_Value* pNewThisObject = nullptr); |
| 148 | 148 |
| 149 void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Name, | 149 void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Name, |
| 150 const CFX_ByteStringC& utf8Message); | 150 const CFX_ByteStringC& utf8Message); |
| 151 | 151 |
| 152 #endif // XFA_FXJSE_INCLUDE_FXJSE_H_ | 152 #endif // XFA_FXJSE_INCLUDE_FXJSE_H_ |
| OLD | NEW |