1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-11-23 21:34:53 +02:00

Update to CEF 92.0.20

This commit is contained in:
Salvador Díaz Fau
2021-07-29 16:20:34 +02:00
parent 8bfcf813e2
commit 8d789edbdf
16 changed files with 428 additions and 27 deletions

View File

@@ -59,6 +59,7 @@ uses
type
TCefBrowserRef = class(TCefBaseRefCountedRef, ICefBrowser)
protected
function IsValid: boolean;
function GetHost: ICefBrowserHost;
function CanGoBack: Boolean;
procedure GoBack;
@@ -164,6 +165,11 @@ uses
// TCefBrowserRef
function TCefBrowserRef.IsValid: boolean;
begin
Result := PCefBrowser(FData)^.is_valid(PCefBrowser(FData)) <> 0;
end;
function TCefBrowserRef.GetHost: ICefBrowserHost;
begin
Result := TCefBrowserHostRef.UnWrap(PCefBrowser(FData)^.get_host(PCefBrowser(FData)));