1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2024-11-24 08:02:15 +02:00
CEF4Delphi/source/uCEFRegistration.pas

34 lines
570 B
ObjectPascal
Raw Normal View History

unit uCEFRegistration;
{$IFDEF FPC}
{$MODE OBJFPC}{$H+}
{$ENDIF}
{$I cef.inc}
{$IFNDEF TARGET_64BITS}{$ALIGN ON}{$ENDIF}
{$MINENUMSIZE 4}
interface
uses
uCEFBaseRefCounted, uCEFInterfaces, uCEFTypes;
type
TCefRegistrationRef = class(TCefBaseRefCountedRef, ICefRegistration)
public
class function UnWrap(data: Pointer): ICefRegistration;
end;
implementation
class function TCefRegistrationRef.UnWrap(data: Pointer): ICefRegistration;
begin
if (data <> nil) then
Result := Create(data) as ICefRegistration
else
Result := nil;
end;
end.