You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Bug fix #68
RenderProcessHandler and ResourceBundleHandler are now created automatically in TCEFApplication. All their events are now TCEFApplication events.
This commit is contained in:
@@ -121,11 +121,16 @@ type
|
||||
TOnContextReleasedEvent = {$IFDEF DELPHI12_UP}reference to{$ENDIF} procedure(const browser: ICefBrowser; const frame: ICefFrame; const context: ICefv8Context) {$IFNDEF DELPHI12_UP}of object{$ENDIF};
|
||||
TOnUncaughtExceptionEvent = {$IFDEF DELPHI12_UP}reference to{$ENDIF} procedure(const browser: ICefBrowser; const frame: ICefFrame; const context: ICefv8Context; const exception: ICefV8Exception; const stackTrace: ICefV8StackTrace) {$IFNDEF DELPHI12_UP}of object{$ENDIF};
|
||||
TOnFocusedNodeChangedEvent = {$IFDEF DELPHI12_UP}reference to{$ENDIF} procedure(const browser: ICefBrowser; const frame: ICefFrame; const node: ICefDomNode) {$IFNDEF DELPHI12_UP}of object{$ENDIF};
|
||||
TOnProcessMessageReceivedEvent = {$IFDEF DELPHI12_UP}reference to{$ENDIF} procedure(const browser: ICefBrowser; sourceProcess: TCefProcessId; const message: ICefProcessMessage) {$IFNDEF DELPHI12_UP}of object{$ENDIF};
|
||||
TOnProcessMessageReceivedEvent = {$IFDEF DELPHI12_UP}reference to{$ENDIF} procedure(const browser: ICefBrowser; sourceProcess: TCefProcessId; const message: ICefProcessMessage; var aHandled : boolean) {$IFNDEF DELPHI12_UP}of object{$ENDIF};
|
||||
TOnContextInitializedEvent = {$IFDEF DELPHI12_UP}reference to{$ENDIF} procedure() {$IFNDEF DELPHI12_UP}of object{$ENDIF};
|
||||
TOnBeforeChildProcessLaunchEvent = {$IFDEF DELPHI12_UP}reference to{$ENDIF} procedure(const commandLine: ICefCommandLine) {$IFNDEF DELPHI12_UP}of object{$ENDIF};
|
||||
TOnRenderProcessThreadCreatedEvent = {$IFDEF DELPHI12_UP}reference to{$ENDIF} procedure(const extraInfo: ICefListValue) {$IFNDEF DELPHI12_UP}of object{$ENDIF};
|
||||
TOnScheduleMessagePumpWorkEvent = {$IFDEF DELPHI12_UP}reference to{$ENDIF} procedure(const delayMs: Int64) {$IFNDEF DELPHI12_UP}of object{$ENDIF};
|
||||
TOnGetDataResourceEvent = {$IFDEF DELPHI12_UP}reference to{$ENDIF} procedure(resourceId: Integer; out data: Pointer; out dataSize: NativeUInt; var aResult : Boolean);
|
||||
TOnGetLocalizedStringEvent = {$IFDEF DELPHI12_UP}reference to{$ENDIF} procedure(stringId: Integer; out stringVal: ustring; var aResult : Boolean);
|
||||
TOnGetDataResourceForScaleEvent = {$IFDEF DELPHI12_UP}reference to{$ENDIF} procedure(resourceId: Integer; scaleFactor: TCefScaleFactor; out data: Pointer; out dataSize: NativeUInt; var aResult : Boolean);
|
||||
|
||||
|
||||
|
||||
TCefCompletionCallbackProc = {$IFDEF DELPHI12_UP}reference to{$ENDIF} procedure;
|
||||
TCefSetCookieCallbackProc = {$IFDEF DELPHI12_UP}reference to{$ENDIF} procedure(success: Boolean);
|
||||
@@ -578,8 +583,8 @@ type
|
||||
|
||||
ICefV8Accessor = interface(ICefBaseRefCounted)
|
||||
['{DCA6D4A2-726A-4E24-AA64-5E8C731D868A}']
|
||||
function Get(const name: ustring; const obj: ICefv8Value; out value: ICefv8Value; const exception: ustring): Boolean;
|
||||
function Put(const name: ustring; const obj: ICefv8Value; const value: ICefv8Value; const exception: ustring): Boolean;
|
||||
function Get(const name: ustring; const obj: ICefv8Value; out retval: ICefv8Value; var exception: ustring): Boolean;
|
||||
function Put(const name: ustring; const obj: ICefv8Value; const value: ICefv8Value; var exception: ustring): Boolean;
|
||||
end;
|
||||
|
||||
ICefTask = interface(ICefBaseRefCounted)
|
||||
@@ -659,10 +664,8 @@ type
|
||||
function GetArrayLength: Integer;
|
||||
function GetFunctionName: ustring;
|
||||
function GetFunctionHandler: ICefv8Handler;
|
||||
function ExecuteFunction(const obj: ICefv8Value;
|
||||
const arguments: TCefv8ValueArray): ICefv8Value;
|
||||
function ExecuteFunctionWithContext(const context: ICefv8Context;
|
||||
const obj: ICefv8Value; const arguments: TCefv8ValueArray): ICefv8Value;
|
||||
function ExecuteFunction(const obj: ICefv8Value; const arguments: TCefv8ValueArray): ICefv8Value;
|
||||
function ExecuteFunctionWithContext(const context: ICefv8Context; const obj: ICefv8Value; const arguments: TCefv8ValueArray): ICefv8Value;
|
||||
end;
|
||||
|
||||
ICefV8StackFrame = interface(ICefBaseRefCounted)
|
||||
@@ -827,8 +830,9 @@ type
|
||||
|
||||
ICefResourceBundleHandler = interface(ICefBaseRefCounted)
|
||||
['{09C264FD-7E03-41E3-87B3-4234E82B5EA2}']
|
||||
function GetLocalizedString(stringId: Integer; out stringVal: ustring): Boolean;
|
||||
function GetDataResource(resourceId: Integer; out data: Pointer; out dataSize: NativeUInt): Boolean;
|
||||
function GetLocalizedString(stringId: Integer; var stringVal: ustring): Boolean;
|
||||
function GetDataResource(resourceId: Integer; var data: Pointer; var dataSize: NativeUInt): Boolean;
|
||||
function GetDataResourceForScale(resourceId: Integer; scaleFactor: TCefScaleFactor; var data: Pointer; var dataSize: NativeUInt): Boolean;
|
||||
end;
|
||||
|
||||
ICefCommandLine = interface(ICefBaseRefCounted)
|
||||
@@ -866,21 +870,15 @@ type
|
||||
|
||||
ICefRenderProcessHandler = interface(ICefBaseRefCounted)
|
||||
['{FADEE3BC-BF66-430A-BA5D-1EE3782ECC58}']
|
||||
procedure OnRenderThreadCreated(const extraInfo: ICefListValue) ;
|
||||
procedure OnRenderThreadCreated(const extraInfo: ICefListValue);
|
||||
procedure OnWebKitInitialized;
|
||||
procedure OnBrowserCreated(const browser: ICefBrowser);
|
||||
procedure OnBrowserDestroyed(const browser: ICefBrowser);
|
||||
procedure OnContextCreated(const browser: ICefBrowser;
|
||||
const frame: ICefFrame; const context: ICefv8Context);
|
||||
procedure OnContextReleased(const browser: ICefBrowser;
|
||||
const frame: ICefFrame; const context: ICefv8Context);
|
||||
procedure OnUncaughtException(const browser: ICefBrowser; const frame: ICefFrame;
|
||||
const context: ICefv8Context; const exception: ICefV8Exception;
|
||||
const stackTrace: ICefV8StackTrace);
|
||||
procedure OnFocusedNodeChanged(const browser: ICefBrowser;
|
||||
const frame: ICefFrame; const node: ICefDomNode);
|
||||
function OnProcessMessageReceived(const browser: ICefBrowser;
|
||||
sourceProcess: TCefProcessId; const message: ICefProcessMessage): Boolean;
|
||||
procedure OnContextCreated(const browser: ICefBrowser; const frame: ICefFrame; const context: ICefv8Context);
|
||||
procedure OnContextReleased(const browser: ICefBrowser; const frame: ICefFrame; const context: ICefv8Context);
|
||||
procedure OnUncaughtException(const browser: ICefBrowser; const frame: ICefFrame; const context: ICefv8Context; const exception: ICefV8Exception; const stackTrace: ICefV8StackTrace);
|
||||
procedure OnFocusedNodeChanged(const browser: ICefBrowser; const frame: ICefFrame; const node: ICefDomNode);
|
||||
function OnProcessMessageReceived(const browser: ICefBrowser; sourceProcess: TCefProcessId; const message: ICefProcessMessage): Boolean;
|
||||
end;
|
||||
|
||||
ICefApp = interface(ICefBaseRefCounted)
|
||||
@@ -1669,9 +1667,9 @@ type
|
||||
['{3213CF97-C854-452B-B615-39192F8D07DC}']
|
||||
function GetLocalizedString(stringId: Integer): ustring;
|
||||
function GetDataResource(resourceId: Integer;
|
||||
out data: Pointer; out dataSize: NativeUInt): Boolean;
|
||||
var data: Pointer; var dataSize: NativeUInt): Boolean;
|
||||
function GetDataResourceForScale(resourceId: Integer; scaleFactor: TCefScaleFactor;
|
||||
out data: Pointer; out dataSize: NativeUInt): Boolean;
|
||||
var data: Pointer; var dataSize: NativeUInt): Boolean;
|
||||
end;
|
||||
|
||||
ICefImage = interface(ICefBaseRefCounted)
|
||||
|
||||
Reference in New Issue
Block a user