You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2026-05-16 08:38:08 +02:00
34 lines
559 B
ObjectPascal
34 lines
559 B
ObjectPascal
unit uCEFRegistration;
|
|
|
|
{$IFDEF FPC}
|
|
{$MODE OBJFPC}{$H+}
|
|
{$ENDIF}
|
|
|
|
{$I cef.inc}
|
|
|
|
{$IFNDEF TARGET_64BITS}{$ALIGN ON}{$ENDIF}
|
|
{$MINENUMSIZE 4}
|
|
|
|
interface
|
|
|
|
uses
|
|
uCEFBaseRefCounted, uCEFInterfaces;
|
|
|
|
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.
|