1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-11-23 21:34:53 +02:00

Update to CEF 117.1.4

This commit is contained in:
salvadordf
2023-09-24 11:21:05 +02:00
parent 1e5d96f16e
commit 8979dc8078
32 changed files with 1324 additions and 341 deletions

View File

@@ -27,6 +27,10 @@ uses
type
{$IFNDEF FPC}{$IFDEF DELPHI16_UP}[ComponentPlatformsAttribute(pfidWindows)]{$ENDIF}{$ENDIF}
/// <summary>
/// <para>Implementation of an external message pump for VCL and LCL.</para>
/// <para>Read the GlobalCEFApp.OnScheduleMessagePumpWork documentation for all the details.</para>
/// </summary>
TCEFWorkScheduler = class(TComponent)
protected
FThread : TCEFWorkSchedulerThread;
@@ -73,22 +77,59 @@ type
procedure Thread_OnPulse(Sender : TObject);
public
/// <summary>
/// Full constructor of TCEFWorkScheduler. This constructor also creates the internal threads.
/// </summary>
constructor Create(AOwner: TComponent); override;
/// <summary>
/// Partial constructor of TCEFWorkScheduler. This constructor doesn't create any threads.
/// Call TCEFWorkScheduler.CreateThread when necessary.
/// </summary>
constructor CreateDelayed;
/// <summary>
/// TCEFWorkScheduler destructor.
/// </summary>
destructor Destroy; override;
/// <summary>
/// Called from GlobalCEFApp.OnScheduleMessagePumpWork to schedule
/// a GlobalCEFApp.DoMessageLoopWork call asynchronously to perform a single
/// iteration of CEF message loop processing.
/// </summary>
/// <param name="delay_ms">Requested delay in milliseconds.</param>
procedure ScheduleMessagePumpWork(const delay_ms : int64);
/// <summary>
/// Stop the scheduler. This function must be called after the destruction of all the forms in the application.
/// </summary>
procedure StopScheduler;
/// <summary>
/// Creates all the internal threads used by TCEFWorkScheduler.
/// </summary>
procedure CreateThread;
published
{$IFDEF MSWINDOWS}
{$WARN SYMBOL_PLATFORM OFF}
/// <summary>
/// Priority of TCEFWorkSchedulerThread in Windows.
/// </summary>
property Priority : TThreadPriority read FPriority write SetPriority default tpNormal;
{$WARN SYMBOL_PLATFORM ON}
{$ENDIF}
/// <summary>
/// Default interval in milliseconds to do the next GlobalCEFApp.DoMessageLoopWork call.
/// </summary>
property DefaultInterval : integer read FDefaultInterval write SetDefaultInterval default CEF_TIMER_MAXDELAY;
/// <summary>
/// Number of cycles used to deplete the remaining messages in the work loop.
/// </summary>
property DepleteWorkCycles : cardinal read FDepleteWorkCycles write FDepleteWorkCycles default CEF_TIMER_DEPLETEWORK_CYCLES;
/// <summary>
/// Delay in milliseconds between the cycles used to deplete the remaining messages in the work loop.
/// </summary>
property DepleteWorkDelay : cardinal read FDepleteWorkDelay write FDepleteWorkDelay default CEF_TIMER_DEPLETEWORK_DELAY;
/// <summary>
/// Use a custom queue thread instead of Windows messages or any other way to schedule the next pump work.
/// </summary>
property UseQueueThread : boolean read FUseQueueThread write FUseQueueThread default False;
end;