You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-12-03 21:44:45 +02:00
Complete inherited commands for backward compatibility
This commit is contained in:
@@ -140,14 +140,15 @@ begin
|
||||
FEvent.doOnCancelGeolocationPermission(browser, requestId);
|
||||
end;
|
||||
|
||||
function TCustomGeolocationHandler.OnRequestGeolocationPermission(
|
||||
const browser: ICefBrowser; const requestingUrl: ustring; requestId: Integer;
|
||||
const callback: ICefGeolocationCallback): Boolean;
|
||||
function TCustomGeolocationHandler.OnRequestGeolocationPermission(const browser : ICefBrowser;
|
||||
const requestingUrl : ustring;
|
||||
requestId : Integer;
|
||||
const callback : ICefGeolocationCallback): Boolean;
|
||||
begin
|
||||
if (FEvent <> nil) then
|
||||
Result := FEvent.doOnRequestGeolocationPermission(browser, requestingUrl, requestId, callback)
|
||||
else
|
||||
Result := inherited;
|
||||
Result := inherited OnRequestGeolocationPermission(browser, requestingUrl, requestId, callback);
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
Reference in New Issue
Block a user