89 lines
3.6 KiB
C++
89 lines
3.6 KiB
C++
// CodeGear C++Builder
|
|
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
|
|
// All rights reserved
|
|
|
|
// (DO NOT EDIT: machine generated header) 'uCEFChromiumWindow.pas' rev: 37.00 (Windows)
|
|
|
|
#ifndef uCEFChromiumWindowHPP
|
|
#define uCEFChromiumWindowHPP
|
|
|
|
#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 <Winapi.Messages.hpp>
|
|
#include <System.Classes.hpp>
|
|
#include <Vcl.Controls.hpp>
|
|
#include <uCEFWindowParent.hpp>
|
|
#include <uCEFChromium.hpp>
|
|
#include <uCEFInterfaces.hpp>
|
|
#include <uCEFConstants.hpp>
|
|
#include <uCEFTypes.hpp>
|
|
#include <uCEFWinControl.hpp>
|
|
#include <uCEFLinkedWinControlBase.hpp>
|
|
|
|
//-- user supplied -----------------------------------------------------------
|
|
|
|
namespace Ucefchromiumwindow
|
|
{
|
|
//-- forward type declarations -----------------------------------------------
|
|
class DELPHICLASS TChromiumWindow;
|
|
//-- type declarations -------------------------------------------------------
|
|
class PASCALIMPLEMENTATION TChromiumWindow : public Uceflinkedwincontrolbase::TCEFLinkedWinControlBase
|
|
{
|
|
typedef Uceflinkedwincontrolbase::TCEFLinkedWinControlBase inherited;
|
|
|
|
protected:
|
|
Ucefchromium::TChromium* FChromium;
|
|
System::Classes::TNotifyEvent FOnClose;
|
|
System::Classes::TNotifyEvent FOnBeforeClose;
|
|
System::Classes::TNotifyEvent FOnAfterCreated;
|
|
virtual Ucefchromium::TChromium* __fastcall GetChromium();
|
|
bool __fastcall GetBrowserInitialized();
|
|
MESSAGE void __fastcall OnCloseMsg(Winapi::Messages::TMessage &aMessage);
|
|
MESSAGE void __fastcall OnAfterCreatedMsg(Winapi::Messages::TMessage &aMessage);
|
|
void __fastcall WebBrowser_OnClose(System::TObject* Sender, const Ucefinterfaces::_di_ICefBrowser browser, Uceftypes::TCefCloseBrowserAction &aAction);
|
|
void __fastcall WebBrowser_OnBeforeClose(System::TObject* Sender, const Ucefinterfaces::_di_ICefBrowser browser);
|
|
void __fastcall WebBrowser_OnAfterCreated(System::TObject* Sender, const Ucefinterfaces::_di_ICefBrowser browser);
|
|
DYNAMIC void __fastcall DoEnter();
|
|
DYNAMIC void __fastcall DoExit();
|
|
|
|
public:
|
|
__fastcall virtual TChromiumWindow(System::Classes::TComponent* AOwner);
|
|
virtual void __fastcall AfterConstruction();
|
|
bool __fastcall CreateBrowser();
|
|
void __fastcall CloseBrowser(bool aForceClose);
|
|
void __fastcall LoadURL(const Uceftypes::ustring aURL);
|
|
void __fastcall NotifyMoveOrResizeStarted();
|
|
__property Ucefchromium::TChromium* ChromiumBrowser = {read=GetChromium};
|
|
__property bool Initialized = {read=GetBrowserInitialized, nodefault};
|
|
|
|
__published:
|
|
__property System::Classes::TNotifyEvent OnClose = {read=FOnClose, write=FOnClose};
|
|
__property System::Classes::TNotifyEvent OnBeforeClose = {read=FOnBeforeClose, write=FOnBeforeClose};
|
|
__property System::Classes::TNotifyEvent OnAfterCreated = {read=FOnAfterCreated, write=FOnAfterCreated};
|
|
public:
|
|
/* TWinControl.CreateParented */ inline __fastcall TChromiumWindow(HWND ParentWindow) : Uceflinkedwincontrolbase::TCEFLinkedWinControlBase(ParentWindow) { }
|
|
/* TWinControl.Destroy */ inline __fastcall virtual ~TChromiumWindow() { }
|
|
|
|
};
|
|
|
|
|
|
//-- var, const, procedure ---------------------------------------------------
|
|
} /* namespace Ucefchromiumwindow */
|
|
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFCHROMIUMWINDOW)
|
|
using namespace Ucefchromiumwindow;
|
|
#endif
|
|
#pragma pack(pop)
|
|
#pragma option pop
|
|
|
|
#pragma delphiheader end.
|
|
//-- end unit ----------------------------------------------------------------
|
|
#endif // uCEFChromiumWindowHPP
|