You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Update to CEF 3.3071.1634.g9cc59c8
This commit is contained in:
@@ -52,6 +52,7 @@ uses
|
||||
type
|
||||
TCefRenderHandlerOwn = class(TCefBaseRefCountedOwn, ICefRenderHandler)
|
||||
protected
|
||||
procedure GetAccessibilityHandler(var aAccessibilityHandler : ICefAccessibilityHandler); virtual;
|
||||
function GetRootScreenRect(const browser: ICefBrowser; rect: PCefRect): Boolean; virtual;
|
||||
function GetViewRect(const browser: ICefBrowser; rect: PCefRect): Boolean; virtual;
|
||||
function GetScreenPoint(const browser: ICefBrowser; viewX, viewY: Integer; screenX, screenY: PInteger): Boolean; virtual;
|
||||
@@ -73,6 +74,7 @@ type
|
||||
protected
|
||||
FEvent: IChromiumEvents;
|
||||
|
||||
procedure GetAccessibilityHandler(var aAccessibilityHandler : ICefAccessibilityHandler); override;
|
||||
function GetRootScreenRect(const browser: ICefBrowser; rect: PCefRect): Boolean; override;
|
||||
function GetViewRect(const browser: ICefBrowser; rect: PCefRect): Boolean; override;
|
||||
function GetScreenPoint(const browser: ICefBrowser; viewX, viewY: Integer; screenX, screenY: PInteger): Boolean; override;
|
||||
@@ -96,6 +98,23 @@ uses
|
||||
uCEFMiscFunctions, uCEFLibFunctions, uCEFBrowser, uCEFDragData;
|
||||
|
||||
|
||||
function cef_render_handler_get_accessibility_handler(self: PCefRenderHandler): PCefAccessibilityHandler; stdcall;
|
||||
var
|
||||
TempHandler : ICefAccessibilityHandler;
|
||||
begin
|
||||
with TCefRenderHandlerOwn(CefGetObject(self)) do
|
||||
begin
|
||||
TempHandler := nil;
|
||||
|
||||
GetAccessibilityHandler(TempHandler);
|
||||
|
||||
if (TempHandler <> nil) then
|
||||
Result := TempHandler.Wrap
|
||||
else
|
||||
Result := nil;
|
||||
end;
|
||||
end;
|
||||
|
||||
function cef_render_handler_get_root_screen_rect(self: PCefRenderHandler;
|
||||
browser: PCefBrowser; rect: PCefRect): Integer; stdcall;
|
||||
begin
|
||||
@@ -193,6 +212,7 @@ begin
|
||||
|
||||
with PCefRenderHandler(FData)^ do
|
||||
begin
|
||||
get_accessibility_handler := cef_render_handler_get_accessibility_handler;
|
||||
get_root_screen_rect := cef_render_handler_get_root_screen_rect;
|
||||
get_view_rect := cef_render_handler_get_view_rect;
|
||||
get_screen_point := cef_render_handler_get_screen_point;
|
||||
@@ -207,6 +227,11 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCefRenderHandlerOwn.GetAccessibilityHandler(var aAccessibilityHandler : ICefAccessibilityHandler);
|
||||
begin
|
||||
aAccessibilityHandler := nil;
|
||||
end;
|
||||
|
||||
function TCefRenderHandlerOwn.GetRootScreenRect(const browser: ICefBrowser;
|
||||
rect: PCefRect): Boolean;
|
||||
begin
|
||||
@@ -289,9 +314,15 @@ end;
|
||||
constructor TCustomRenderHandler.Create(const events: IChromiumEvents);
|
||||
begin
|
||||
inherited Create;
|
||||
|
||||
FEvent := events;
|
||||
end;
|
||||
|
||||
procedure TCustomRenderHandler.GetAccessibilityHandler(var aAccessibilityHandler : ICefAccessibilityHandler);
|
||||
begin
|
||||
FEvent.doOnGetAccessibilityHandler(aAccessibilityHandler);
|
||||
end;
|
||||
|
||||
function TCustomRenderHandler.GetRootScreenRect(const browser: ICefBrowser;
|
||||
rect: PCefRect): Boolean;
|
||||
begin
|
||||
|
||||
Reference in New Issue
Block a user