1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-12-03 21:44:45 +02:00

Update to CEF 3.3163.1666.g052c2d2

Added some units for future extension support.
This commit is contained in:
Salvador Díaz Fau
2017-09-19 19:18:52 +02:00
parent 58bd16c441
commit 4e390071a2
12 changed files with 617 additions and 32 deletions

View File

@@ -128,6 +128,9 @@ type
PCefKeyboardHandler = ^TCefKeyboardHandler;
PCefKeyEvent = ^TCefKeyEvent;
PCefLifeSpanHandler = ^TCefLifeSpanHandler;
PCefGetExtensionResourceCallback = ^TCefGetExtensionResourceCallback;
PCefExtensionHandler = ^TCefExtensionHandler;
PCefExtension = ^TCefExtension;
PCefPopupFeatures = ^TCefPopupFeatures;
PCefBrowserSettings = ^TCefBrowserSettings;
PCefLoadHandler = ^TCefLoadHandler;
@@ -504,8 +507,8 @@ type
FILE_DIALOG_OPEN_FOLDER,
FILE_DIALOG_SAVE,
FILE_DIALOG_TYPE_MASK = $FF,
FILE_DIALOG_OVERWRITEPROMPT_FLAG = $01000000,
FILE_DIALOG_HIDEREADONLY_FLAG = $02000000
FILE_DIALOG_OVERWRITEPROMPT_FLAG = $01000000,
FILE_DIALOG_HIDEREADONLY_FLAG = $02000000
);
// /include/internal/cef_types.h (cef_focus_source_t)
@@ -1155,6 +1158,38 @@ type
on_before_close: procedure(self: PCefLifeSpanHandler; browser: PCefBrowser); stdcall;
end;
// /include/capi/cef_extension_handler_capi.h (cef_get_extension_resource_callback_t)
TCefGetExtensionResourceCallback = record
base: TCefBaseRefCounted;
cont: procedure(self: PCefGetExtensionResourceCallback; stream: PCefStreamReader); stdcall;
cancel: procedure(self: PCefGetExtensionResourceCallback); stdcall;
end;
// /include/capi/cef_extension_handler_capi.h (cef_extension_handler_t)
TCefExtensionHandler = record
base: TCefBaseRefCounted;
on_extension_load_failed: procedure(self: PCefExtensionHandler; result: TCefErrorcode); stdcall;
on_extension_loaded: procedure(self: PCefExtensionHandler; extension: PCefExtension); stdcall;
on_extension_unloaded: procedure(self: PCefExtensionHandler; extension: PCefExtension); stdcall;
on_before_background_browser: function(self: PCefExtensionHandler; extension: PCefExtension; const url: PCefString; var client: PCefClient; settings: PCefBrowserSettings) : Integer; stdcall;
get_active_browser: function(self: PCefExtensionHandler; extension: PCefExtension; browser: PCefBrowser; include_incognito: Integer): PCefBrowser; stdcall;
can_access_browser: function(self: PCefExtensionHandler; extension: PCefExtension; browser: PCefBrowser; include_incognito: Integer; target_browser: PCefBrowser): Integer; stdcall;
get_extension_resource: function(self: PCefExtensionHandler; extension: PCefExtension; browser: PCefBrowser; const file_: PCefString; callback: PCefGetExtensionResourceCallback): Integer; stdcall;
end;
// /include/capi/cef_extension_capi.h (cef_extension_t)
TCefExtension = record
base: TCefBaseRefCounted;
get_identifier: function(self: PCefExtension) : PCefStringUserFree; stdcall;
get_path: function(self: PCefExtension) : PCefStringUserFree; stdcall;
get_manifest: function(self: PCefExtension) : PCefDictionaryValue; stdcall;
is_same: function(self, that: PCefExtension) : Integer; stdcall;
get_handler: function(self: PCefExtension) : PCefExtensionHandler; stdcall;
get_loader_context: function(self: PCefExtension) : PCefRequestContext; stdcall;
is_loaded: function(self: PCefExtension) : Integer; stdcall;
unload: procedure(self: PCefExtension); stdcall;
end;
// /include/internal/cef_types.h (cef_popup_features_t)
TCefPopupFeatures = record
@@ -1589,7 +1624,7 @@ type
expires: TCefTime;
end;
name : ustring;
TCookie = record
name : ustring;
value : ustring;
domain : ustring;