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

107 lines
5.3 KiB
C++

// CodeGear C++Builder
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'uCEFLifeSpanHandler.pas' rev: 37.00 (Windows)
#ifndef uCEFLifeSpanHandlerHPP
#define uCEFLifeSpanHandlerHPP
#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 <uCEFBaseRefCounted.hpp>
#include <uCEFInterfaces.hpp>
#include <uCEFTypes.hpp>
//-- user supplied -----------------------------------------------------------
namespace Uceflifespanhandler
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TCefLifeSpanHandlerOwn;
class DELPHICLASS TCustomLifeSpanHandler;
//-- type declarations -------------------------------------------------------
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCefLifeSpanHandlerOwn : public Ucefbaserefcounted::TCefBaseRefCountedOwn
{
typedef Ucefbaserefcounted::TCefBaseRefCountedOwn inherited;
protected:
virtual bool __fastcall OnBeforePopup(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, int popup_id, const Uceftypes::ustring targetUrl, const Uceftypes::ustring targetFrameName, Uceftypes::TCefWindowOpenDisposition targetDisposition, bool userGesture, const Uceftypes::TCefPopupFeatures &popupFeatures, Uceftypes::TCefWindowInfo &windowInfo, Ucefinterfaces::_di_ICefClient &client, Uceftypes::TCefBrowserSettings &settings, Ucefinterfaces::_di_ICefDictionaryValue &extra_info, bool &noJavascriptAccess);
virtual void __fastcall OnBeforePopupAborted(const Ucefinterfaces::_di_ICefBrowser browser, int popup_id);
virtual void __fastcall OnBeforeDevToolsPopup(const Ucefinterfaces::_di_ICefBrowser browser, Uceftypes::TCefWindowInfo &windowInfo, Ucefinterfaces::_di_ICefClient &client, Uceftypes::TCefBrowserSettings &settings, Ucefinterfaces::_di_ICefDictionaryValue &extra_info, bool &use_default_window);
virtual void __fastcall OnAfterCreated(const Ucefinterfaces::_di_ICefBrowser browser);
virtual bool __fastcall DoClose(const Ucefinterfaces::_di_ICefBrowser browser);
virtual void __fastcall OnBeforeClose(const Ucefinterfaces::_di_ICefBrowser browser);
virtual void __fastcall RemoveReferences();
public:
__fastcall virtual TCefLifeSpanHandlerOwn();
public:
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCefLifeSpanHandlerOwn(unsigned size, bool owned) : Ucefbaserefcounted::TCefBaseRefCountedOwn(size, owned) { }
/* TCefBaseRefCountedOwn.Destroy */ inline __fastcall virtual ~TCefLifeSpanHandlerOwn() { }
private:
void *__ICefLifeSpanHandler; // Ucefinterfaces::ICefLifeSpanHandler
public:
#if defined(MANAGED_INTERFACE_OPERATORS)
// {0A3EB782-A319-4C35-9B46-09B2834D7169}
operator Ucefinterfaces::_di_ICefLifeSpanHandler()
{
Ucefinterfaces::_di_ICefLifeSpanHandler intf;
this->GetInterface(intf);
return intf;
}
#else
operator Ucefinterfaces::ICefLifeSpanHandler*(void) { return (Ucefinterfaces::ICefLifeSpanHandler*)&__ICefLifeSpanHandler; }
#endif
};
#pragma pack(pop)
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCustomLifeSpanHandler : public TCefLifeSpanHandlerOwn
{
typedef TCefLifeSpanHandlerOwn inherited;
protected:
void *FEvents;
virtual bool __fastcall OnBeforePopup(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, int popup_id, const Uceftypes::ustring targetUrl, const Uceftypes::ustring targetFrameName, Uceftypes::TCefWindowOpenDisposition targetDisposition, bool userGesture, const Uceftypes::TCefPopupFeatures &popupFeatures, Uceftypes::TCefWindowInfo &windowInfo, Ucefinterfaces::_di_ICefClient &client, Uceftypes::TCefBrowserSettings &settings, Ucefinterfaces::_di_ICefDictionaryValue &extra_info, bool &noJavascriptAccess);
virtual void __fastcall OnBeforePopupAborted(const Ucefinterfaces::_di_ICefBrowser browser, int popup_id);
virtual void __fastcall OnBeforeDevToolsPopup(const Ucefinterfaces::_di_ICefBrowser browser, Uceftypes::TCefWindowInfo &windowInfo, Ucefinterfaces::_di_ICefClient &client, Uceftypes::TCefBrowserSettings &settings, Ucefinterfaces::_di_ICefDictionaryValue &extra_info, bool &use_default_window);
virtual void __fastcall OnAfterCreated(const Ucefinterfaces::_di_ICefBrowser browser);
virtual bool __fastcall DoClose(const Ucefinterfaces::_di_ICefBrowser browser);
virtual void __fastcall OnBeforeClose(const Ucefinterfaces::_di_ICefBrowser browser);
virtual void __fastcall RemoveReferences();
public:
__fastcall virtual TCustomLifeSpanHandler(const Ucefinterfaces::_di_IChromiumEvents events);
__fastcall virtual ~TCustomLifeSpanHandler();
public:
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCustomLifeSpanHandler(unsigned size, bool owned) : TCefLifeSpanHandlerOwn(size, owned) { }
};
#pragma pack(pop)
//-- var, const, procedure ---------------------------------------------------
} /* namespace Uceflifespanhandler */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFLIFESPANHANDLER)
using namespace Uceflifespanhandler;
#endif
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // uCEFLifeSpanHandlerHPP