Files
common/CEF4Delphi/win32/hpps/uCEFv8Handler.hpp
T
2026-06-12 23:18:12 +08:00

181 lines
6.4 KiB
C++

// CodeGear C++Builder
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'uCEFv8Handler.pas' rev: 37.00 (Windows)
#ifndef uCEFv8HandlerHPP
#define uCEFv8HandlerHPP
#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 <Winapi.Windows.hpp>
#include <System.Rtti.hpp>
#include <System.TypInfo.hpp>
#include <System.Variants.hpp>
#include <System.SysUtils.hpp>
#include <System.Classes.hpp>
#include <System.Math.hpp>
#include <System.SyncObjs.hpp>
#include <uCEFBaseRefCounted.hpp>
#include <uCEFInterfaces.hpp>
#include <uCEFTypes.hpp>
//-- user supplied -----------------------------------------------------------
namespace Ucefv8handler
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TCefv8HandlerRef;
class DELPHICLASS TCefv8HandlerOwn;
class DELPHICLASS TCefCustomUserData;
class DELPHICLASS TCefRTTIExtension;
//-- type declarations -------------------------------------------------------
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCefv8HandlerRef : public Ucefbaserefcounted::TCefBaseRefCountedRef
{
typedef Ucefbaserefcounted::TCefBaseRefCountedRef inherited;
protected:
bool __fastcall Execute(const Uceftypes::ustring name, const Ucefinterfaces::_di_ICefv8Value object_, const Ucefinterfaces::TCefv8ValueArray arguments, Ucefinterfaces::_di_ICefv8Value &retval, Uceftypes::ustring &exception);
public:
__classmethod Ucefinterfaces::_di_ICefv8Handler __fastcall UnWrap(void * data);
public:
/* TCefBaseRefCountedRef.Create */ inline __fastcall virtual TCefv8HandlerRef(void * data) : Ucefbaserefcounted::TCefBaseRefCountedRef(data) { }
/* TCefBaseRefCountedRef.Destroy */ inline __fastcall virtual ~TCefv8HandlerRef() { }
private:
void *__ICefv8Handler; // Ucefinterfaces::ICefv8Handler
public:
#if defined(MANAGED_INTERFACE_OPERATORS)
// {F94CDC60-FDCB-422D-96D5-D2A775BD5D73}
operator Ucefinterfaces::_di_ICefv8Handler()
{
Ucefinterfaces::_di_ICefv8Handler intf;
this->GetInterface(intf);
return intf;
}
#else
operator Ucefinterfaces::ICefv8Handler*(void) { return (Ucefinterfaces::ICefv8Handler*)&__ICefv8Handler; }
#endif
};
#pragma pack(pop)
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCefv8HandlerOwn : public Ucefbaserefcounted::TCefBaseRefCountedOwn
{
typedef Ucefbaserefcounted::TCefBaseRefCountedOwn inherited;
protected:
virtual bool __fastcall Execute(const Uceftypes::ustring name, const Ucefinterfaces::_di_ICefv8Value object_, const Ucefinterfaces::TCefv8ValueArray arguments, Ucefinterfaces::_di_ICefv8Value &retval, Uceftypes::ustring &exception);
public:
__fastcall virtual TCefv8HandlerOwn();
public:
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCefv8HandlerOwn(unsigned size, bool owned) : Ucefbaserefcounted::TCefBaseRefCountedOwn(size, owned) { }
/* TCefBaseRefCountedOwn.Destroy */ inline __fastcall virtual ~TCefv8HandlerOwn() { }
private:
void *__ICefv8Handler; // Ucefinterfaces::ICefv8Handler
public:
#if defined(MANAGED_INTERFACE_OPERATORS)
// {F94CDC60-FDCB-422D-96D5-D2A775BD5D73}
operator Ucefinterfaces::_di_ICefv8Handler()
{
Ucefinterfaces::_di_ICefv8Handler intf;
this->GetInterface(intf);
return intf;
}
#else
operator Ucefinterfaces::ICefv8Handler*(void) { return (Ucefinterfaces::ICefv8Handler*)&__ICefv8Handler; }
#endif
};
#pragma pack(pop)
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCefCustomUserData : public Ucefbaserefcounted::TCefBaseRefCountedOwn
{
typedef Ucefbaserefcounted::TCefBaseRefCountedOwn inherited;
protected:
void *FUserDataType;
void *FUserData;
void * __fastcall GetUserDataType();
void * __fastcall GetUserData();
public:
__fastcall TCefCustomUserData(void * aUserDataType, void * aUserData);
__fastcall virtual ~TCefCustomUserData();
__classmethod Ucefinterfaces::_di_ICefCustomUserData __fastcall UnWrap(void * data);
public:
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCefCustomUserData(unsigned size, bool owned) : Ucefbaserefcounted::TCefBaseRefCountedOwn(size, owned) { }
private:
void *__ICefCustomUserData; // Ucefinterfaces::ICefCustomUserData
public:
#if defined(MANAGED_INTERFACE_OPERATORS)
// {BEC09DE3-AB0A-4F5E-8461-5F9F4520FDEF}
operator Ucefinterfaces::_di_ICefCustomUserData()
{
Ucefinterfaces::_di_ICefCustomUserData intf;
this->GetInterface(intf);
return intf;
}
#else
operator Ucefinterfaces::ICefCustomUserData*(void) { return (Ucefinterfaces::ICefCustomUserData*)&__ICefCustomUserData; }
#endif
};
#pragma pack(pop)
class PASCALIMPLEMENTATION TCefRTTIExtension : public TCefv8HandlerOwn
{
typedef TCefv8HandlerOwn inherited;
protected:
System::Rtti::TValue FValue;
System::Rtti::TRttiContext FCtx;
bool FSyncMainThread;
bool __fastcall GetValue(System::Typinfo::PTypeInfo pi, const Ucefinterfaces::_di_ICefv8Value v, System::Rtti::TValue &ret);
bool __fastcall SetValue(const System::Rtti::TValue &v, Ucefinterfaces::_di_ICefv8Value &ret);
bool __fastcall HandleProperties(const Uceftypes::ustring name, const Ucefinterfaces::TCefv8ValueArray arguments, Ucefinterfaces::_di_ICefv8Value &retval);
virtual bool __fastcall Execute(const Uceftypes::ustring name, const Ucefinterfaces::_di_ICefv8Value object_, const Ucefinterfaces::TCefv8ValueArray arguments, Ucefinterfaces::_di_ICefv8Value &retval, Uceftypes::ustring &exception);
public:
__fastcall TCefRTTIExtension(const System::Rtti::TValue &value, bool SyncMainThread);
__fastcall virtual ~TCefRTTIExtension();
__classmethod bool __fastcall Register(const Uceftypes::ustring name, const System::Rtti::TValue &value, bool SyncMainThread = false);
public:
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCefRTTIExtension(unsigned size, bool owned) : TCefv8HandlerOwn(size, owned) { }
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Ucefv8handler */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFV8HANDLER)
using namespace Ucefv8handler;
#endif
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // uCEFv8HandlerHPP