You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2026-04-23 01:13:01 +02:00
42 lines
757 B
ObjectPascal
42 lines
757 B
ObjectPascal
unit uCEFPrintJobCallback;
|
|
|
|
{$IFDEF FPC}
|
|
{$MODE OBJFPC}{$H+}
|
|
{$ENDIF}
|
|
|
|
{$I cef.inc}
|
|
|
|
{$IFNDEF TARGET_64BITS}{$ALIGN ON}{$ENDIF}
|
|
{$MINENUMSIZE 4}
|
|
|
|
interface
|
|
|
|
uses
|
|
uCEFBaseRefCounted, uCEFInterfaces, uCEFTypes;
|
|
|
|
type
|
|
TCefPrintJobCallbackRef = class(TCefBaseRefCountedRef, ICefPrintJobCallback)
|
|
protected
|
|
procedure cont;
|
|
|
|
public
|
|
class function UnWrap(data: Pointer): ICefPrintJobCallback;
|
|
end;
|
|
|
|
implementation
|
|
|
|
procedure TCefPrintJobCallbackRef.cont;
|
|
begin
|
|
PCefPrintJobCallback(FData)^.cont(PCefPrintJobCallback(FData));
|
|
end;
|
|
|
|
class function TCefPrintJobCallbackRef.UnWrap(data: Pointer): ICefPrintJobCallback;
|
|
begin
|
|
if (data <> nil) then
|
|
Result := Create(data) as ICefPrintJobCallback
|
|
else
|
|
Result := nil;
|
|
end;
|
|
|
|
end.
|