1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-06-12 22:07:39 +02:00

Update to CEF 80.0.4

- Added GlobalCEFApp.DisableNewBrowserInfoTimeout property
- Removed remaining TCEFSentinel from all the demos.
- Fixed mouse coordinates in FMX demos with OSR browsers before sending a mouse wheel event.
This commit is contained in:
Salvador Díaz Fau
2020-02-26 13:28:29 +01:00
parent a20752eb53
commit feaeb772cb
149 changed files with 7651 additions and 929 deletions
README.md
demos
Delphi_FMX
FMXExternalPumpBrowser
FMXTabbedOSRBrowser
Delphi_VCL
ConsoleBrowser
FullScreenBrowser
JavaScript
KioskOSRBrowser
MDIExternalPumpBrowser
OSRExternalPumpBrowser
PopupBrowser
PopupBrowser2
SimpleExternalPumpBrowser
SimpleOSRBrowser
SimpleServer
ToolBoxBrowser
Lazarus
DOMVisitor
EditorBrowser
ExternalPumpBrowser
FullScreenBrowser
JavaScript
OSRExternalPumpBrowser
PopupBrowser
PopupBrowser2
PostInspectorBrowser
SchemeRegistrationBrowser
SimpleBrowser
SimpleBrowser2
SimpleExternalPumpBrowser
SimpleOSRBrowser
SimpleServer
SubProcess
TabbedBrowser
TabbedBrowser2
ToolBoxBrowser
URLRequest
packages
source
update_CEF4Delphi.json

@ -22,8 +22,8 @@
<ResourceBaseClass Value="Form"/>
<IsVisibleTab Value="True"/>
<EditorIndex Value="1"/>
<TopLine Value="96"/>
<CursorPos X="82" Y="126"/>
<TopLine Value="115"/>
<CursorPos X="31" Y="124"/>
<UsageCount Value="20"/>
<Loaded Value="True"/>
<LoadedDesigner Value="True"/>
@ -31,14 +31,13 @@
</Unit1>
<Unit2>
<Filename Value="..\..\..\..\source\uCEFv8ArrayBufferReleaseCallback.pas"/>
<EditorIndex Value="2"/>
<EditorIndex Value="-1"/>
<TopLine Value="55"/>
<CursorPos X="19" Y="70"/>
<UsageCount Value="10"/>
<Loaded Value="True"/>
</Unit2>
</Units>
<JumpHistory Count="5" HistoryIndex="4">
<JumpHistory Count="9" HistoryIndex="8">
<Position1>
<Filename Value="uJSWindowBindingWithArrayBuffer.pas"/>
<Caret Line="145" Column="60" TopLine="124"/>
@ -59,6 +58,22 @@
<Filename Value="uJSWindowBindingWithArrayBuffer.pas"/>
<Caret Line="165" TopLine="147"/>
</Position5>
<Position6>
<Filename Value="uJSWindowBindingWithArrayBuffer.pas"/>
<Caret Line="126" Column="82" TopLine="111"/>
</Position6>
<Position7>
<Filename Value="uJSWindowBindingWithArrayBuffer.pas"/>
<Caret Line="125" Column="82" TopLine="110"/>
</Position7>
<Position8>
<Filename Value="uJSWindowBindingWithArrayBuffer.pas"/>
<Caret Line="49" Column="76" TopLine="39"/>
</Position8>
<Position9>
<Filename Value="uJSWindowBindingWithArrayBuffer.pas"/>
<Caret Line="125" Column="69" TopLine="101"/>
</Position9>
</JumpHistory>
<RunParams>
<FormatVersion Value="2"/>

@ -14,7 +14,7 @@ object JSWindowBindingWithArrayBufferFrm: TJSWindowBindingWithArrayBufferFrm
OnCreate = FormCreate
OnShow = FormShow
Position = poScreenCenter
LCLVersion = '2.0.4.0'
LCLVersion = '2.0.6.0'
object NavControlPnl: TPanel
Left = 0
Height = 20
@ -69,9 +69,4 @@ object JSWindowBindingWithArrayBufferFrm: TJSWindowBindingWithArrayBufferFrm
left = 32
top = 288
end
object CEFSentinel1: TCEFSentinel
OnClose = CEFSentinel1Close
left = 32
top = 363
end
end

@ -59,7 +59,6 @@ type
{ TJSWindowBindingWithArrayBufferFrm }
TJSWindowBindingWithArrayBufferFrm = class(TForm)
CEFSentinel1: TCEFSentinel;
NavControlPnl: TPanel;
Edit1: TEdit;
GoBtn: TButton;
@ -122,8 +121,7 @@ uses
// =================
// 1. FormCloseQuery sets CanClose to FALSE calls TChromium.CloseBrowser which triggers the TChromium.OnClose event.
// 2. TChromium.OnClose sends a CEFBROWSER_DESTROY message to destroy CEFWindowParent1 in the main thread, which triggers the TChromium.OnBeforeClose event.
// 3. TChromium.OnBeforeClose calls TCEFSentinel.Start, which will trigger TCEFSentinel.OnClose when the renderer processes are closed.
// 4. TCEFSentinel.OnClose sets FCanClose := True and sends WM_CLOSE to the form.
// 3. TChromium.OnBeforeClose sets FCanClose := True and sends WM_CLOSE to the form.
procedure FreeCustomArrayBufer(buffer : Pointer);
begin
@ -197,8 +195,7 @@ end;
procedure TJSWindowBindingWithArrayBufferFrm.CEFSentinel1Close(Sender: TObject);
begin
FCanClose := True;
PostMessage(Handle, WM_CLOSE, 0, 0);
end;
procedure TJSWindowBindingWithArrayBufferFrm.WMMove(var aMessage : TWMMove);
@ -247,7 +244,8 @@ end;
procedure TJSWindowBindingWithArrayBufferFrm.Chromium1BeforeClose(
Sender: TObject; const browser: ICefBrowser);
begin
CEFSentinel1.Start;
FCanClose := True;
PostMessage(Handle, WM_CLOSE, 0, 0);
end;
procedure TJSWindowBindingWithArrayBufferFrm.Chromium1Close(