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

Update to CEF 131.2.3

This commit is contained in:
Salvador Díaz Fau
2024-11-16 12:19:26 +01:00
parent 6256c2c35f
commit 87843f4b8f
184 changed files with 6022 additions and 4915 deletions

View File

@@ -71,6 +71,7 @@ type
function GetIsEnabled : boolean;
function GetIsFocusable : boolean;
function GetIsAccessibilityFocusable : boolean;
function GetHasFocus : boolean;
function GetBackgroundColor : TCefColor;
function GetViewForID(id_: Integer): ICefView;
function GetHeightForWidth(width: Integer): Integer;
@@ -129,8 +130,10 @@ type
/// </summary>
procedure InvalidateLayout;
/// <summary>
/// Request keyboard focus. If this View is focusable it will become the
/// focused View.
/// Request focus for this View in the context of the containing Window. If
/// this View is focusable it will become the focused View. Any focus changes
/// while a Window is not active may be applied after that Window next becomes
/// active.
/// </summary>
procedure RequestFocus;
/// <summary>
@@ -295,6 +298,12 @@ type
/// </summary>
property AccessibilityFocusable : boolean read GetIsAccessibilityFocusable;
/// <summary>
/// Returns true (1) if this View has focus in the context of the containing
/// Window. Check both this function and ICefWindow.IsActive to determine
/// global keyboard focus.
/// </summary>
property HasFocus : boolean read GetHasFocus;
/// <summary>
/// Returns the background color for this View. If the background color is
/// unset then the current `GetThemeColor(CEF_ColorPrimaryBackground)` value
/// will be returned. If this View belongs to an overlay (created with
@@ -860,6 +869,11 @@ begin
Result := Initialized and AsView.IsAccessibilityFocusable;
end;
function TCEFViewComponent.GetHasFocus : boolean;
begin
Result := Initialized and AsView.HasFocus;
end;
procedure TCEFViewComponent.RequestFocus;
begin
if Initialized then