You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Complete inherited commands for backward compatibility
This commit is contained in:
@@ -135,12 +135,18 @@ begin
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
function TCustomDialogHandler.OnFileDialog(const browser: ICefBrowser; mode: TCefFileDialogMode; const title, defaultFilePath: ustring; acceptFilters: TStrings; selectedAcceptFilter: Integer; const callback: ICefFileDialogCallback): Boolean;
|
||||
function TCustomDialogHandler.OnFileDialog(const browser : ICefBrowser;
|
||||
mode : TCefFileDialogMode;
|
||||
const title : ustring;
|
||||
const defaultFilePath : ustring;
|
||||
acceptFilters : TStrings;
|
||||
selectedAcceptFilter : Integer;
|
||||
const callback : ICefFileDialogCallback): Boolean;
|
||||
begin
|
||||
if (FEvent <> nil) then
|
||||
Result := FEvent.doOnFileDialog(browser, mode, title, defaultFilePath, acceptFilters, selectedAcceptFilter, callback)
|
||||
else
|
||||
Result := inherited;
|
||||
Result := inherited OnFileDialog(browser, mode, title, defaultFilePath, acceptFilters, selectedAcceptFilter, callback);
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
Reference in New Issue
Block a user