2017-01-27 18:29:37 +02:00
|
|
|
unit uCEFContextMenuHandler;
|
|
|
|
|
2018-05-12 14:50:54 +02:00
|
|
|
{$IFDEF FPC}
|
|
|
|
{$MODE OBJFPC}{$H+}
|
|
|
|
{$ENDIF}
|
|
|
|
|
2017-02-05 21:56:46 +02:00
|
|
|
{$I cef.inc}
|
|
|
|
|
2022-02-19 19:56:41 +02:00
|
|
|
{$IFNDEF TARGET_64BITS}{$ALIGN ON}{$ENDIF}
|
|
|
|
{$MINENUMSIZE 4}
|
|
|
|
|
2017-01-27 18:29:37 +02:00
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
2017-03-16 20:09:42 +02:00
|
|
|
uCEFBaseRefCounted, uCEFInterfaces, uCEFTypes;
|
2017-01-27 18:29:37 +02:00
|
|
|
|
|
|
|
type
|
2017-03-16 20:09:42 +02:00
|
|
|
TCefContextMenuHandlerOwn = class(TCefBaseRefCountedOwn, ICefContextMenuHandler)
|
2017-01-27 18:29:37 +02:00
|
|
|
protected
|
|
|
|
procedure OnBeforeContextMenu(const browser: ICefBrowser; const frame: ICefFrame; const params: ICefContextMenuParams; const model: ICefMenuModel); virtual;
|
|
|
|
function RunContextMenu(const browser: ICefBrowser; const frame: ICefFrame; const params: ICefContextMenuParams; const model: ICefMenuModel; const callback: ICefRunContextMenuCallback): Boolean; virtual;
|
|
|
|
function OnContextMenuCommand(const browser: ICefBrowser; const frame: ICefFrame; const params: ICefContextMenuParams; commandId: Integer; eventFlags: TCefEventFlags): Boolean; virtual;
|
|
|
|
procedure OnContextMenuDismissed(const browser: ICefBrowser; const frame: ICefFrame); virtual;
|
2022-08-06 12:00:28 +02:00
|
|
|
function RunQuickMenu(const browser: ICefBrowser; const frame: ICefFrame; location: PCefPoint; size: PCefSize; edit_state_flags: TCefQuickMenuEditStateFlags; const callback: ICefRunQuickMenuCallback): boolean; virtual;
|
|
|
|
function OnQuickMenuCommand(const browser: ICefBrowser; const frame: ICefFrame; command_id: integer; event_flags: TCefEventFlags): boolean; virtual;
|
|
|
|
procedure OnQuickMenuDismissed(const browser: ICefBrowser; const frame: ICefFrame); virtual;
|
2017-01-27 18:29:37 +02:00
|
|
|
|
2018-02-03 18:52:48 +02:00
|
|
|
procedure RemoveReferences; virtual;
|
|
|
|
|
2017-01-27 18:29:37 +02:00
|
|
|
public
|
|
|
|
constructor Create; virtual;
|
|
|
|
end;
|
|
|
|
|
|
|
|
TCustomContextMenuHandler = class(TCefContextMenuHandlerOwn)
|
|
|
|
protected
|
2018-02-03 18:52:48 +02:00
|
|
|
FEvents : Pointer;
|
2017-01-27 18:29:37 +02:00
|
|
|
|
|
|
|
procedure OnBeforeContextMenu(const browser: ICefBrowser; const frame: ICefFrame; const params: ICefContextMenuParams; const model: ICefMenuModel); override;
|
2017-12-18 20:38:56 +02:00
|
|
|
function RunContextMenu(const browser: ICefBrowser; const frame: ICefFrame; const params: ICefContextMenuParams; const model: ICefMenuModel; const callback: ICefRunContextMenuCallback): Boolean; override;
|
2017-01-27 18:29:37 +02:00
|
|
|
function OnContextMenuCommand(const browser: ICefBrowser; const frame: ICefFrame; const params: ICefContextMenuParams; commandId: Integer; eventFlags: TCefEventFlags): Boolean; override;
|
|
|
|
procedure OnContextMenuDismissed(const browser: ICefBrowser; const frame: ICefFrame); override;
|
2022-08-06 12:00:28 +02:00
|
|
|
function RunQuickMenu(const browser: ICefBrowser; const frame: ICefFrame; location: PCefPoint; size: PCefSize; edit_state_flags: TCefQuickMenuEditStateFlags; const callback: ICefRunQuickMenuCallback): boolean; override;
|
|
|
|
function OnQuickMenuCommand(const browser: ICefBrowser; const frame: ICefFrame; command_id: integer; event_flags: TCefEventFlags): boolean; override;
|
|
|
|
procedure OnQuickMenuDismissed(const browser: ICefBrowser; const frame: ICefFrame); override;
|
2017-01-27 18:29:37 +02:00
|
|
|
|
2018-02-03 18:52:48 +02:00
|
|
|
procedure RemoveReferences; override;
|
|
|
|
|
2017-01-27 18:29:37 +02:00
|
|
|
public
|
2019-06-19 16:53:26 +02:00
|
|
|
constructor Create(const events : IChromiumEvents); reintroduce; virtual;
|
2017-06-11 17:48:20 +02:00
|
|
|
destructor Destroy; override;
|
2017-01-27 18:29:37 +02:00
|
|
|
end;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
uses
|
2018-02-03 18:52:48 +02:00
|
|
|
{$IFDEF DELPHI16_UP}
|
|
|
|
System.SysUtils,
|
|
|
|
{$ELSE}
|
|
|
|
SysUtils,
|
|
|
|
{$ENDIF}
|
2017-01-27 18:29:37 +02:00
|
|
|
uCEFMiscFunctions, uCEFLibFunctions, uCEFBrowser, uCEFFrame, uCEFContextMenuParams,
|
2022-08-06 12:00:28 +02:00
|
|
|
uCEFMenuModel, uCEFRunContextMenuCallback, uCEFRunQuickMenuCallback;
|
2017-01-27 18:29:37 +02:00
|
|
|
|
2018-03-29 20:02:04 +02:00
|
|
|
procedure cef_context_menu_handler_on_before_context_menu(self : PCefContextMenuHandler;
|
|
|
|
browser : PCefBrowser;
|
|
|
|
frame : PCefFrame;
|
|
|
|
params : PCefContextMenuParams;
|
|
|
|
model : PCefMenuModel); stdcall;
|
|
|
|
var
|
|
|
|
TempObject : TObject;
|
2017-01-27 18:29:37 +02:00
|
|
|
begin
|
2018-03-29 20:02:04 +02:00
|
|
|
TempObject := CefGetObject(self);
|
|
|
|
|
|
|
|
if (TempObject <> nil) and (TempObject is TCefContextMenuHandlerOwn) then
|
|
|
|
TCefContextMenuHandlerOwn(TempObject).OnBeforeContextMenu(TCefBrowserRef.UnWrap(browser),
|
|
|
|
TCefFrameRef.UnWrap(frame),
|
|
|
|
TCefContextMenuParamsRef.UnWrap(params),
|
|
|
|
TCefMenuModelRef.UnWrap(model));
|
2017-01-27 18:29:37 +02:00
|
|
|
end;
|
|
|
|
|
2018-03-29 20:02:04 +02:00
|
|
|
function cef_context_menu_handler_run_context_menu(self : PCefContextMenuHandler;
|
|
|
|
browser : PCefBrowser;
|
|
|
|
frame : PCefFrame;
|
|
|
|
params : PCefContextMenuParams;
|
|
|
|
model : PCefMenuModel;
|
|
|
|
callback : PCefRunContextMenuCallback): Integer; stdcall;
|
|
|
|
var
|
|
|
|
TempObject : TObject;
|
2017-01-27 18:29:37 +02:00
|
|
|
begin
|
2018-03-29 20:02:04 +02:00
|
|
|
Result := Ord(False);
|
|
|
|
TempObject := CefGetObject(self);
|
|
|
|
|
|
|
|
if (TempObject <> nil) and (TempObject is TCefContextMenuHandlerOwn) then
|
|
|
|
Result := Ord(TCefContextMenuHandlerOwn(TempObject).RunContextMenu(TCefBrowserRef.UnWrap(browser),
|
|
|
|
TCefFrameRef.UnWrap(frame),
|
|
|
|
TCefContextMenuParamsRef.UnWrap(params),
|
|
|
|
TCefMenuModelRef.UnWrap(model),
|
|
|
|
TCefRunContextMenuCallbackRef.UnWrap(callback)));
|
2017-01-27 18:29:37 +02:00
|
|
|
end;
|
|
|
|
|
2018-03-29 20:02:04 +02:00
|
|
|
function cef_context_menu_handler_on_context_menu_command(self : PCefContextMenuHandler;
|
|
|
|
browser : PCefBrowser;
|
|
|
|
frame : PCefFrame;
|
|
|
|
params : PCefContextMenuParams;
|
|
|
|
command_id : Integer;
|
|
|
|
event_flags : TCefEventFlags): Integer; stdcall;
|
|
|
|
var
|
|
|
|
TempObject : TObject;
|
2017-01-27 18:29:37 +02:00
|
|
|
begin
|
2018-03-29 20:02:04 +02:00
|
|
|
Result := Ord(False);
|
|
|
|
TempObject := CefGetObject(self);
|
|
|
|
|
|
|
|
if (TempObject <> nil) and (TempObject is TCefContextMenuHandlerOwn) then
|
|
|
|
Result := Ord(TCefContextMenuHandlerOwn(TempObject).OnContextMenuCommand(TCefBrowserRef.UnWrap(browser),
|
|
|
|
TCefFrameRef.UnWrap(frame),
|
|
|
|
TCefContextMenuParamsRef.UnWrap(params),
|
|
|
|
command_id,
|
|
|
|
event_flags));
|
2017-01-27 18:29:37 +02:00
|
|
|
end;
|
|
|
|
|
2018-03-29 20:02:04 +02:00
|
|
|
procedure cef_context_menu_handler_on_context_menu_dismissed(self : PCefContextMenuHandler;
|
|
|
|
browser : PCefBrowser;
|
|
|
|
frame : PCefFrame); stdcall;
|
|
|
|
var
|
|
|
|
TempObject : TObject;
|
2017-01-27 18:29:37 +02:00
|
|
|
begin
|
2018-03-29 20:02:04 +02:00
|
|
|
TempObject := CefGetObject(self);
|
|
|
|
|
|
|
|
if (TempObject <> nil) and (TempObject is TCefContextMenuHandlerOwn) then
|
|
|
|
TCefContextMenuHandlerOwn(TempObject).OnContextMenuDismissed(TCefBrowserRef.UnWrap(browser),
|
|
|
|
TCefFrameRef.UnWrap(frame));
|
2017-01-27 18:29:37 +02:00
|
|
|
end;
|
|
|
|
|
2022-08-06 12:00:28 +02:00
|
|
|
function cef_context_menu_handler_run_quick_menu(self : PCefContextMenuHandler;
|
|
|
|
browser : PCefBrowser;
|
|
|
|
frame : PCefFrame;
|
|
|
|
location : PCefPoint;
|
|
|
|
size : PCefSize;
|
|
|
|
edit_state_flags : TCefQuickMenuEditStateFlags;
|
|
|
|
callback : PCefRunQuickMenuCallback): Integer; stdcall;
|
|
|
|
var
|
|
|
|
TempObject : TObject;
|
|
|
|
begin
|
|
|
|
Result := Ord(False);
|
|
|
|
TempObject := CefGetObject(self);
|
|
|
|
|
|
|
|
if (TempObject <> nil) and (TempObject is TCefContextMenuHandlerOwn) then
|
|
|
|
Result := Ord(TCefContextMenuHandlerOwn(TempObject).RunQuickMenu(TCefBrowserRef.UnWrap(browser),
|
|
|
|
TCefFrameRef.UnWrap(frame),
|
|
|
|
location,
|
|
|
|
size,
|
|
|
|
edit_state_flags,
|
|
|
|
TCefRunQuickMenuCallbackRef.UnWrap(callback)));
|
|
|
|
end;
|
|
|
|
|
|
|
|
function cef_context_menu_handler_on_quick_menu_command(self : PCefContextMenuHandler;
|
|
|
|
browser : PCefBrowser;
|
|
|
|
frame : PCefFrame;
|
|
|
|
command_id : Integer;
|
|
|
|
event_flags : TCefEventFlags): Integer; stdcall;
|
|
|
|
var
|
|
|
|
TempObject : TObject;
|
|
|
|
begin
|
|
|
|
Result := Ord(False);
|
|
|
|
TempObject := CefGetObject(self);
|
|
|
|
|
|
|
|
if (TempObject <> nil) and (TempObject is TCefContextMenuHandlerOwn) then
|
|
|
|
Result := Ord(TCefContextMenuHandlerOwn(TempObject).OnQuickMenuCommand(TCefBrowserRef.UnWrap(browser),
|
|
|
|
TCefFrameRef.UnWrap(frame),
|
|
|
|
command_id,
|
|
|
|
event_flags));
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure cef_context_menu_handler_on_quick_menu_dismissed(self : PCefContextMenuHandler;
|
|
|
|
browser : PCefBrowser;
|
|
|
|
frame : PCefFrame); stdcall;
|
|
|
|
var
|
|
|
|
TempObject : TObject;
|
|
|
|
begin
|
|
|
|
TempObject := CefGetObject(self);
|
|
|
|
|
|
|
|
if (TempObject <> nil) and (TempObject is TCefContextMenuHandlerOwn) then
|
|
|
|
TCefContextMenuHandlerOwn(TempObject).OnQuickMenuDismissed(TCefBrowserRef.UnWrap(browser),
|
|
|
|
TCefFrameRef.UnWrap(frame));
|
|
|
|
end;
|
|
|
|
|
2017-01-27 18:29:37 +02:00
|
|
|
constructor TCefContextMenuHandlerOwn.Create;
|
|
|
|
begin
|
|
|
|
inherited CreateData(SizeOf(TCefContextMenuHandler));
|
2018-02-03 18:52:48 +02:00
|
|
|
|
2017-01-27 18:29:37 +02:00
|
|
|
with PCefContextMenuHandler(FData)^ do
|
2018-02-03 18:52:48 +02:00
|
|
|
begin
|
2018-05-12 14:50:54 +02:00
|
|
|
on_before_context_menu := {$IFDEF FPC}@{$ENDIF}cef_context_menu_handler_on_before_context_menu;
|
|
|
|
run_context_menu := {$IFDEF FPC}@{$ENDIF}cef_context_menu_handler_run_context_menu;
|
|
|
|
on_context_menu_command := {$IFDEF FPC}@{$ENDIF}cef_context_menu_handler_on_context_menu_command;
|
|
|
|
on_context_menu_dismissed := {$IFDEF FPC}@{$ENDIF}cef_context_menu_handler_on_context_menu_dismissed;
|
2022-08-06 12:00:28 +02:00
|
|
|
run_quick_menu := {$IFDEF FPC}@{$ENDIF}cef_context_menu_handler_run_quick_menu;
|
|
|
|
on_quick_menu_command := {$IFDEF FPC}@{$ENDIF}cef_context_menu_handler_on_quick_menu_command;
|
|
|
|
on_quick_menu_dismissed := {$IFDEF FPC}@{$ENDIF}cef_context_menu_handler_on_quick_menu_dismissed;
|
2018-02-03 18:52:48 +02:00
|
|
|
end;
|
2017-01-27 18:29:37 +02:00
|
|
|
end;
|
|
|
|
|
2018-02-03 18:52:48 +02:00
|
|
|
procedure TCefContextMenuHandlerOwn.OnBeforeContextMenu(const browser : ICefBrowser;
|
|
|
|
const frame : ICefFrame;
|
|
|
|
const params : ICefContextMenuParams;
|
|
|
|
const model : ICefMenuModel);
|
2017-01-27 18:29:37 +02:00
|
|
|
begin
|
2018-02-03 18:52:48 +02:00
|
|
|
//
|
2017-01-27 18:29:37 +02:00
|
|
|
end;
|
|
|
|
|
2018-02-03 18:52:48 +02:00
|
|
|
function TCefContextMenuHandlerOwn.OnContextMenuCommand(const browser : ICefBrowser;
|
|
|
|
const frame : ICefFrame;
|
|
|
|
const params : ICefContextMenuParams;
|
|
|
|
commandId : Integer;
|
|
|
|
eventFlags : TCefEventFlags): Boolean;
|
2017-01-27 18:29:37 +02:00
|
|
|
begin
|
|
|
|
Result := False;
|
|
|
|
end;
|
|
|
|
|
2018-02-03 18:52:48 +02:00
|
|
|
procedure TCefContextMenuHandlerOwn.OnContextMenuDismissed(const browser : ICefBrowser;
|
|
|
|
const frame : ICefFrame);
|
2017-01-27 18:29:37 +02:00
|
|
|
begin
|
2018-02-03 18:52:48 +02:00
|
|
|
//
|
2017-01-27 18:29:37 +02:00
|
|
|
end;
|
|
|
|
|
2022-08-06 12:00:28 +02:00
|
|
|
function TCefContextMenuHandlerOwn.RunQuickMenu(const browser : ICefBrowser;
|
|
|
|
const frame : ICefFrame;
|
|
|
|
location : PCefPoint;
|
|
|
|
size : PCefSize;
|
|
|
|
edit_state_flags : TCefQuickMenuEditStateFlags;
|
|
|
|
const callback : ICefRunQuickMenuCallback): boolean;
|
|
|
|
begin
|
|
|
|
Result := False;
|
|
|
|
end;
|
|
|
|
|
|
|
|
function TCefContextMenuHandlerOwn.OnQuickMenuCommand(const browser : ICefBrowser;
|
|
|
|
const frame : ICefFrame;
|
|
|
|
command_id : integer;
|
|
|
|
event_flags : TCefEventFlags): boolean;
|
|
|
|
begin
|
|
|
|
Result := False;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TCefContextMenuHandlerOwn.OnQuickMenuDismissed(const browser : ICefBrowser;
|
|
|
|
const frame : ICefFrame);
|
|
|
|
begin
|
|
|
|
//
|
|
|
|
end;
|
|
|
|
|
2018-02-03 18:52:48 +02:00
|
|
|
function TCefContextMenuHandlerOwn.RunContextMenu(const browser : ICefBrowser;
|
|
|
|
const frame : ICefFrame;
|
|
|
|
const params : ICefContextMenuParams;
|
|
|
|
const model : ICefMenuModel;
|
|
|
|
const callback : ICefRunContextMenuCallback): Boolean;
|
2017-01-27 18:29:37 +02:00
|
|
|
begin
|
|
|
|
Result := False;
|
|
|
|
end;
|
|
|
|
|
2018-02-03 18:52:48 +02:00
|
|
|
procedure TCefContextMenuHandlerOwn.RemoveReferences;
|
|
|
|
begin
|
|
|
|
//
|
|
|
|
end;
|
|
|
|
|
2017-01-27 18:29:37 +02:00
|
|
|
// TCustomContextMenuHandler
|
|
|
|
|
2019-06-19 16:53:26 +02:00
|
|
|
constructor TCustomContextMenuHandler.Create(const events : IChromiumEvents);
|
2017-01-27 18:29:37 +02:00
|
|
|
begin
|
|
|
|
inherited Create;
|
2017-06-11 17:48:20 +02:00
|
|
|
|
2019-06-19 16:53:26 +02:00
|
|
|
FEvents := Pointer(events);
|
2017-01-27 18:29:37 +02:00
|
|
|
end;
|
|
|
|
|
2017-06-11 17:48:20 +02:00
|
|
|
destructor TCustomContextMenuHandler.Destroy;
|
|
|
|
begin
|
2018-02-03 18:52:48 +02:00
|
|
|
RemoveReferences;
|
2017-06-11 17:48:20 +02:00
|
|
|
|
|
|
|
inherited Destroy;
|
|
|
|
end;
|
|
|
|
|
2018-02-03 18:52:48 +02:00
|
|
|
procedure TCustomContextMenuHandler.RemoveReferences;
|
|
|
|
begin
|
|
|
|
FEvents := nil;
|
|
|
|
end;
|
|
|
|
|
2017-06-11 20:36:14 +02:00
|
|
|
procedure TCustomContextMenuHandler.OnBeforeContextMenu(const browser : ICefBrowser;
|
|
|
|
const frame : ICefFrame;
|
|
|
|
const params : ICefContextMenuParams;
|
|
|
|
const model : ICefMenuModel);
|
2017-01-27 18:29:37 +02:00
|
|
|
begin
|
2018-02-03 18:52:48 +02:00
|
|
|
if (FEvents <> nil) then IChromiumEvents(FEvents).doOnBeforeContextMenu(browser, frame, params, model);
|
2017-01-27 18:29:37 +02:00
|
|
|
end;
|
|
|
|
|
2017-12-18 20:38:56 +02:00
|
|
|
function TCustomContextMenuHandler.RunContextMenu(const browser : ICefBrowser;
|
|
|
|
const frame : ICefFrame;
|
|
|
|
const params : ICefContextMenuParams;
|
|
|
|
const model : ICefMenuModel;
|
|
|
|
const callback : ICefRunContextMenuCallback): Boolean;
|
|
|
|
begin
|
2018-02-03 18:52:48 +02:00
|
|
|
if (FEvents <> nil) then
|
|
|
|
Result := IChromiumEvents(FEvents).doRunContextMenu(browser, frame, params, model, callback)
|
2017-12-18 20:38:56 +02:00
|
|
|
else
|
|
|
|
Result := inherited RunContextMenu(browser, frame, params, model, callback);
|
|
|
|
end;
|
|
|
|
|
2017-06-11 20:36:14 +02:00
|
|
|
function TCustomContextMenuHandler.OnContextMenuCommand(const browser : ICefBrowser;
|
|
|
|
const frame : ICefFrame;
|
|
|
|
const params : ICefContextMenuParams;
|
|
|
|
commandId : Integer;
|
|
|
|
eventFlags : TCefEventFlags): Boolean;
|
2017-01-27 18:29:37 +02:00
|
|
|
begin
|
2018-02-03 18:52:48 +02:00
|
|
|
if (FEvents <> nil) then
|
|
|
|
Result := IChromiumEvents(FEvents).doOnContextMenuCommand(browser, frame, params, commandId, eventFlags)
|
2017-06-11 17:48:20 +02:00
|
|
|
else
|
2017-06-11 20:36:14 +02:00
|
|
|
Result := inherited OnContextMenuCommand(browser, frame, params, commandId, eventFlags);
|
2017-01-27 18:29:37 +02:00
|
|
|
end;
|
|
|
|
|
2018-02-03 18:52:48 +02:00
|
|
|
procedure TCustomContextMenuHandler.OnContextMenuDismissed(const browser : ICefBrowser;
|
|
|
|
const frame : ICefFrame);
|
2017-01-27 18:29:37 +02:00
|
|
|
begin
|
2018-02-03 18:52:48 +02:00
|
|
|
if (FEvents <> nil) then IChromiumEvents(FEvents).doOnContextMenuDismissed(browser, frame);
|
2017-01-27 18:29:37 +02:00
|
|
|
end;
|
|
|
|
|
2022-08-06 12:00:28 +02:00
|
|
|
function TCustomContextMenuHandler.RunQuickMenu(const browser : ICefBrowser;
|
|
|
|
const frame : ICefFrame;
|
|
|
|
location : PCefPoint;
|
|
|
|
size : PCefSize;
|
|
|
|
edit_state_flags : TCefQuickMenuEditStateFlags;
|
|
|
|
const callback : ICefRunQuickMenuCallback): boolean;
|
|
|
|
begin
|
|
|
|
if (FEvents <> nil) then
|
|
|
|
Result := IChromiumEvents(FEvents).doRunQuickMenu(browser, frame, location, size, edit_state_flags, callback)
|
|
|
|
else
|
|
|
|
Result := inherited RunQuickMenu(browser, frame, location, size, edit_state_flags, callback);
|
|
|
|
end;
|
|
|
|
|
|
|
|
function TCustomContextMenuHandler.OnQuickMenuCommand(const browser : ICefBrowser;
|
|
|
|
const frame : ICefFrame;
|
|
|
|
command_id : integer;
|
|
|
|
event_flags : TCefEventFlags): boolean;
|
|
|
|
begin
|
|
|
|
if (FEvents <> nil) then
|
|
|
|
Result := IChromiumEvents(FEvents).doOnQuickMenuCommand(browser, frame, command_id, event_flags)
|
|
|
|
else
|
|
|
|
Result := inherited OnQuickMenuCommand(browser, frame, command_id, event_flags);
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TCustomContextMenuHandler.OnQuickMenuDismissed(const browser : ICefBrowser;
|
|
|
|
const frame : ICefFrame);
|
|
|
|
begin
|
|
|
|
if (FEvents <> nil) then IChromiumEvents(FEvents).doOnQuickMenuDismissed(browser, frame);
|
|
|
|
end;
|
|
|
|
|
2017-01-27 18:29:37 +02:00
|
|
|
end.
|