You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-12 22:07:39 +02:00
Complete inherited commands for backward compatibility
This commit is contained in:
@ -173,14 +173,15 @@ begin
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
function TCustomJsDialogHandler.OnBeforeUnloadDialog(const browser: ICefBrowser;
|
||||
const messageText: ustring; isReload: Boolean;
|
||||
const callback: ICefJsDialogCallback): Boolean;
|
||||
function TCustomJsDialogHandler.OnBeforeUnloadDialog(const browser : ICefBrowser;
|
||||
const messageText : ustring;
|
||||
isReload : Boolean;
|
||||
const callback : ICefJsDialogCallback): Boolean;
|
||||
begin
|
||||
if (FEvent <> nil) then
|
||||
Result := FEvent.doOnBeforeUnloadDialog(browser, messageText, isReload, callback)
|
||||
else
|
||||
Result := inherited;
|
||||
Result := inherited OnBeforeUnloadDialog(browser, messageText, isReload, callback);
|
||||
end;
|
||||
|
||||
procedure TCustomJsDialogHandler.OnDialogClosed(const browser: ICefBrowser);
|
||||
@ -188,16 +189,18 @@ begin
|
||||
if (FEvent <> nil) then FEvent.doOnDialogClosed(browser);
|
||||
end;
|
||||
|
||||
function TCustomJsDialogHandler.OnJsdialog(const browser: ICefBrowser;
|
||||
const originUrl: ustring; dialogType: TCefJsDialogType;
|
||||
const messageText, defaultPromptText: ustring;
|
||||
const callback: ICefJsDialogCallback;
|
||||
out suppressMessage: Boolean): Boolean;
|
||||
function TCustomJsDialogHandler.OnJsdialog(const browser : ICefBrowser;
|
||||
const originUrl : ustring;
|
||||
dialogType : TCefJsDialogType;
|
||||
const messageText : ustring;
|
||||
const defaultPromptText : ustring;
|
||||
const callback : ICefJsDialogCallback;
|
||||
out suppressMessage : Boolean): Boolean;
|
||||
begin
|
||||
if (FEvent <> nil) then
|
||||
Result := FEvent.doOnJsdialog(browser, originUrl, dialogType, messageText, defaultPromptText, callback, suppressMessage)
|
||||
else
|
||||
Result := inherited;
|
||||
Result := inherited OnJsdialog(browser, originUrl, dialogType, messageText, defaultPromptText, callback, suppressMessage);
|
||||
end;
|
||||
|
||||
procedure TCustomJsDialogHandler.OnResetDialogState(const browser: ICefBrowser);
|
||||
|
Reference in New Issue
Block a user