You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-22 22:17:48 +02:00
FireMonkey support added
- New Delphi package called CEF4Delphi_FMX.dpk that includes VCL and FMX components. - New FMX comopnents : TFMXChromium, TFMXBufferPanel and TFMXWorkScheduler. - New FMX demo : FMXExternalPumpBrowser - Improved WorkScheduler for VCL too. - New GlobalCEFApp.DisableWebSecurity property.
This commit is contained in:
@ -73,12 +73,12 @@ type
|
||||
|
||||
TCefCustomDeleteCookiesCallback = class(TCefDeleteCookiesCallbackOwn)
|
||||
protected
|
||||
FChromiumBrowser : TObject;
|
||||
FChromiumBrowser : IChromiumEvents;
|
||||
|
||||
procedure OnComplete(numDeleted: Integer); override;
|
||||
|
||||
public
|
||||
constructor Create(const aChromiumBrowser : TObject); reintroduce;
|
||||
constructor Create(const aChromiumBrowser : IChromiumEvents); reintroduce;
|
||||
destructor Destroy; override;
|
||||
procedure InitializeVars; override;
|
||||
end;
|
||||
@ -86,7 +86,7 @@ type
|
||||
implementation
|
||||
|
||||
uses
|
||||
uCEFMiscFunctions, uCEFLibFunctions, uCEFChromium;
|
||||
uCEFMiscFunctions, uCEFLibFunctions;
|
||||
|
||||
procedure cef_delete_cookie_callback_on_complete(self: PCefDeleteCookiesCallback; num_deleted: Integer); stdcall;
|
||||
begin
|
||||
@ -130,7 +130,7 @@ end;
|
||||
|
||||
// TCefCustomDeleteCookiesCallback
|
||||
|
||||
constructor TCefCustomDeleteCookiesCallback.Create(const aChromiumBrowser : TObject);
|
||||
constructor TCefCustomDeleteCookiesCallback.Create(const aChromiumBrowser : IChromiumEvents);
|
||||
begin
|
||||
inherited Create;
|
||||
|
||||
@ -151,8 +151,7 @@ end;
|
||||
|
||||
procedure TCefCustomDeleteCookiesCallback.OnComplete(numDeleted: Integer);
|
||||
begin
|
||||
if (FChromiumBrowser <> nil) and (FChromiumBrowser is TChromium) then
|
||||
TChromium(FChromiumBrowser).Internal_CookiesDeleted(numDeleted);
|
||||
if (FChromiumBrowser <> nil) then FChromiumBrowser.doCookiesDeleted(numDeleted);
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Reference in New Issue
Block a user