101 lines
3.7 KiB
C++
101 lines
3.7 KiB
C++
// CodeGear C++Builder
|
|
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
|
|
// All rights reserved
|
|
|
|
// (DO NOT EDIT: machine generated header) 'uCEFMediaObserver.pas' rev: 37.00 (Windows)
|
|
|
|
#ifndef uCEFMediaObserverHPP
|
|
#define uCEFMediaObserverHPP
|
|
|
|
#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 Ucefmediaobserver
|
|
{
|
|
//-- forward type declarations -----------------------------------------------
|
|
class DELPHICLASS TCefMediaObserverOwn;
|
|
class DELPHICLASS TCustomMediaObserver;
|
|
//-- type declarations -------------------------------------------------------
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCefMediaObserverOwn : public Ucefbaserefcounted::TCefBaseRefCountedOwn
|
|
{
|
|
typedef Ucefbaserefcounted::TCefBaseRefCountedOwn inherited;
|
|
|
|
protected:
|
|
virtual void __fastcall OnSinks(const Ucefinterfaces::TCefMediaSinkArray sinks);
|
|
virtual void __fastcall OnRoutes(const Ucefinterfaces::TCefMediaRouteArray routes);
|
|
virtual void __fastcall OnRouteStateChanged(const Ucefinterfaces::_di_ICefMediaRoute route, Uceftypes::TCefMediaRouteConnectionState state);
|
|
virtual void __fastcall OnRouteMessageReceived(const Ucefinterfaces::_di_ICefMediaRoute route, const Uceftypes::ustring message_);
|
|
|
|
public:
|
|
__fastcall virtual TCefMediaObserverOwn();
|
|
public:
|
|
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCefMediaObserverOwn(unsigned size, bool owned) : Ucefbaserefcounted::TCefBaseRefCountedOwn(size, owned) { }
|
|
/* TCefBaseRefCountedOwn.Destroy */ inline __fastcall virtual ~TCefMediaObserverOwn() { }
|
|
|
|
private:
|
|
void *__ICefMediaObserver; // Ucefinterfaces::ICefMediaObserver
|
|
|
|
public:
|
|
#if defined(MANAGED_INTERFACE_OPERATORS)
|
|
// {0B27C8D1-63E3-4F69-939F-DCAD518654A3}
|
|
operator Ucefinterfaces::_di_ICefMediaObserver()
|
|
{
|
|
Ucefinterfaces::_di_ICefMediaObserver intf;
|
|
this->GetInterface(intf);
|
|
return intf;
|
|
}
|
|
#else
|
|
operator Ucefinterfaces::ICefMediaObserver*(void) { return (Ucefinterfaces::ICefMediaObserver*)&__ICefMediaObserver; }
|
|
#endif
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCustomMediaObserver : public TCefMediaObserverOwn
|
|
{
|
|
typedef TCefMediaObserverOwn inherited;
|
|
|
|
protected:
|
|
void *FEvents;
|
|
virtual void __fastcall OnSinks(const Ucefinterfaces::TCefMediaSinkArray sinks);
|
|
virtual void __fastcall OnRoutes(const Ucefinterfaces::TCefMediaRouteArray routes);
|
|
virtual void __fastcall OnRouteStateChanged(const Ucefinterfaces::_di_ICefMediaRoute route, Uceftypes::TCefMediaRouteConnectionState state);
|
|
virtual void __fastcall OnRouteMessageReceived(const Ucefinterfaces::_di_ICefMediaRoute route, const Uceftypes::ustring message_);
|
|
|
|
public:
|
|
__fastcall TCustomMediaObserver(const Ucefinterfaces::_di_IChromiumEvents events);
|
|
__fastcall virtual ~TCustomMediaObserver();
|
|
public:
|
|
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCustomMediaObserver(unsigned size, bool owned) : TCefMediaObserverOwn(size, owned) { }
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
//-- var, const, procedure ---------------------------------------------------
|
|
} /* namespace Ucefmediaobserver */
|
|
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFMEDIAOBSERVER)
|
|
using namespace Ucefmediaobserver;
|
|
#endif
|
|
#pragma pack(pop)
|
|
#pragma option pop
|
|
|
|
#pragma delphiheader end.
|
|
//-- end unit ----------------------------------------------------------------
|
|
#endif // uCEFMediaObserverHPP
|