103 lines
4.4 KiB
C++
103 lines
4.4 KiB
C++
// CodeGear C++Builder
|
|
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
|
|
// All rights reserved
|
|
|
|
// (DO NOT EDIT: machine generated header) 'uCEFJsDialogHandler.pas' rev: 37.00 (Windows)
|
|
|
|
#ifndef uCEFJsDialogHandlerHPP
|
|
#define uCEFJsDialogHandlerHPP
|
|
|
|
#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 Ucefjsdialoghandler
|
|
{
|
|
//-- forward type declarations -----------------------------------------------
|
|
class DELPHICLASS TCefJsDialogHandlerOwn;
|
|
class DELPHICLASS TCustomJsDialogHandler;
|
|
//-- type declarations -------------------------------------------------------
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCefJsDialogHandlerOwn : public Ucefbaserefcounted::TCefBaseRefCountedOwn
|
|
{
|
|
typedef Ucefbaserefcounted::TCefBaseRefCountedOwn inherited;
|
|
|
|
protected:
|
|
virtual bool __fastcall OnJsdialog(const Ucefinterfaces::_di_ICefBrowser browser, const Uceftypes::ustring originUrl, Uceftypes::TCefJsDialogType dialogType, const Uceftypes::ustring messageText, const Uceftypes::ustring defaultPromptText, const Ucefinterfaces::_di_ICefJsDialogCallback callback, /* out */ bool &suppressMessage);
|
|
virtual bool __fastcall OnBeforeUnloadDialog(const Ucefinterfaces::_di_ICefBrowser browser, const Uceftypes::ustring messageText, bool isReload, const Ucefinterfaces::_di_ICefJsDialogCallback callback);
|
|
virtual void __fastcall OnResetDialogState(const Ucefinterfaces::_di_ICefBrowser browser);
|
|
virtual void __fastcall OnDialogClosed(const Ucefinterfaces::_di_ICefBrowser browser);
|
|
virtual void __fastcall RemoveReferences();
|
|
|
|
public:
|
|
__fastcall virtual TCefJsDialogHandlerOwn();
|
|
public:
|
|
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCefJsDialogHandlerOwn(unsigned size, bool owned) : Ucefbaserefcounted::TCefBaseRefCountedOwn(size, owned) { }
|
|
/* TCefBaseRefCountedOwn.Destroy */ inline __fastcall virtual ~TCefJsDialogHandlerOwn() { }
|
|
|
|
private:
|
|
void *__ICefJsDialogHandler; // Ucefinterfaces::ICefJsDialogHandler
|
|
|
|
public:
|
|
#if defined(MANAGED_INTERFACE_OPERATORS)
|
|
// {64E18F86-DAC5-4ED1-8589-44DE45B9DB56}
|
|
operator Ucefinterfaces::_di_ICefJsDialogHandler()
|
|
{
|
|
Ucefinterfaces::_di_ICefJsDialogHandler intf;
|
|
this->GetInterface(intf);
|
|
return intf;
|
|
}
|
|
#else
|
|
operator Ucefinterfaces::ICefJsDialogHandler*(void) { return (Ucefinterfaces::ICefJsDialogHandler*)&__ICefJsDialogHandler; }
|
|
#endif
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCustomJsDialogHandler : public TCefJsDialogHandlerOwn
|
|
{
|
|
typedef TCefJsDialogHandlerOwn inherited;
|
|
|
|
protected:
|
|
void *FEvents;
|
|
virtual bool __fastcall OnJsdialog(const Ucefinterfaces::_di_ICefBrowser browser, const Uceftypes::ustring originUrl, Uceftypes::TCefJsDialogType dialogType, const Uceftypes::ustring messageText, const Uceftypes::ustring defaultPromptText, const Ucefinterfaces::_di_ICefJsDialogCallback callback, /* out */ bool &suppressMessage);
|
|
virtual bool __fastcall OnBeforeUnloadDialog(const Ucefinterfaces::_di_ICefBrowser browser, const Uceftypes::ustring messageText, bool isReload, const Ucefinterfaces::_di_ICefJsDialogCallback callback);
|
|
virtual void __fastcall OnResetDialogState(const Ucefinterfaces::_di_ICefBrowser browser);
|
|
virtual void __fastcall OnDialogClosed(const Ucefinterfaces::_di_ICefBrowser browser);
|
|
virtual void __fastcall RemoveReferences();
|
|
|
|
public:
|
|
__fastcall virtual TCustomJsDialogHandler(const Ucefinterfaces::_di_IChromiumEvents events);
|
|
__fastcall virtual ~TCustomJsDialogHandler();
|
|
public:
|
|
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCustomJsDialogHandler(unsigned size, bool owned) : TCefJsDialogHandlerOwn(size, owned) { }
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
//-- var, const, procedure ---------------------------------------------------
|
|
} /* namespace Ucefjsdialoghandler */
|
|
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFJSDIALOGHANDLER)
|
|
using namespace Ucefjsdialoghandler;
|
|
#endif
|
|
#pragma pack(pop)
|
|
#pragma option pop
|
|
|
|
#pragma delphiheader end.
|
|
//-- end unit ----------------------------------------------------------------
|
|
#endif // uCEFJsDialogHandlerHPP
|