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

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

Issue 2025193002: Track shared isolates better in FXJSE. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits. Created 4 years, 6 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 | « fpdfsdk/fpdfxfa/include/fpdfxfa_app.h ('k') | xfa/fxjse/runtime.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 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
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
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_
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/include/fpdfxfa_app.h ('k') | xfa/fxjse/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698