mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-02-02 10:25:26 +02:00
Update to CEF 3.3163.1666.g052c2d2
Added some units for future extension support.
This commit is contained in:
parent
58bd16c441
commit
4e390071a2
@ -153,6 +153,9 @@ contains
|
|||||||
uCEFBaseScopedWrapper in 'uCEFBaseScopedWrapper.pas',
|
uCEFBaseScopedWrapper in 'uCEFBaseScopedWrapper.pas',
|
||||||
uCEFAccessibilityHandler in 'uCEFAccessibilityHandler.pas',
|
uCEFAccessibilityHandler in 'uCEFAccessibilityHandler.pas',
|
||||||
uOLEDragAndDrop in 'uOLEDragAndDrop.pas',
|
uOLEDragAndDrop in 'uOLEDragAndDrop.pas',
|
||||||
uCEFDragAndDropMgr in 'uCEFDragAndDropMgr.pas';
|
uCEFDragAndDropMgr in 'uCEFDragAndDropMgr.pas',
|
||||||
|
uCEFGetExtensionResourceCallback in 'uCEFGetExtensionResourceCallback.pas',
|
||||||
|
uCEFExtension in 'uCEFExtension.pas',
|
||||||
|
uCEFExtensionHandler in 'uCEFExtensionHandler.pas';
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
@ -212,6 +212,9 @@
|
|||||||
<DCCReference Include="uCEFAccessibilityHandler.pas"/>
|
<DCCReference Include="uCEFAccessibilityHandler.pas"/>
|
||||||
<DCCReference Include="uOLEDragAndDrop.pas"/>
|
<DCCReference Include="uOLEDragAndDrop.pas"/>
|
||||||
<DCCReference Include="uCEFDragAndDropMgr.pas"/>
|
<DCCReference Include="uCEFDragAndDropMgr.pas"/>
|
||||||
|
<DCCReference Include="uCEFGetExtensionResourceCallback.pas"/>
|
||||||
|
<DCCReference Include="uCEFExtension.pas"/>
|
||||||
|
<DCCReference Include="uCEFExtensionHandler.pas"/>
|
||||||
<BuildConfiguration Include="Release">
|
<BuildConfiguration Include="Release">
|
||||||
<Key>Cfg_2</Key>
|
<Key>Cfg_2</Key>
|
||||||
<CfgParent>Base</CfgParent>
|
<CfgParent>Base</CfgParent>
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
[Closed Files]
|
[Closed Files]
|
||||||
File_0=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFApplication.pas',0,1,309,95,337,0,0,,
|
File_0=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFExtension.pas',0,1,48,82,110,0,0,,
|
||||||
File_1=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFTypes.pas',0,1,1129,9,1158,0,0,,{1
|
File_1=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFExtensionHandler.pas',0,1,163,83,302,0,0,,
|
||||||
File_2=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFChromium.pas',0,1,2351,63,2357,0,0,,
|
File_2=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFGetExtensionResourceCallback.pas',0,1,34,38,53,0,0,,
|
||||||
File_3=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFChromiumEvents.pas',0,150,69,246,90,0,0,,
|
File_3=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFRequestContextHandler.pas',0,1,43,31,55,0,0,,
|
||||||
File_4=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFInterfaces.pas',0,1,1697,26,1718,0,0,,
|
File_4=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFChromium.pas',0,1,1753,52,1784,0,0,,
|
||||||
File_5=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFLifeSpanHandler.pas',0,1,208,74,229,0,0,,
|
File_5=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFApplication.pas',0,1,246,1,1,0,0,,
|
||||||
File_6=TSourceModule,'V:\3163\include\internal\cef_types.h',0,1,2467,27,2515,0,0,,
|
File_6=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFRequestContext.pas',0,1,131,1,146,0,0,,
|
||||||
File_7=TSourceModule,'V:\3112\include\internal\cef_types.h',0,1,2458,24,2502,0,0,,
|
File_7=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFClient.pas',0,1,40,46,73,0,0,,
|
||||||
File_8=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFChromiumWindow.pas',0,1,130,14,147,0,0,,
|
File_8=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFInterfaces.pas',0,1,1234,3,1257,0,0,,
|
||||||
File_9=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFBaseRefCounted.pas',0,1,106,57,144,0,0,,
|
File_9=TSourceModule,'C:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\source\uCEFLibFunctions.pas',0,1,1,1,1,0,0,,
|
||||||
|
|
||||||
[Modules]
|
[Modules]
|
||||||
Module0=default.htm
|
Module0=default.htm
|
||||||
@ -41,10 +41,10 @@ TopPanelSize=0
|
|||||||
LeftPanelSize=0
|
LeftPanelSize=0
|
||||||
RightPanelSize=2000
|
RightPanelSize=2000
|
||||||
RightPanelClients=DockSite2
|
RightPanelClients=DockSite2
|
||||||
RightPanelData=00000800010100000000A21900000000000001D00700000000000001000000009723000009000000446F636B5369746532FFFFFFFF
|
RightPanelData=00000800010100000000161500000000000001D0070000000000000100000000471D000009000000446F636B5369746532FFFFFFFF
|
||||||
BottomPanelSize=0
|
BottomPanelSize=1551
|
||||||
BottomPanelClients=DockSite1,MessageView
|
BottomPanelClients=DockSite1,MessageView
|
||||||
BottomPanelData=0000080001020200000009000000446F636B53697465310F0000004D65737361676556696577466F726D3B36000000000000020F0600000000000001000000003B3600000F0000004D65737361676556696577466F726DFFFFFFFF
|
BottomPanelData=0000080001020100000009000000446F636B53697465313B36000000000000020F0600000000000001000000003B3600000F0000004D65737361676556696577466F726DFFFFFFFF
|
||||||
BottomMiddlePanelSize=0
|
BottomMiddlePanelSize=0
|
||||||
BottomMiddlePanelClients=DockSite0,GraphDrawingModel
|
BottomMiddlePanelClients=DockSite0,GraphDrawingModel
|
||||||
BottomMiddelPanelData=0000080001020200000009000000446F636B536974653010000000477261706844726177696E67566965779D1D00000000000002F306000000000000FFFFFFFF
|
BottomMiddelPanelData=0000080001020200000009000000446F636B536974653010000000477261706844726177696E67566965779D1D00000000000002F306000000000000FFFFFFFF
|
||||||
@ -120,11 +120,11 @@ State=0
|
|||||||
Left=0
|
Left=0
|
||||||
Top=0
|
Top=0
|
||||||
Width=2000
|
Width=2000
|
||||||
Height=8935
|
Height=7265
|
||||||
MaxLeft=-1
|
MaxLeft=-1
|
||||||
MaxTop=-1
|
MaxTop=-1
|
||||||
ClientWidth=2000
|
ClientWidth=2000
|
||||||
ClientHeight=8935
|
ClientHeight=7265
|
||||||
TBDockHeight=5897
|
TBDockHeight=5897
|
||||||
LRDockWidth=2352
|
LRDockWidth=2352
|
||||||
Dockable=1
|
Dockable=1
|
||||||
@ -133,7 +133,7 @@ StayOnTop=0
|
|||||||
[MessageView]
|
[MessageView]
|
||||||
PercentageSizes=1
|
PercentageSizes=1
|
||||||
Create=1
|
Create=1
|
||||||
Visible=0
|
Visible=1
|
||||||
Docked=1
|
Docked=1
|
||||||
State=0
|
State=0
|
||||||
Left=0
|
Left=0
|
||||||
@ -690,11 +690,11 @@ State=0
|
|||||||
Left=0
|
Left=0
|
||||||
Top=18
|
Top=18
|
||||||
Width=2000
|
Width=2000
|
||||||
Height=9215
|
Height=7545
|
||||||
MaxLeft=-1
|
MaxLeft=-1
|
||||||
MaxTop=-1
|
MaxTop=-1
|
||||||
ClientWidth=2000
|
ClientWidth=2000
|
||||||
ClientHeight=9215
|
ClientHeight=7545
|
||||||
TBDockHeight=7164
|
TBDockHeight=7164
|
||||||
LRDockWidth=2000
|
LRDockWidth=2000
|
||||||
Dockable=1
|
Dockable=1
|
||||||
|
Binary file not shown.
@ -1,9 +1,9 @@
|
|||||||
[Stats]
|
[Stats]
|
||||||
EditorSecs=162895
|
EditorSecs=174780
|
||||||
DesignerSecs=98
|
DesignerSecs=98
|
||||||
InspectorSecs=326
|
InspectorSecs=326
|
||||||
CompileSecs=5383865
|
CompileSecs=5469050
|
||||||
OtherSecs=17558
|
OtherSecs=18393
|
||||||
StartTime=22/01/2017 10:49:52
|
StartTime=22/01/2017 10:49:52
|
||||||
RealKeys=0
|
RealKeys=0
|
||||||
EffectiveKeys=0
|
EffectiveKeys=0
|
||||||
|
@ -57,13 +57,13 @@ uses
|
|||||||
const
|
const
|
||||||
CEF_SUPPORTED_VERSION_MAJOR = 3;
|
CEF_SUPPORTED_VERSION_MAJOR = 3;
|
||||||
CEF_SUPPORTED_VERSION_MINOR = 3163;
|
CEF_SUPPORTED_VERSION_MINOR = 3163;
|
||||||
CEF_SUPPORTED_VERSION_RELEASE = 1663;
|
CEF_SUPPORTED_VERSION_RELEASE = 1666;
|
||||||
CEF_SUPPORTED_VERSION_BUILD = 0;
|
CEF_SUPPORTED_VERSION_BUILD = 0;
|
||||||
|
|
||||||
CEF_CHROMEELF_VERSION_MAJOR = 61;
|
CEF_CHROMEELF_VERSION_MAJOR = 61;
|
||||||
CEF_CHROMEELF_VERSION_MINOR = 0;
|
CEF_CHROMEELF_VERSION_MINOR = 0;
|
||||||
CEF_CHROMEELF_VERSION_RELEASE = 3163;
|
CEF_CHROMEELF_VERSION_RELEASE = 3163;
|
||||||
CEF_CHROMEELF_VERSION_BUILD = 79;
|
CEF_CHROMEELF_VERSION_BUILD = 91;
|
||||||
|
|
||||||
LIBCEF_DLL = 'libcef.dll';
|
LIBCEF_DLL = 'libcef.dll';
|
||||||
CHROMEELF_DLL = 'chrome_elf.dll';
|
CHROMEELF_DLL = 'chrome_elf.dll';
|
||||||
|
121
source/uCEFExtension.pas
Normal file
121
source/uCEFExtension.pas
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
// ************************************************************************
|
||||||
|
// ***************************** CEF4Delphi *******************************
|
||||||
|
// ************************************************************************
|
||||||
|
//
|
||||||
|
// CEF4Delphi is based on DCEF3 which uses CEF3 to embed a chromium-based
|
||||||
|
// browser in Delphi applications.
|
||||||
|
//
|
||||||
|
// The original license of DCEF3 still applies to CEF4Delphi.
|
||||||
|
//
|
||||||
|
// For more information about CEF4Delphi visit :
|
||||||
|
// https://www.briskbard.com/index.php?lang=en&pageid=cef
|
||||||
|
//
|
||||||
|
// Copyright © 2017 Salvador Díaz Fau. All rights reserved.
|
||||||
|
//
|
||||||
|
// ************************************************************************
|
||||||
|
// ************ vvvv Original license and comments below vvvv *************
|
||||||
|
// ************************************************************************
|
||||||
|
(*
|
||||||
|
* Delphi Chromium Embedded 3
|
||||||
|
*
|
||||||
|
* Usage allowed under the restrictions of the Lesser GNU General Public License
|
||||||
|
* or alternatively the restrictions of the Mozilla Public License 1.1
|
||||||
|
*
|
||||||
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||||
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
||||||
|
* the specific language governing rights and limitations under the License.
|
||||||
|
*
|
||||||
|
* Unit owner : Henri Gourvest <hgourvest@gmail.com>
|
||||||
|
* Web site : http://www.progdigy.com
|
||||||
|
* Repository : http://code.google.com/p/delphichromiumembedded/
|
||||||
|
* Group : http://groups.google.com/group/delphichromiumembedded
|
||||||
|
*
|
||||||
|
* Embarcadero Technologies, Inc is not permitted to use or redistribute
|
||||||
|
* this source code without explicit permission.
|
||||||
|
*
|
||||||
|
*)
|
||||||
|
|
||||||
|
unit uCEFExtension;
|
||||||
|
|
||||||
|
{$IFNDEF CPUX64}
|
||||||
|
{$ALIGN ON}
|
||||||
|
{$MINENUMSIZE 4}
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
|
{$I cef.inc}
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
uCEFBaseRefCounted, uCEFInterfaces, uCEFTypes;
|
||||||
|
|
||||||
|
type
|
||||||
|
TCefExtensionRef = class(TCefBaseRefCountedRef, ICefExtension)
|
||||||
|
protected
|
||||||
|
function GetIdentifier : ustring;
|
||||||
|
function GetPath : ustring;
|
||||||
|
function GetManifest : ICefDictionaryValue;
|
||||||
|
function IsSame(const that : ICefExtension) : boolean;
|
||||||
|
function GetHandler : ICefExtensionHandler;
|
||||||
|
function GetLoaderContext: ICefRequestContext;
|
||||||
|
function IsLoaded : boolean;
|
||||||
|
procedure unload;
|
||||||
|
|
||||||
|
public
|
||||||
|
class function UnWrap(data: Pointer): ICefExtension;
|
||||||
|
end;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
uses
|
||||||
|
uCEFMiscFunctions, uCEFLibFunctions, uCEFDictionaryValue, uCEFRequestContext, uCefExtensionHandler;
|
||||||
|
|
||||||
|
function TCefExtensionRef.GetIdentifier : ustring;
|
||||||
|
begin
|
||||||
|
Result := CefStringFreeAndGet(PCefExtension(FData).get_identifier(PCefExtension(FData)));
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TCefExtensionRef.GetPath : ustring;
|
||||||
|
begin
|
||||||
|
Result := CefStringFreeAndGet(PCefExtension(FData).get_path(PCefExtension(FData)));
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TCefExtensionRef.GetManifest : ICefDictionaryValue;
|
||||||
|
begin
|
||||||
|
Result := TCefDictionaryValueRef.UnWrap(PCefExtension(FData).get_manifest(PCefExtension(FData)));
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TCefExtensionRef.IsSame(const that : ICefExtension) : boolean;
|
||||||
|
begin
|
||||||
|
Result:= PCefExtension(FData).is_same(PCefExtension(FData), PCefExtension(CefGetData(that))) <> 0;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TCefExtensionRef.GetHandler : ICefExtensionHandler;
|
||||||
|
begin
|
||||||
|
Result := TCefExtensionHandlerRef.UnWrap(PCefExtension(FData).get_handler(PCefExtension(FData)));
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TCefExtensionRef.GetLoaderContext: ICefRequestContext;
|
||||||
|
begin
|
||||||
|
Result := TCefRequestContextRef.UnWrap(PCefExtension(FData).get_loader_context(PCefExtension(FData)));
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TCefExtensionRef.IsLoaded : boolean;
|
||||||
|
begin
|
||||||
|
Result := PCefExtension(FData).is_loaded(PCefExtension(FData)) <> 0;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TCefExtensionRef.unload;
|
||||||
|
begin
|
||||||
|
PCefExtension(FData).unload(PCefExtension(FData));
|
||||||
|
end;
|
||||||
|
|
||||||
|
class function TCefExtensionRef.UnWrap(data: Pointer): ICefExtension;
|
||||||
|
begin
|
||||||
|
if (data <> nil) then
|
||||||
|
Result := Create(data) as ICefExtension
|
||||||
|
else
|
||||||
|
Result := nil;
|
||||||
|
end;
|
||||||
|
|
||||||
|
end.
|
302
source/uCEFExtensionHandler.pas
Normal file
302
source/uCEFExtensionHandler.pas
Normal file
@ -0,0 +1,302 @@
|
|||||||
|
// ************************************************************************
|
||||||
|
// ***************************** CEF4Delphi *******************************
|
||||||
|
// ************************************************************************
|
||||||
|
//
|
||||||
|
// CEF4Delphi is based on DCEF3 which uses CEF3 to embed a chromium-based
|
||||||
|
// browser in Delphi applications.
|
||||||
|
//
|
||||||
|
// The original license of DCEF3 still applies to CEF4Delphi.
|
||||||
|
//
|
||||||
|
// For more information about CEF4Delphi visit :
|
||||||
|
// https://www.briskbard.com/index.php?lang=en&pageid=cef
|
||||||
|
//
|
||||||
|
// Copyright © 2017 Salvador Díaz Fau. All rights reserved.
|
||||||
|
//
|
||||||
|
// ************************************************************************
|
||||||
|
// ************ vvvv Original license and comments below vvvv *************
|
||||||
|
// ************************************************************************
|
||||||
|
(*
|
||||||
|
* Delphi Chromium Embedded 3
|
||||||
|
*
|
||||||
|
* Usage allowed under the restrictions of the Lesser GNU General Public License
|
||||||
|
* or alternatively the restrictions of the Mozilla Public License 1.1
|
||||||
|
*
|
||||||
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||||
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
||||||
|
* the specific language governing rights and limitations under the License.
|
||||||
|
*
|
||||||
|
* Unit owner : Henri Gourvest <hgourvest@gmail.com>
|
||||||
|
* Web site : http://www.progdigy.com
|
||||||
|
* Repository : http://code.google.com/p/delphichromiumembedded/
|
||||||
|
* Group : http://groups.google.com/group/delphichromiumembedded
|
||||||
|
*
|
||||||
|
* Embarcadero Technologies, Inc is not permitted to use or redistribute
|
||||||
|
* this source code without explicit permission.
|
||||||
|
*
|
||||||
|
*)
|
||||||
|
|
||||||
|
unit uCEFExtensionHandler;
|
||||||
|
|
||||||
|
{$IFNDEF CPUX64}
|
||||||
|
{$ALIGN ON}
|
||||||
|
{$MINENUMSIZE 4}
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
|
{$I cef.inc}
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
uCEFBaseRefCounted, uCEFInterfaces, uCEFTypes;
|
||||||
|
|
||||||
|
type
|
||||||
|
TCefExtensionHandlerRef = class(TCefBaseRefCountedRef, ICefExtensionHandler)
|
||||||
|
protected
|
||||||
|
procedure OnExtensionLoadFailed(result: TCefErrorcode);
|
||||||
|
procedure OnExtensionLoaded(const extension: ICefExtension);
|
||||||
|
procedure OnExtensionUnloaded(const extension: ICefExtension);
|
||||||
|
function OnBeforeBackgroundBrowser(const extension: ICefExtension; const url: ustring; var client: ICefClient; var settings: TCefBrowserSettings) : boolean;
|
||||||
|
function GetActiveBrowser(const extension: ICefExtension; const browser: ICefBrowser; include_incognito: boolean): ICefBrowser;
|
||||||
|
function CanAccessBrowser(const extension: ICefExtension; const browser: ICefBrowser; include_incognito: boolean; const target_browser: ICefBrowser): boolean;
|
||||||
|
function GetExtensionResource(const extension: ICefExtension; const browser: ICefBrowser; const file_: ustring; const callback: ICefGetExtensionResourceCallback): boolean;
|
||||||
|
|
||||||
|
public
|
||||||
|
class function UnWrap(data: Pointer): ICefExtensionHandler;
|
||||||
|
end;
|
||||||
|
|
||||||
|
TCefExtensionHandlerOwn = class(TCefBaseRefCountedOwn, ICefExtensionHandler)
|
||||||
|
protected
|
||||||
|
procedure OnExtensionLoadFailed(result: TCefErrorcode); virtual;
|
||||||
|
procedure OnExtensionLoaded(const extension: ICefExtension); virtual;
|
||||||
|
procedure OnExtensionUnloaded(const extension: ICefExtension); virtual;
|
||||||
|
function OnBeforeBackgroundBrowser(const extension: ICefExtension; const url: ustring; var client: ICefClient; var settings: TCefBrowserSettings) : boolean; virtual;
|
||||||
|
function GetActiveBrowser(const extension: ICefExtension; const browser: ICefBrowser; include_incognito: boolean): ICefBrowser; virtual;
|
||||||
|
function CanAccessBrowser(const extension: ICefExtension; const browser: ICefBrowser; include_incognito: boolean; const target_browser: ICefBrowser): boolean; virtual;
|
||||||
|
function GetExtensionResource(const extension: ICefExtension; const browser: ICefBrowser; const file_: ustring; const callback: ICefGetExtensionResourceCallback): boolean; virtual;
|
||||||
|
|
||||||
|
public
|
||||||
|
constructor Create; virtual;
|
||||||
|
end;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
uses
|
||||||
|
uCEFMiscFunctions, uCEFLibFunctions, uCEFGetExtensionResourceCallback, uCEFExtension, uCEFBrowser, uCEFClient;
|
||||||
|
|
||||||
|
|
||||||
|
// ***************************************************************************
|
||||||
|
// ************************ TCefExtensionHandlerRef **************************
|
||||||
|
// ***************************************************************************
|
||||||
|
|
||||||
|
procedure TCefExtensionHandlerRef.OnExtensionLoadFailed(result: TCefErrorcode);
|
||||||
|
begin
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TCefExtensionHandlerRef.OnExtensionLoaded(const extension: ICefExtension);
|
||||||
|
begin
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TCefExtensionHandlerRef.OnExtensionUnloaded(const extension: ICefExtension);
|
||||||
|
begin
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TCefExtensionHandlerRef.OnBeforeBackgroundBrowser(const extension : ICefExtension;
|
||||||
|
const url : ustring;
|
||||||
|
var client : ICefClient;
|
||||||
|
var settings : TCefBrowserSettings) : boolean;
|
||||||
|
begin
|
||||||
|
Result := False;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TCefExtensionHandlerRef.GetActiveBrowser(const extension : ICefExtension;
|
||||||
|
const browser : ICefBrowser;
|
||||||
|
include_incognito : boolean): ICefBrowser;
|
||||||
|
begin
|
||||||
|
Result := TCefBrowserRef.UnWrap(PCefExtensionHandler(FData).get_active_browser(PCefExtensionHandler(FData),
|
||||||
|
CefGetData(extension),
|
||||||
|
CefGetData(browser),
|
||||||
|
Ord(include_incognito)));
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TCefExtensionHandlerRef.CanAccessBrowser(const extension : ICefExtension;
|
||||||
|
const browser : ICefBrowser;
|
||||||
|
include_incognito : boolean;
|
||||||
|
const target_browser : ICefBrowser): boolean;
|
||||||
|
begin
|
||||||
|
Result := PCefExtensionHandler(FData).can_access_browser(PCefExtensionHandler(FData),
|
||||||
|
CefGetData(extension),
|
||||||
|
CefGetData(browser),
|
||||||
|
Ord(include_incognito),
|
||||||
|
CefGetData(target_browser)) <> 0;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TCefExtensionHandlerRef.GetExtensionResource(const extension : ICefExtension;
|
||||||
|
const browser : ICefBrowser;
|
||||||
|
const file_ : ustring;
|
||||||
|
const callback : ICefGetExtensionResourceCallback): boolean;
|
||||||
|
var
|
||||||
|
TempFile : TCefString;
|
||||||
|
begin
|
||||||
|
TempFile := CefString(file_);
|
||||||
|
Result := PCefExtensionHandler(FData).get_extension_resource(PCefExtensionHandler(FData),
|
||||||
|
CefGetData(extension),
|
||||||
|
CefGetData(browser),
|
||||||
|
@TempFile,
|
||||||
|
CefGetData(callback)) <> 0;
|
||||||
|
end;
|
||||||
|
|
||||||
|
class function TCefExtensionHandlerRef.UnWrap(data: Pointer): ICefExtensionHandler;
|
||||||
|
begin
|
||||||
|
if (data <> nil) then
|
||||||
|
Result := Create(data) as ICefExtensionHandler
|
||||||
|
else
|
||||||
|
Result := nil;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
// ***************************************************************************
|
||||||
|
// ************************ TCefExtensionHandlerOwn **************************
|
||||||
|
// ***************************************************************************
|
||||||
|
|
||||||
|
procedure cef_extension_handler_on_extension_load_failed(self : PCefExtensionHandler;
|
||||||
|
result : TCefErrorcode); stdcall;
|
||||||
|
begin
|
||||||
|
TCefExtensionHandlerOwn(CefGetObject(self)).OnExtensionLoadFailed(result);
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure cef_extension_handler_on_extension_loaded(self : PCefExtensionHandler;
|
||||||
|
extension : PCefExtension); stdcall;
|
||||||
|
begin
|
||||||
|
TCefExtensionHandlerOwn(CefGetObject(self)).OnExtensionLoaded(TCefExtensionRef.UnWrap(extension));
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure cef_extension_handler_on_extension_unloaded(self : PCefExtensionHandler;
|
||||||
|
extension : PCefExtension); stdcall;
|
||||||
|
begin
|
||||||
|
TCefExtensionHandlerOwn(CefGetObject(self)).OnExtensionUnloaded(TCefExtensionRef.UnWrap(extension));
|
||||||
|
end;
|
||||||
|
|
||||||
|
function cef_extension_handler_on_before_background_browser(self : PCefExtensionHandler;
|
||||||
|
extension : PCefExtension;
|
||||||
|
const url : PCefString;
|
||||||
|
var client : PCefClient;
|
||||||
|
settings : PCefBrowserSettings) : Integer; stdcall;
|
||||||
|
var
|
||||||
|
TempClient : ICefClient;
|
||||||
|
TempOldCli : pointer;
|
||||||
|
begin
|
||||||
|
TempClient := TCefClientRef.UnWrap(client);
|
||||||
|
TempOldCli := pointer(TempClient);
|
||||||
|
|
||||||
|
Result := Ord(TCefExtensionHandlerOwn(CefGetObject(self)).OnBeforeBackgroundBrowser(TCefExtensionRef.UnWrap(extension),
|
||||||
|
CefString(url),
|
||||||
|
TempClient,
|
||||||
|
settings^));
|
||||||
|
|
||||||
|
if (TempClient = nil) then
|
||||||
|
client := nil
|
||||||
|
else
|
||||||
|
if (TempOldCli <> pointer(TempClient)) then
|
||||||
|
client := CefGetData(TempClient);
|
||||||
|
end;
|
||||||
|
|
||||||
|
function cef_extension_handler_get_active_browser(self : PCefExtensionHandler;
|
||||||
|
extension : PCefExtension;
|
||||||
|
browser : PCefBrowser;
|
||||||
|
include_incognito : Integer): PCefBrowser; stdcall;
|
||||||
|
begin
|
||||||
|
Result := CefGetData(TCefExtensionHandlerOwn(CefGetObject(self)).GetActiveBrowser(TCefExtensionRef.UnWrap(extension),
|
||||||
|
TCefBrowserRef.UnWrap(browser),
|
||||||
|
include_incognito <> 0));
|
||||||
|
end;
|
||||||
|
|
||||||
|
function cef_extension_handler_can_access_browser(self : PCefExtensionHandler;
|
||||||
|
extension : PCefExtension;
|
||||||
|
browser : PCefBrowser;
|
||||||
|
include_incognito : Integer;
|
||||||
|
target_browser : PCefBrowser): Integer; stdcall;
|
||||||
|
begin
|
||||||
|
Result := Ord(TCefExtensionHandlerOwn(CefGetObject(self)).CanAccessBrowser(TCefExtensionRef.UnWrap(extension),
|
||||||
|
TCefBrowserRef.UnWrap(browser),
|
||||||
|
include_incognito <> 0,
|
||||||
|
TCefBrowserRef.UnWrap(target_browser)));
|
||||||
|
end;
|
||||||
|
|
||||||
|
function cef_extension_handler_get_extension_resource(self : PCefExtensionHandler;
|
||||||
|
extension : PCefExtension;
|
||||||
|
browser : PCefBrowser;
|
||||||
|
const file_ : PCefString;
|
||||||
|
callback : PCefGetExtensionResourceCallback): Integer; stdcall;
|
||||||
|
begin
|
||||||
|
Result := Ord(TCefExtensionHandlerOwn(CefGetObject(self)).GetExtensionResource(TCefExtensionRef.UnWrap(extension),
|
||||||
|
TCefBrowserRef.UnWrap(browser),
|
||||||
|
CefString(file_),
|
||||||
|
TCefGetExtensionResourceCallbackRef.UnWrap(callback)));
|
||||||
|
end;
|
||||||
|
|
||||||
|
constructor TCefExtensionHandlerOwn.Create;
|
||||||
|
begin
|
||||||
|
inherited CreateData(SizeOf(TCefExtensionHandler));
|
||||||
|
|
||||||
|
with PCefExtensionHandler(FData)^ do
|
||||||
|
begin
|
||||||
|
on_extension_load_failed := cef_extension_handler_on_extension_load_failed;
|
||||||
|
on_extension_loaded := cef_extension_handler_on_extension_loaded;
|
||||||
|
on_extension_unloaded := cef_extension_handler_on_extension_unloaded;
|
||||||
|
on_before_background_browser := cef_extension_handler_on_before_background_browser;
|
||||||
|
get_active_browser := cef_extension_handler_get_active_browser;
|
||||||
|
can_access_browser := cef_extension_handler_can_access_browser;
|
||||||
|
get_extension_resource := cef_extension_handler_get_extension_resource;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TCefExtensionHandlerOwn.OnExtensionLoadFailed(result: TCefErrorcode);
|
||||||
|
begin
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TCefExtensionHandlerOwn.OnExtensionLoaded(const extension: ICefExtension);
|
||||||
|
begin
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TCefExtensionHandlerOwn.OnExtensionUnloaded(const extension: ICefExtension);
|
||||||
|
begin
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TCefExtensionHandlerOwn.OnBeforeBackgroundBrowser(const extension : ICefExtension;
|
||||||
|
const url : ustring;
|
||||||
|
var client : ICefClient;
|
||||||
|
var settings : TCefBrowserSettings) : boolean;
|
||||||
|
begin
|
||||||
|
Result := True;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TCefExtensionHandlerOwn.GetActiveBrowser(const extension : ICefExtension;
|
||||||
|
const browser : ICefBrowser;
|
||||||
|
include_incognito : boolean): ICefBrowser;
|
||||||
|
begin
|
||||||
|
Result := nil;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TCefExtensionHandlerOwn.CanAccessBrowser(const extension : ICefExtension;
|
||||||
|
const browser : ICefBrowser;
|
||||||
|
include_incognito : boolean;
|
||||||
|
const target_browser : ICefBrowser): boolean;
|
||||||
|
begin
|
||||||
|
Result := True;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TCefExtensionHandlerOwn.GetExtensionResource(const extension : ICefExtension;
|
||||||
|
const browser : ICefBrowser;
|
||||||
|
const file_ : ustring;
|
||||||
|
const callback : ICefGetExtensionResourceCallback): boolean;
|
||||||
|
begin
|
||||||
|
Result := False;
|
||||||
|
end;
|
||||||
|
|
||||||
|
end.
|
@ -96,13 +96,13 @@ end;
|
|||||||
|
|
||||||
constructor TCefGeolocationHandlerOwn.Create;
|
constructor TCefGeolocationHandlerOwn.Create;
|
||||||
begin
|
begin
|
||||||
|
|
||||||
inherited CreateData(SizeOf(TCefGeolocationHandler));
|
inherited CreateData(SizeOf(TCefGeolocationHandler));
|
||||||
|
|
||||||
with PCefGeolocationHandler(FData)^ do
|
with PCefGeolocationHandler(FData)^ do
|
||||||
begin
|
begin
|
||||||
on_request_geolocation_permission := cef_geolocation_handler_on_request_geolocation_permission;
|
on_request_geolocation_permission := cef_geolocation_handler_on_request_geolocation_permission;
|
||||||
on_cancel_geolocation_permission := cef_geolocation_handler_on_cancel_geolocation_permission;
|
on_cancel_geolocation_permission := cef_geolocation_handler_on_cancel_geolocation_permission;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
85
source/uCEFGetExtensionResourceCallback.pas
Normal file
85
source/uCEFGetExtensionResourceCallback.pas
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
// ************************************************************************
|
||||||
|
// ***************************** CEF4Delphi *******************************
|
||||||
|
// ************************************************************************
|
||||||
|
//
|
||||||
|
// CEF4Delphi is based on DCEF3 which uses CEF3 to embed a chromium-based
|
||||||
|
// browser in Delphi applications.
|
||||||
|
//
|
||||||
|
// The original license of DCEF3 still applies to CEF4Delphi.
|
||||||
|
//
|
||||||
|
// For more information about CEF4Delphi visit :
|
||||||
|
// https://www.briskbard.com/index.php?lang=en&pageid=cef
|
||||||
|
//
|
||||||
|
// Copyright © 2017 Salvador Díaz Fau. All rights reserved.
|
||||||
|
//
|
||||||
|
// ************************************************************************
|
||||||
|
// ************ vvvv Original license and comments below vvvv *************
|
||||||
|
// ************************************************************************
|
||||||
|
(*
|
||||||
|
* Delphi Chromium Embedded 3
|
||||||
|
*
|
||||||
|
* Usage allowed under the restrictions of the Lesser GNU General Public License
|
||||||
|
* or alternatively the restrictions of the Mozilla Public License 1.1
|
||||||
|
*
|
||||||
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||||
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
||||||
|
* the specific language governing rights and limitations under the License.
|
||||||
|
*
|
||||||
|
* Unit owner : Henri Gourvest <hgourvest@gmail.com>
|
||||||
|
* Web site : http://www.progdigy.com
|
||||||
|
* Repository : http://code.google.com/p/delphichromiumembedded/
|
||||||
|
* Group : http://groups.google.com/group/delphichromiumembedded
|
||||||
|
*
|
||||||
|
* Embarcadero Technologies, Inc is not permitted to use or redistribute
|
||||||
|
* this source code without explicit permission.
|
||||||
|
*
|
||||||
|
*)
|
||||||
|
|
||||||
|
unit uCEFGetExtensionResourceCallback;
|
||||||
|
|
||||||
|
{$IFNDEF CPUX64}
|
||||||
|
{$ALIGN ON}
|
||||||
|
{$MINENUMSIZE 4}
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
|
{$I cef.inc}
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
uCEFBaseRefCounted, uCEFInterfaces, uCEFTypes;
|
||||||
|
|
||||||
|
type
|
||||||
|
TCefGetExtensionResourceCallbackRef = class(TCefBaseRefCountedRef, ICefGetExtensionResourceCallback)
|
||||||
|
protected
|
||||||
|
procedure Cont(const stream: ICefStreamReader);
|
||||||
|
procedure Cancel;
|
||||||
|
|
||||||
|
public
|
||||||
|
class function UnWrap(data: Pointer): ICefGetExtensionResourceCallback;
|
||||||
|
end;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
uses
|
||||||
|
uCEFMiscFunctions;
|
||||||
|
|
||||||
|
procedure TCefGetExtensionResourceCallbackRef.Cont(const stream: ICefStreamReader);
|
||||||
|
begin
|
||||||
|
PCefGetExtensionResourceCallback(FData).cont(FData, CefGetData(stream));
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TCefGetExtensionResourceCallbackRef.Cancel;
|
||||||
|
begin
|
||||||
|
PCefGetExtensionResourceCallback(FData).cancel(FData);
|
||||||
|
end;
|
||||||
|
|
||||||
|
class function TCefGetExtensionResourceCallbackRef.UnWrap(data: Pointer): ICefGetExtensionResourceCallback;
|
||||||
|
begin
|
||||||
|
if (data <> nil) then
|
||||||
|
Result := Create(data) as ICefGetExtensionResourceCallback
|
||||||
|
else
|
||||||
|
Result := nil;
|
||||||
|
end;
|
||||||
|
|
||||||
|
end.
|
@ -96,6 +96,11 @@ type
|
|||||||
ICefBrowserProcessHandler = interface;
|
ICefBrowserProcessHandler = interface;
|
||||||
ICefRenderProcessHandler = interface;
|
ICefRenderProcessHandler = interface;
|
||||||
ICefProcessMessage = interface;
|
ICefProcessMessage = interface;
|
||||||
|
ICefLifeSpanHandler = interface;
|
||||||
|
ICefGetExtensionResourceCallback = interface;
|
||||||
|
ICefExtensionHandler = interface;
|
||||||
|
ICefExtension = interface;
|
||||||
|
ICefStreamReader = interface;
|
||||||
|
|
||||||
TCefv8ValueArray = array of ICefv8Value;
|
TCefv8ValueArray = array of ICefv8Value;
|
||||||
TCefX509CertificateArray = array of ICefX509Certificate;
|
TCefX509CertificateArray = array of ICefX509Certificate;
|
||||||
@ -1197,6 +1202,37 @@ type
|
|||||||
function DoClose(const browser: ICefBrowser): Boolean;
|
function DoClose(const browser: ICefBrowser): Boolean;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
ICefGetExtensionResourceCallback = interface(ICefBaseRefCounted)
|
||||||
|
['{579C8602-8252-40D0-9E0A-501F32C36C42}']
|
||||||
|
procedure cont(const stream: ICefStreamReader);
|
||||||
|
procedure cancel;
|
||||||
|
end;
|
||||||
|
|
||||||
|
ICefExtensionHandler = interface(ICefBaseRefCounted)
|
||||||
|
['{3234008F-D809-459D-963D-23BA50219648}']
|
||||||
|
procedure OnExtensionLoadFailed(result: TCefErrorcode);
|
||||||
|
procedure OnExtensionLoaded(const extension: ICefExtension);
|
||||||
|
procedure OnExtensionUnloaded(const extension: ICefExtension);
|
||||||
|
function OnBeforeBackgroundBrowser(const extension: ICefExtension; const url: ustring; var client: ICefClient; var settings: TCefBrowserSettings) : boolean;
|
||||||
|
function GetActiveBrowser(const extension: ICefExtension; const browser: ICefBrowser; include_incognito: boolean): ICefBrowser;
|
||||||
|
function CanAccessBrowser(const extension: ICefExtension; const browser: ICefBrowser; include_incognito: boolean; const target_browser: ICefBrowser): boolean;
|
||||||
|
function GetExtensionResource(const extension: ICefExtension; const browser: ICefBrowser; const file_: ustring; const callback: ICefGetExtensionResourceCallback): boolean;
|
||||||
|
end;
|
||||||
|
|
||||||
|
ICefExtension = interface(ICefBaseRefCounted)
|
||||||
|
['{D30D1C64-A26F-49C0-AEB7-C55EC68951CA}']
|
||||||
|
function GetIdentifier : ustring;
|
||||||
|
function GetPath : ustring;
|
||||||
|
function GetManifest : ICefDictionaryValue;
|
||||||
|
function IsSame(const that : ICefExtension) : boolean;
|
||||||
|
function GetHandler : ICefExtensionHandler;
|
||||||
|
function GetLoaderContext: ICefRequestContext;
|
||||||
|
function IsLoaded : boolean;
|
||||||
|
procedure unload;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
ICefLoadHandler = interface(ICefBaseRefCounted)
|
ICefLoadHandler = interface(ICefBaseRefCounted)
|
||||||
['{2C63FB82-345D-4A5B-9858-5AE7A85C9F49}']
|
['{2C63FB82-345D-4A5B-9858-5AE7A85C9F49}']
|
||||||
procedure OnLoadingStateChange(const browser: ICefBrowser; isLoading, canGoBack, canGoForward: Boolean);
|
procedure OnLoadingStateChange(const browser: ICefBrowser; isLoading, canGoBack, canGoForward: Boolean);
|
||||||
|
@ -128,6 +128,9 @@ type
|
|||||||
PCefKeyboardHandler = ^TCefKeyboardHandler;
|
PCefKeyboardHandler = ^TCefKeyboardHandler;
|
||||||
PCefKeyEvent = ^TCefKeyEvent;
|
PCefKeyEvent = ^TCefKeyEvent;
|
||||||
PCefLifeSpanHandler = ^TCefLifeSpanHandler;
|
PCefLifeSpanHandler = ^TCefLifeSpanHandler;
|
||||||
|
PCefGetExtensionResourceCallback = ^TCefGetExtensionResourceCallback;
|
||||||
|
PCefExtensionHandler = ^TCefExtensionHandler;
|
||||||
|
PCefExtension = ^TCefExtension;
|
||||||
PCefPopupFeatures = ^TCefPopupFeatures;
|
PCefPopupFeatures = ^TCefPopupFeatures;
|
||||||
PCefBrowserSettings = ^TCefBrowserSettings;
|
PCefBrowserSettings = ^TCefBrowserSettings;
|
||||||
PCefLoadHandler = ^TCefLoadHandler;
|
PCefLoadHandler = ^TCefLoadHandler;
|
||||||
@ -504,8 +507,8 @@ type
|
|||||||
FILE_DIALOG_OPEN_FOLDER,
|
FILE_DIALOG_OPEN_FOLDER,
|
||||||
FILE_DIALOG_SAVE,
|
FILE_DIALOG_SAVE,
|
||||||
FILE_DIALOG_TYPE_MASK = $FF,
|
FILE_DIALOG_TYPE_MASK = $FF,
|
||||||
FILE_DIALOG_OVERWRITEPROMPT_FLAG = $01000000,
|
FILE_DIALOG_OVERWRITEPROMPT_FLAG = $01000000,
|
||||||
FILE_DIALOG_HIDEREADONLY_FLAG = $02000000
|
FILE_DIALOG_HIDEREADONLY_FLAG = $02000000
|
||||||
);
|
);
|
||||||
|
|
||||||
// /include/internal/cef_types.h (cef_focus_source_t)
|
// /include/internal/cef_types.h (cef_focus_source_t)
|
||||||
@ -1155,6 +1158,38 @@ type
|
|||||||
on_before_close: procedure(self: PCefLifeSpanHandler; browser: PCefBrowser); stdcall;
|
on_before_close: procedure(self: PCefLifeSpanHandler; browser: PCefBrowser); stdcall;
|
||||||
end;
|
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)
|
// /include/internal/cef_types.h (cef_popup_features_t)
|
||||||
TCefPopupFeatures = record
|
TCefPopupFeatures = record
|
||||||
x: Integer;
|
x: Integer;
|
||||||
@ -1589,7 +1624,7 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
TCookie = record
|
TCookie = record
|
||||||
name : ustring;
|
name : ustring;
|
||||||
value : ustring;
|
value : ustring;
|
||||||
domain : ustring;
|
domain : ustring;
|
||||||
path : ustring;
|
path : ustring;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user