105 lines
4.1 KiB
C++
105 lines
4.1 KiB
C++
// CodeGear C++Builder
|
|
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
|
|
// All rights reserved
|
|
|
|
// (DO NOT EDIT: machine generated header) 'uCEFCommandHandler.pas' rev: 37.00 (Windows)
|
|
|
|
#ifndef uCEFCommandHandlerHPP
|
|
#define uCEFCommandHandlerHPP
|
|
|
|
#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 Ucefcommandhandler
|
|
{
|
|
//-- forward type declarations -----------------------------------------------
|
|
class DELPHICLASS TCefCommandHandlerOwn;
|
|
class DELPHICLASS TCustomCommandHandler;
|
|
//-- type declarations -------------------------------------------------------
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCefCommandHandlerOwn : public Ucefbaserefcounted::TCefBaseRefCountedOwn
|
|
{
|
|
typedef Ucefbaserefcounted::TCefBaseRefCountedOwn inherited;
|
|
|
|
protected:
|
|
virtual bool __fastcall OnChromeCommand(const Ucefinterfaces::_di_ICefBrowser browser, int command_id, Uceftypes::TCefWindowOpenDisposition disposition);
|
|
virtual bool __fastcall OnIsChromeAppMenuItemVisible(const Ucefinterfaces::_di_ICefBrowser browser, int command_id);
|
|
virtual bool __fastcall OnIsChromeAppMenuItemEnabled(const Ucefinterfaces::_di_ICefBrowser browser, int command_id);
|
|
virtual bool __fastcall OnIsChromePageActionIconVisible(Uceftypes::TCefChromePageActionIconType icon_type);
|
|
virtual bool __fastcall OnIsChromeToolbarButtonVisible(Uceftypes::TCefChromeToolbarButtonType button_type);
|
|
virtual void __fastcall RemoveReferences();
|
|
|
|
public:
|
|
__fastcall virtual TCefCommandHandlerOwn();
|
|
public:
|
|
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCefCommandHandlerOwn(unsigned size, bool owned) : Ucefbaserefcounted::TCefBaseRefCountedOwn(size, owned) { }
|
|
/* TCefBaseRefCountedOwn.Destroy */ inline __fastcall virtual ~TCefCommandHandlerOwn() { }
|
|
|
|
private:
|
|
void *__ICefCommandHandler; // Ucefinterfaces::ICefCommandHandler
|
|
|
|
public:
|
|
#if defined(MANAGED_INTERFACE_OPERATORS)
|
|
// {7C931B93-53DC-4607-AABB-2CB4AEF7FB96}
|
|
operator Ucefinterfaces::_di_ICefCommandHandler()
|
|
{
|
|
Ucefinterfaces::_di_ICefCommandHandler intf;
|
|
this->GetInterface(intf);
|
|
return intf;
|
|
}
|
|
#else
|
|
operator Ucefinterfaces::ICefCommandHandler*(void) { return (Ucefinterfaces::ICefCommandHandler*)&__ICefCommandHandler; }
|
|
#endif
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCustomCommandHandler : public TCefCommandHandlerOwn
|
|
{
|
|
typedef TCefCommandHandlerOwn inherited;
|
|
|
|
protected:
|
|
void *FEvents;
|
|
virtual bool __fastcall OnChromeCommand(const Ucefinterfaces::_di_ICefBrowser browser, int command_id, Uceftypes::TCefWindowOpenDisposition disposition);
|
|
virtual bool __fastcall OnIsChromeAppMenuItemVisible(const Ucefinterfaces::_di_ICefBrowser browser, int command_id);
|
|
virtual bool __fastcall OnIsChromeAppMenuItemEnabled(const Ucefinterfaces::_di_ICefBrowser browser, int command_id);
|
|
virtual bool __fastcall OnIsChromePageActionIconVisible(Uceftypes::TCefChromePageActionIconType icon_type);
|
|
virtual bool __fastcall OnIsChromeToolbarButtonVisible(Uceftypes::TCefChromeToolbarButtonType button_type);
|
|
virtual void __fastcall RemoveReferences();
|
|
|
|
public:
|
|
__fastcall virtual TCustomCommandHandler(const Ucefinterfaces::_di_IChromiumEvents events);
|
|
__fastcall virtual ~TCustomCommandHandler();
|
|
public:
|
|
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCustomCommandHandler(unsigned size, bool owned) : TCefCommandHandlerOwn(size, owned) { }
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
//-- var, const, procedure ---------------------------------------------------
|
|
} /* namespace Ucefcommandhandler */
|
|
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFCOMMANDHANDLER)
|
|
using namespace Ucefcommandhandler;
|
|
#endif
|
|
#pragma pack(pop)
|
|
#pragma option pop
|
|
|
|
#pragma delphiheader end.
|
|
//-- end unit ----------------------------------------------------------------
|
|
#endif // uCEFCommandHandlerHPP
|