Files
2026-06-12 23:18:12 +08:00

143 lines
7.0 KiB
C++

// CodeGear C++Builder
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'uCEFv8Value.pas' rev: 37.00 (Windows)
#ifndef uCEFv8ValueHPP
#define uCEFv8ValueHPP
#pragma delphiheader begin
#pragma option push
#if defined(__BORLANDC__) && !defined(__clang__)
#pragma option -w- // All warnings off
#pragma option -Vx // Zero-length empty class member
#endif
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>
#include <System.Classes.hpp>
#include <System.SysUtils.hpp>
#include <uCEFBaseRefCounted.hpp>
#include <uCEFInterfaces.hpp>
#include <uCEFTypes.hpp>
//-- user supplied -----------------------------------------------------------
namespace Ucefv8value
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TCefv8ValueRef;
//-- type declarations -------------------------------------------------------
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCefv8ValueRef : public Ucefbaserefcounted::TCefBaseRefCountedRef
{
typedef Ucefbaserefcounted::TCefBaseRefCountedRef inherited;
protected:
bool __fastcall IsValid();
bool __fastcall IsUndefined();
bool __fastcall IsNull();
bool __fastcall IsBool();
bool __fastcall IsInt();
bool __fastcall IsUInt();
bool __fastcall IsDouble();
bool __fastcall IsDate();
bool __fastcall IsString();
bool __fastcall IsObject();
bool __fastcall IsArray();
bool __fastcall IsArrayBuffer();
bool __fastcall IsFunction();
bool __fastcall IsPromise();
bool __fastcall IsSame(const Ucefinterfaces::_di_ICefv8Value that);
bool __fastcall GetBoolValue();
int __fastcall GetIntValue();
unsigned __fastcall GetUIntValue();
double __fastcall GetDoubleValue();
System::TDateTime __fastcall GetDateValue();
Uceftypes::ustring __fastcall GetStringValue();
bool __fastcall IsUserCreated();
bool __fastcall HasException();
Ucefinterfaces::_di_ICefV8Exception __fastcall GetException();
bool __fastcall ClearException();
bool __fastcall WillRethrowExceptions();
bool __fastcall SetRethrowExceptions(bool rethrow);
bool __fastcall HasValueByKey(const Uceftypes::ustring key);
bool __fastcall HasValueByIndex(int index);
bool __fastcall DeleteValueByKey(const Uceftypes::ustring key);
bool __fastcall DeleteValueByIndex(int index);
Ucefinterfaces::_di_ICefv8Value __fastcall GetValueByKey(const Uceftypes::ustring key);
Ucefinterfaces::_di_ICefv8Value __fastcall GetValueByIndex(int index);
bool __fastcall SetValueByKey(const Uceftypes::ustring key, const Ucefinterfaces::_di_ICefv8Value value, Uceftypes::TCefV8PropertyAttributes attribute);
bool __fastcall SetValueByIndex(int index, const Ucefinterfaces::_di_ICefv8Value value);
bool __fastcall SetValueByAccessor(const Uceftypes::ustring key, Uceftypes::TCefV8PropertyAttributes attribute);
int __fastcall GetKeys(System::Classes::TStrings* const keys);
bool __fastcall SetUserData(const Ucefinterfaces::_di_ICefCustomUserData data);
Ucefinterfaces::_di_ICefCustomUserData __fastcall GetUserData();
int __fastcall GetExternallyAllocatedMemory();
int __fastcall AdjustExternallyAllocatedMemory(int changeInBytes);
int __fastcall GetArrayLength();
Ucefinterfaces::_di_ICefv8ArrayBufferReleaseCallback __fastcall GetArrayBufferReleaseCallback();
bool __fastcall NeuterArrayBuffer();
System::NativeUInt __fastcall GetArrayBufferByteLength();
void * __fastcall GetArrayBufferData();
Uceftypes::ustring __fastcall GetFunctionName();
Ucefinterfaces::_di_ICefv8Handler __fastcall GetFunctionHandler();
Ucefinterfaces::_di_ICefv8Value __fastcall ExecuteFunction(const Ucefinterfaces::_di_ICefv8Value obj, const Ucefinterfaces::TCefv8ValueArray arguments);
Ucefinterfaces::_di_ICefv8Value __fastcall ExecuteFunctionWithContext(const Ucefinterfaces::_di_ICefv8Context context, const Ucefinterfaces::_di_ICefv8Value obj, const Ucefinterfaces::TCefv8ValueArray arguments);
bool __fastcall ResolvePromise(const Ucefinterfaces::_di_ICefv8Value arg);
bool __fastcall RejectPromise(const Uceftypes::ustring errorMsg);
public:
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall UnWrap(void * data);
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall NewUndefined();
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall NewNull();
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall NewBool(bool value);
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall NewInt(int value);
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall NewUInt(unsigned value);
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall NewDouble(double value);
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall NewDate(System::TDateTime value);
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall NewString(const Uceftypes::ustring str);
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall NewObject(const Ucefinterfaces::_di_ICefV8Accessor Accessor, const Ucefinterfaces::_di_ICefV8Interceptor Interceptor);
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall NewObjectProc(const Ucefinterfaces::_di_TCefV8AccessorGetterProc getter, const Ucefinterfaces::_di_TCefV8AccessorSetterProc setter, const Ucefinterfaces::_di_TCefV8InterceptorGetterByNameProc getterbyname, const Ucefinterfaces::_di_TCefV8InterceptorSetterByNameProc setterbyname, const Ucefinterfaces::_di_TCefV8InterceptorGetterByIndexProc getterbyindex, const Ucefinterfaces::_di_TCefV8InterceptorSetterByIndexProc setterbyindex);
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall NewArray(int len);
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall NewArrayBuffer(void * buffer, System::NativeUInt length, const Ucefinterfaces::_di_ICefv8ArrayBufferReleaseCallback callback);
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall NewArrayBufferWithCopy(void * buffer, System::NativeUInt length);
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall NewFunction(const Uceftypes::ustring name, const Ucefinterfaces::_di_ICefv8Handler handler);
__classmethod Ucefinterfaces::_di_ICefv8Value __fastcall NewPromise();
public:
/* TCefBaseRefCountedRef.Create */ inline __fastcall virtual TCefv8ValueRef(void * data) : Ucefbaserefcounted::TCefBaseRefCountedRef(data) { }
/* TCefBaseRefCountedRef.Destroy */ inline __fastcall virtual ~TCefv8ValueRef() { }
private:
void *__ICefv8Value; // Ucefinterfaces::ICefv8Value
public:
#if defined(MANAGED_INTERFACE_OPERATORS)
// {52319B8D-75A8-422C-BD4B-16FA08CC7F42}
operator Ucefinterfaces::_di_ICefv8Value()
{
Ucefinterfaces::_di_ICefv8Value intf;
this->GetInterface(intf);
return intf;
}
#else
operator Ucefinterfaces::ICefv8Value*(void) { return (Ucefinterfaces::ICefv8Value*)&__ICefv8Value; }
#endif
};
#pragma pack(pop)
//-- var, const, procedure ---------------------------------------------------
} /* namespace Ucefv8value */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFV8VALUE)
using namespace Ucefv8value;
#endif
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // uCEFv8ValueHPP