From 769b137a435fd53a419ebbd1deb8617771b73ef6 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Wed, 8 Jun 2016 13:12:41 -0700 Subject: Remove more FXJSE c-method wrappers. This Cl cleans up a bunch of the FXJSE_* methods and moves others into the classes where they most make sense. Review-Url: https://codereview.chromium.org/2045883004 --- xfa/fxjse/include/fxjse.h | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) (limited to 'xfa/fxjse/include/fxjse.h') diff --git a/xfa/fxjse/include/fxjse.h b/xfa/fxjse/include/fxjse.h index 835d5de9ba..d7c85f54e8 100644 --- a/xfa/fxjse/include/fxjse.h +++ b/xfa/fxjse/include/fxjse.h @@ -12,8 +12,6 @@ #include "v8/include/v8.h" class CFXJSE_Arguments; -class CFXJSE_Class; -class CFXJSE_Context; class CFXJSE_Value; class CFXJSE_HostObject {}; // C++ object which can be wrapped by CFXJSE_value. @@ -67,32 +65,6 @@ void FXJSE_Finalize(); v8::Isolate* FXJSE_Runtime_Create_Own(); void FXJSE_Runtime_Release(v8::Isolate* pIsolate); -CFXJSE_Context* FXJSE_Context_Create( - v8::Isolate* pIsolate, - const FXJSE_CLASS_DESCRIPTOR* lpGlobalClass, - CFXJSE_HostObject* lpGlobalObject); -void FXJSE_Context_Release(CFXJSE_Context* pContext); -CFXJSE_Value* FXJSE_Context_GetGlobalObject(CFXJSE_Context* pContext); -void FXJSE_Context_EnableCompatibleMode(CFXJSE_Context* pContext); - -CFXJSE_Class* FXJSE_DefineClass(CFXJSE_Context* pContext, - const FXJSE_CLASS_DESCRIPTOR* lpClass); - -FX_BOOL FXJSE_Value_IsUndefined(CFXJSE_Value* pValue); -FX_BOOL FXJSE_Value_IsNull(CFXJSE_Value* pValue); -FX_BOOL FXJSE_Value_IsBoolean(CFXJSE_Value* pValue); -FX_BOOL FXJSE_Value_IsUTF8String(CFXJSE_Value* pValue); -FX_BOOL FXJSE_Value_IsNumber(CFXJSE_Value* pValue); -FX_BOOL FXJSE_Value_IsObject(CFXJSE_Value* pValue); -FX_BOOL FXJSE_Value_IsArray(CFXJSE_Value* pValue); -FX_BOOL FXJSE_Value_IsFunction(CFXJSE_Value* pValue); - -FX_BOOL FXJSE_ExecuteScript(CFXJSE_Context* pContext, - const FX_CHAR* szScript, - CFXJSE_Value* pRetValue, - CFXJSE_Value* pNewThisObject = nullptr); - -void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Name, - const CFX_ByteStringC& utf8Message); +void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Message); #endif // XFA_FXJSE_INCLUDE_FXJSE_H_ -- cgit v1.2.3