mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2024-11-24 08:02:15 +02:00
Update to CEF 83.4.2
This commit is contained in:
parent
59178a54a9
commit
43e0c80431
@ -3,10 +3,10 @@ CEF4Delphi is an open source project created by Salvador Díaz Fau to embed Chro
|
||||
|
||||
CEF4Delphi is based on DCEF3, made by Henri Gourvest. The original license of DCEF3 still applies to CEF4Delphi. Read the license terms in the first lines of any *.pas file.
|
||||
|
||||
CEF4Delphi uses CEF 83.4.0 which includes Chromium 83.0.4103.106.
|
||||
CEF4Delphi uses CEF 83.4.2 which includes Chromium 83.0.4103.106.
|
||||
The CEF binaries used by CEF4Delphi are available for download at spotify :
|
||||
* [32 bits](http://opensource.spotify.com/cefbuilds/cef_binary_83.4.0%2Bgfd6631b%2Bchromium-83.0.4103.106_windows32.tar.bz2)
|
||||
* [64 bits](http://opensource.spotify.com/cefbuilds/cef_binary_83.4.0%2Bgfd6631b%2Bchromium-83.0.4103.106_windows64.tar.bz2)
|
||||
* [32 bits](http://opensource.spotify.com/cefbuilds/cef_binary_83.4.2%2Bgc8d4f85%2Bchromium-83.0.4103.106_windows32.tar.bz2)
|
||||
* [64 bits](http://opensource.spotify.com/cefbuilds/cef_binary_83.4.2%2Bgc8d4f85%2Bchromium-83.0.4103.106_windows64.tar.bz2)
|
||||
|
||||
|
||||
CEF4Delphi was developed and tested on Delphi 10.4 and it has been tested in Delphi 7, Delphi XE, Delphi 10, Delphi 10.2, Delphi 10.3 and Lazarus 2.0.8/FPC 3.0.4. CEF4Delphi includes VCL, FireMonkey (FMX) and Lazarus components.
|
||||
|
@ -476,7 +476,7 @@ procedure TDOMVisitorFrm.Chromium1ConsoleMessage(Sender: TObject;
|
||||
begin
|
||||
// In this event we receive the message with the name and value of a DOM node
|
||||
// from the render process.
|
||||
// This event may receive many other messages but we identify out message
|
||||
// This event may receive many other messages but we identify our message
|
||||
// thanks to the preamble.
|
||||
// The we set MsgContents with the rest of the message and send a
|
||||
// MINIBROWSER_SHOWMESSAGE message to show MsgContents in the main thread safely.
|
||||
@ -487,6 +487,12 @@ begin
|
||||
(copy(message, 1, length(CONSOLE_MSG_PREAMBLE)) = CONSOLE_MSG_PREAMBLE) then
|
||||
begin
|
||||
MsgContents := copy(message, succ(length(CONSOLE_MSG_PREAMBLE)), length(message));
|
||||
|
||||
if (length(MsgContents) = 0) then
|
||||
MsgContents := 'The INPUT node has no value'
|
||||
else
|
||||
MsgContents := 'INPUT node value : ' + quotedstr(MsgContents);
|
||||
|
||||
PostMessage(Handle, MINIBROWSER_SHOWMESSAGE, 0, 0);
|
||||
end;
|
||||
end;
|
||||
|
@ -51,7 +51,7 @@ uses
|
||||
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Types, ComCtrls, ClipBrd,
|
||||
{$ENDIF}
|
||||
uMainForm, uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFConstants, uCEFTypes,
|
||||
uCEFWinControl;
|
||||
uCEFWinControl, uCEFChromiumCore;
|
||||
|
||||
type
|
||||
TChildForm = class(TForm)
|
||||
|
@ -21,7 +21,7 @@
|
||||
</CompilerOptions>
|
||||
<Description Value="CEF4Delphi is an open source project created by Salvador Díaz Fau to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC."/>
|
||||
<License Value="MPL 1.1"/>
|
||||
<Version Major="83" Minor="4"/>
|
||||
<Version Major="83" Minor="4" Release="2"/>
|
||||
<Files Count="187">
|
||||
<Item1>
|
||||
<Filename Value="..\source\uCEFAccessibilityHandler.pas"/>
|
||||
|
@ -62,7 +62,7 @@ uses
|
||||
const
|
||||
CEF_SUPPORTED_VERSION_MAJOR = 83;
|
||||
CEF_SUPPORTED_VERSION_MINOR = 4;
|
||||
CEF_SUPPORTED_VERSION_RELEASE = 0;
|
||||
CEF_SUPPORTED_VERSION_RELEASE = 2;
|
||||
CEF_SUPPORTED_VERSION_BUILD = 0;
|
||||
|
||||
CEF_CHROMEELF_VERSION_MAJOR = 83;
|
||||
@ -742,7 +742,8 @@ begin
|
||||
FChromeVersionInfo.Build := CEF_CHROMEELF_VERSION_BUILD;
|
||||
|
||||
{$IFDEF MSWINDOWS}
|
||||
if (FProcessType = ptBrowser) then GetDLLVersion(ChromeElfPath, FChromeVersionInfo);
|
||||
if (FProcessType = ptBrowser) then
|
||||
GetDLLVersion(ChromeElfPath, FChromeVersionInfo);
|
||||
{$ENDIF}
|
||||
|
||||
IsMultiThread := True;
|
||||
@ -752,10 +753,12 @@ end;
|
||||
|
||||
destructor TCefApplicationCore.Destroy;
|
||||
begin
|
||||
if (GlobalCEFApp = Self) then GlobalCEFApp := nil;
|
||||
if (GlobalCEFApp = Self) then
|
||||
GlobalCEFApp := nil;
|
||||
|
||||
try
|
||||
if (FProcessType = ptBrowser) then ShutDown;
|
||||
if (FProcessType = ptBrowser) then
|
||||
ShutDown;
|
||||
|
||||
FreeLibcefLibrary;
|
||||
|
||||
@ -822,7 +825,9 @@ begin
|
||||
try
|
||||
if CheckCEFLibrary and LoadCEFlibrary then
|
||||
begin
|
||||
if (FProcessType <> ptBrowser) then BeforeInitSubProcess;
|
||||
if (FProcessType <> ptBrowser) then
|
||||
BeforeInitSubProcess;
|
||||
|
||||
TempApp := TCustomCefApp.Create(self);
|
||||
Result := (ExecuteProcess(TempApp) < 0) and InitializeLibrary(TempApp);
|
||||
end;
|
||||
@ -1469,22 +1474,26 @@ begin
|
||||
FGlobalContextInitialized := True;
|
||||
UpdateSupportedSchemes;
|
||||
|
||||
if assigned(FOnContextInitialized) then FOnContextInitialized();
|
||||
if assigned(FOnContextInitialized) then
|
||||
FOnContextInitialized();
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnBeforeChildProcessLaunch(const commandLine: ICefCommandLine);
|
||||
begin
|
||||
if assigned(FOnBeforeChildProcessLaunch) then FOnBeforeChildProcessLaunch(commandLine);
|
||||
if assigned(FOnBeforeChildProcessLaunch) then
|
||||
FOnBeforeChildProcessLaunch(commandLine);
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnRenderProcessThreadCreated(const extraInfo: ICefListValue);
|
||||
begin
|
||||
if assigned(FOnRenderProcessThreadCreated) then FOnRenderProcessThreadCreated(extraInfo);
|
||||
if assigned(FOnRenderProcessThreadCreated) then
|
||||
FOnRenderProcessThreadCreated(extraInfo);
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnScheduleMessagePumpWork(const delayMs: Int64);
|
||||
begin
|
||||
if assigned(FOnScheduleMessagePumpWork) then FOnScheduleMessagePumpWork(delayMs);
|
||||
if assigned(FOnScheduleMessagePumpWork) then
|
||||
FOnScheduleMessagePumpWork(delayMs);
|
||||
end;
|
||||
|
||||
function TCefApplicationCore.Internal_GetLocalizedString(stringid: Integer; var stringVal: ustring) : boolean;
|
||||
@ -1494,7 +1503,8 @@ begin
|
||||
// The stringId must be one of the values defined in the CEF file :
|
||||
// /include/cef_pack_strings.h
|
||||
// That file is available in the CEF binaries package.
|
||||
if assigned(FOnGetLocalizedString) then FOnGetLocalizedString(stringId, stringVal, Result);
|
||||
if assigned(FOnGetLocalizedString) then
|
||||
FOnGetLocalizedString(stringId, stringVal, Result);
|
||||
end;
|
||||
|
||||
function TCefApplicationCore.Internal_GetDataResource(resourceId: Integer; var data: Pointer; var dataSize: NativeUInt) : boolean;
|
||||
@ -1504,7 +1514,8 @@ begin
|
||||
// The resourceId must be one of the values defined in the CEF file :
|
||||
// /include/cef_pack_resources.h
|
||||
// That file is available in the CEF binaries package.
|
||||
if assigned(FOnGetDataResource) then FOnGetDataResource(resourceId, data, dataSize, Result);
|
||||
if assigned(FOnGetDataResource) then
|
||||
FOnGetDataResource(resourceId, data, dataSize, Result);
|
||||
end;
|
||||
|
||||
function TCefApplicationCore.Internal_GetDataResourceForScale(resourceId: Integer; scaleFactor: TCefScaleFactor; var data: Pointer; var dataSize: NativeUInt) : boolean;
|
||||
@ -1514,47 +1525,56 @@ begin
|
||||
// The resourceId must be one of the values defined in the CEF file :
|
||||
// /include/cef_pack_resources.h
|
||||
// That file is available in the CEF binaries package.
|
||||
if assigned(FOnGetDataResourceForScale) then FOnGetDataResourceForScale(resourceId, scaleFactor, data, dataSize, Result);
|
||||
if assigned(FOnGetDataResourceForScale) then
|
||||
FOnGetDataResourceForScale(resourceId, scaleFactor, data, dataSize, Result);
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnRenderThreadCreated(const extraInfo: ICefListValue);
|
||||
begin
|
||||
if assigned(FOnRenderThreadCreated) then FOnRenderThreadCreated(extraInfo);
|
||||
if assigned(FOnRenderThreadCreated) then
|
||||
FOnRenderThreadCreated(extraInfo);
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnWebKitInitialized;
|
||||
begin
|
||||
if assigned(FOnWebKitInitialized) then FOnWebKitInitialized();
|
||||
if assigned(FOnWebKitInitialized) then
|
||||
FOnWebKitInitialized();
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnBrowserCreated(const browser: ICefBrowser; const extra_info: ICefDictionaryValue);
|
||||
begin
|
||||
if assigned(FOnBrowserCreated) then FOnBrowserCreated(browser, extra_info);
|
||||
if assigned(FOnBrowserCreated) then
|
||||
FOnBrowserCreated(browser, extra_info);
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnBrowserDestroyed(const browser: ICefBrowser);
|
||||
begin
|
||||
if assigned(FOnBrowserDestroyed) then FOnBrowserDestroyed(browser);
|
||||
if assigned(FOnBrowserDestroyed) then
|
||||
FOnBrowserDestroyed(browser);
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnContextCreated(const browser: ICefBrowser; const frame: ICefFrame; const context: ICefv8Context);
|
||||
begin
|
||||
if assigned(FOnContextCreated) then FOnContextCreated(browser, frame, context);
|
||||
if assigned(FOnContextCreated) then
|
||||
FOnContextCreated(browser, frame, context);
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnContextReleased(const browser: ICefBrowser; const frame: ICefFrame; const context: ICefv8Context);
|
||||
begin
|
||||
if assigned(FOnContextReleased) then FOnContextReleased(browser, frame, context);
|
||||
if assigned(FOnContextReleased) then
|
||||
FOnContextReleased(browser, frame, context);
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnUncaughtException(const browser: ICefBrowser; const frame: ICefFrame; const context: ICefv8Context; const exception: ICefV8Exception; const stackTrace: ICefV8StackTrace);
|
||||
begin
|
||||
if assigned(FOnUncaughtException) then FOnUncaughtException(browser, frame, context, exception, stackTrace);
|
||||
if assigned(FOnUncaughtException) then
|
||||
FOnUncaughtException(browser, frame, context, exception, stackTrace);
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnFocusedNodeChanged(const browser: ICefBrowser; const frame: ICefFrame; const node: ICefDomNode);
|
||||
begin
|
||||
if assigned(FOnFocusedNodeChanged) then FOnFocusedNodeChanged(browser, frame, node);
|
||||
if assigned(FOnFocusedNodeChanged) then
|
||||
FOnFocusedNodeChanged(browser, frame, node);
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnProcessMessageReceived(const browser: ICefBrowser; const frame: ICefFrame; sourceProcess: TCefProcessId; const aMessage: ICefProcessMessage; var aHandled : boolean);
|
||||
@ -1567,27 +1587,32 @@ end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnCDMRegistrationComplete(result : TCefCDMRegistrationError; const error_message : ustring);
|
||||
begin
|
||||
if assigned(FOnCDMRegistrationComplete) then FOnCDMRegistrationComplete(result, error_message);
|
||||
if assigned(FOnCDMRegistrationComplete) then
|
||||
FOnCDMRegistrationComplete(result, error_message);
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnLoadingStateChange(const browser: ICefBrowser; isLoading, canGoBack, canGoForward: Boolean);
|
||||
begin
|
||||
if assigned(FOnLoadingStateChange) then FOnLoadingStateChange(browser, isLoading, canGoBack, canGoForward);
|
||||
if assigned(FOnLoadingStateChange) then
|
||||
FOnLoadingStateChange(browser, isLoading, canGoBack, canGoForward);
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnLoadStart(const browser: ICefBrowser; const frame: ICefFrame; transitionType: TCefTransitionType);
|
||||
begin
|
||||
if assigned(FOnLoadStart) then FOnLoadStart(browser, frame, transitionType);
|
||||
if assigned(FOnLoadStart) then
|
||||
FOnLoadStart(browser, frame, transitionType);
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnLoadEnd(const browser: ICefBrowser; const frame: ICefFrame; httpStatusCode: Integer);
|
||||
begin
|
||||
if assigned(FOnLoadEnd) then FOnLoadEnd(browser, frame, httpStatusCode);
|
||||
if assigned(FOnLoadEnd) then
|
||||
FOnLoadEnd(browser, frame, httpStatusCode);
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnLoadError(const browser: ICefBrowser; const frame: ICefFrame; errorCode: Integer; const errorText, failedUrl: ustring);
|
||||
begin
|
||||
if assigned(FOnLoadError) then FOnLoadError(browser, frame, errorCode, errorText, failedUrl);
|
||||
if assigned(FOnLoadError) then
|
||||
FOnLoadError(browser, frame, errorCode, errorText, failedUrl);
|
||||
end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnBeforeCommandLineProcessing(const processType : ustring;
|
||||
@ -1813,7 +1838,8 @@ end;
|
||||
|
||||
procedure TCefApplicationCore.Internal_OnRegisterCustomSchemes(const registrar: TCefSchemeRegistrarRef);
|
||||
begin
|
||||
if assigned(FOnRegisterCustomSchemes) then FOnRegisterCustomSchemes(registrar);
|
||||
if assigned(FOnRegisterCustomSchemes) then
|
||||
FOnRegisterCustomSchemes(registrar);
|
||||
end;
|
||||
|
||||
function TCefApplicationCore.GetMustCreateResourceBundleHandler : boolean;
|
||||
|
@ -2,9 +2,9 @@
|
||||
"UpdateLazPackages" : [
|
||||
{
|
||||
"ForceNotify" : true,
|
||||
"InternalVersion" : 153,
|
||||
"InternalVersion" : 154,
|
||||
"Name" : "cef4delphi_lazarus.lpk",
|
||||
"Version" : "83.4.0.0"
|
||||
"Version" : "83.4.2.0"
|
||||
}
|
||||
],
|
||||
"UpdatePackageData" : {
|
||||
|
Loading…
Reference in New Issue
Block a user