Initial commit

This commit is contained in:
2026-06-12 23:18:12 +08:00
commit 424bde1b02
249 changed files with 40338 additions and 0 deletions
+162
View File
@@ -0,0 +1,162 @@
// CodeGear C++Builder
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'uCEFViewDelegate.pas' rev: 37.00 (Windows)
#ifndef uCEFViewDelegateHPP
#define uCEFViewDelegateHPP
#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 Ucefviewdelegate
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TCefViewDelegateRef;
class DELPHICLASS TCefViewDelegateOwn;
class DELPHICLASS TCustomViewDelegate;
//-- type declarations -------------------------------------------------------
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCefViewDelegateRef : public Ucefbaserefcounted::TCefBaseRefCountedRef
{
typedef Ucefbaserefcounted::TCefBaseRefCountedRef inherited;
protected:
void __fastcall OnGetPreferredSize(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefSize &aResult);
void __fastcall OnGetMinimumSize(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefSize &aResult);
void __fastcall OnGetMaximumSize(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefSize &aResult);
void __fastcall OnGetHeightForWidth(const Ucefinterfaces::_di_ICefView view, int width, int &aResult);
void __fastcall OnParentViewChanged(const Ucefinterfaces::_di_ICefView view, bool added, const Ucefinterfaces::_di_ICefView parent);
void __fastcall OnChildViewChanged(const Ucefinterfaces::_di_ICefView view, bool added, const Ucefinterfaces::_di_ICefView child);
void __fastcall OnWindowChanged(const Ucefinterfaces::_di_ICefView view, bool added);
void __fastcall OnLayoutChanged(const Ucefinterfaces::_di_ICefView view, const Uceftypes::TCefRect &new_bounds);
void __fastcall OnFocus(const Ucefinterfaces::_di_ICefView view);
void __fastcall OnBlur(const Ucefinterfaces::_di_ICefView view);
void __fastcall OnThemeChanged(const Ucefinterfaces::_di_ICefView view);
public:
__classmethod Ucefinterfaces::_di_ICefViewDelegate __fastcall UnWrap(void * data);
public:
/* TCefBaseRefCountedRef.Create */ inline __fastcall virtual TCefViewDelegateRef(void * data) : Ucefbaserefcounted::TCefBaseRefCountedRef(data) { }
/* TCefBaseRefCountedRef.Destroy */ inline __fastcall virtual ~TCefViewDelegateRef() { }
private:
void *__ICefViewDelegate; // Ucefinterfaces::ICefViewDelegate
public:
#if defined(MANAGED_INTERFACE_OPERATORS)
// {5F900206-B969-4E51-B56C-0FF38D749C72}
operator Ucefinterfaces::_di_ICefViewDelegate()
{
Ucefinterfaces::_di_ICefViewDelegate intf;
this->GetInterface(intf);
return intf;
}
#else
operator Ucefinterfaces::ICefViewDelegate*(void) { return (Ucefinterfaces::ICefViewDelegate*)&__ICefViewDelegate; }
#endif
};
#pragma pack(pop)
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCefViewDelegateOwn : public Ucefbaserefcounted::TCefBaseRefCountedOwn
{
typedef Ucefbaserefcounted::TCefBaseRefCountedOwn inherited;
protected:
virtual void __fastcall OnGetPreferredSize(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefSize &aResult);
virtual void __fastcall OnGetMinimumSize(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefSize &aResult);
virtual void __fastcall OnGetMaximumSize(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefSize &aResult);
virtual void __fastcall OnGetHeightForWidth(const Ucefinterfaces::_di_ICefView view, int width, int &aResult);
virtual void __fastcall OnParentViewChanged(const Ucefinterfaces::_di_ICefView view, bool added, const Ucefinterfaces::_di_ICefView parent);
virtual void __fastcall OnChildViewChanged(const Ucefinterfaces::_di_ICefView view, bool added, const Ucefinterfaces::_di_ICefView child);
virtual void __fastcall OnWindowChanged(const Ucefinterfaces::_di_ICefView view, bool added);
virtual void __fastcall OnLayoutChanged(const Ucefinterfaces::_di_ICefView view, const Uceftypes::TCefRect &new_bounds);
virtual void __fastcall OnFocus(const Ucefinterfaces::_di_ICefView view);
virtual void __fastcall OnBlur(const Ucefinterfaces::_di_ICefView view);
virtual void __fastcall OnThemeChanged(const Ucefinterfaces::_di_ICefView view);
virtual void __fastcall InitializeCEFMethods();
public:
__fastcall virtual TCefViewDelegateOwn();
public:
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCefViewDelegateOwn(unsigned size, bool owned) : Ucefbaserefcounted::TCefBaseRefCountedOwn(size, owned) { }
/* TCefBaseRefCountedOwn.Destroy */ inline __fastcall virtual ~TCefViewDelegateOwn() { }
private:
void *__ICefViewDelegate; // Ucefinterfaces::ICefViewDelegate
public:
#if defined(MANAGED_INTERFACE_OPERATORS)
// {5F900206-B969-4E51-B56C-0FF38D749C72}
operator Ucefinterfaces::_di_ICefViewDelegate()
{
Ucefinterfaces::_di_ICefViewDelegate intf;
this->GetInterface(intf);
return intf;
}
#else
operator Ucefinterfaces::ICefViewDelegate*(void) { return (Ucefinterfaces::ICefViewDelegate*)&__ICefViewDelegate; }
#endif
};
#pragma pack(pop)
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCustomViewDelegate : public TCefViewDelegateOwn
{
typedef TCefViewDelegateOwn inherited;
protected:
void *FEvents;
virtual void __fastcall OnGetPreferredSize(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefSize &aResult);
virtual void __fastcall OnGetMinimumSize(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefSize &aResult);
virtual void __fastcall OnGetMaximumSize(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefSize &aResult);
virtual void __fastcall OnGetHeightForWidth(const Ucefinterfaces::_di_ICefView view, int width, int &aResult);
virtual void __fastcall OnParentViewChanged(const Ucefinterfaces::_di_ICefView view, bool added, const Ucefinterfaces::_di_ICefView parent);
virtual void __fastcall OnChildViewChanged(const Ucefinterfaces::_di_ICefView view, bool added, const Ucefinterfaces::_di_ICefView child);
virtual void __fastcall OnWindowChanged(const Ucefinterfaces::_di_ICefView view, bool added);
virtual void __fastcall OnLayoutChanged(const Ucefinterfaces::_di_ICefView view, const Uceftypes::TCefRect &new_bounds);
virtual void __fastcall OnFocus(const Ucefinterfaces::_di_ICefView view);
virtual void __fastcall OnBlur(const Ucefinterfaces::_di_ICefView view);
virtual void __fastcall OnThemeChanged(const Ucefinterfaces::_di_ICefView view);
public:
__fastcall TCustomViewDelegate(const Ucefinterfaces::_di_ICefViewDelegateEvents events);
__fastcall virtual ~TCustomViewDelegate();
public:
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCustomViewDelegate(unsigned size, bool owned) : TCefViewDelegateOwn(size, owned) { }
};
#pragma pack(pop)
//-- var, const, procedure ---------------------------------------------------
} /* namespace Ucefviewdelegate */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFVIEWDELEGATE)
using namespace Ucefviewdelegate;
#endif
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // uCEFViewDelegateHPP