2017-03-16 20:09:42 +02:00
|
|
|
unit uCEFBaseScopedWrapper;
|
|
|
|
|
2018-05-12 14:50:54 +02:00
|
|
|
{$IFDEF FPC}
|
|
|
|
{$MODE OBJFPC}{$H+}
|
|
|
|
{$ENDIF}
|
|
|
|
|
2017-03-16 20:09:42 +02:00
|
|
|
{$I cef.inc}
|
|
|
|
|
2022-02-19 19:56:41 +02:00
|
|
|
{$IFNDEF TARGET_64BITS}{$ALIGN ON}{$ENDIF}
|
|
|
|
{$MINENUMSIZE 4}
|
|
|
|
|
2017-03-16 20:09:42 +02:00
|
|
|
interface
|
|
|
|
|
|
|
|
type
|
|
|
|
TCEFBaseScopedWrapperRef = class
|
|
|
|
protected
|
|
|
|
FData: Pointer;
|
|
|
|
|
|
|
|
public
|
|
|
|
constructor Create(data: Pointer); virtual;
|
|
|
|
function Wrap: Pointer;
|
|
|
|
end;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
constructor TCEFBaseScopedWrapperRef.Create(data: Pointer);
|
|
|
|
begin
|
|
|
|
inherited Create;
|
|
|
|
|
|
|
|
FData := data;
|
|
|
|
end;
|
|
|
|
|
|
|
|
function TCEFBaseScopedWrapperRef.Wrap: Pointer;
|
|
|
|
begin
|
|
|
|
Result := FData;
|
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|