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

Update to CEF 125.0.19

This commit is contained in:
Salvador Díaz Fau
2024-05-28 15:50:48 +02:00
parent 7c230b9d70
commit e3cd6821c8
138 changed files with 15244 additions and 5862 deletions

View File

@ -316,7 +316,7 @@ type
procedure SetThemeColor(color_id: integer; color: TCefColor);
/// <summary>
/// <para>Trigger cef_view_delegate_t::OnThemeChanged callbacks for each View in
/// <para>Trigger ICefViewDelegate.OnThemeChanged callbacks for each View in
/// this Window's component hierarchy. Unlike a native/OS or Chrome theme
/// change this function does not reset theme colors to standard values and
/// does not result in a call to ICefWindowDelegate.OnThemeColorsChanged.</para>
@ -325,6 +325,12 @@ type
/// </summary>
procedure ThemeChanged;
/// <summary>
/// Returns the runtime style for this Window (ALLOY or CHROME). See
/// TCefRuntimeStyle documentation for details.
/// </summary>
function GetRuntimeStyle: TCefRuntimeStyle;
public
/// <summary>
/// Returns a ICefWindow instance using a PCefWindow data pointer.
@ -568,6 +574,11 @@ begin
PCefWindow(FData)^.theme_changed(PCefWindow(FData));
end;
function TCefWindowRef.GetRuntimeStyle: TCefRuntimeStyle;
begin
Result := PCefWindow(FData)^.get_runtime_style(PCefWindow(FData));
end;
class function TCefWindowRef.UnWrap(data: Pointer): ICefWindow;
begin
if (data <> nil) then