1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-06-22 22:17:48 +02:00

Added support for Lazarus/FPC (windows 32bit)

This commit is contained in:
Salvador Díaz Fau
2018-05-12 14:50:54 +02:00
parent 294a245250
commit dd5f7f42c4
220 changed files with 6385 additions and 4281 deletions
demos
CookieVisitor
CustomResourceBrowser
DOMVisitor
ExternalPumpBrowser
FMXExternalPumpBrowser
FullScreenBrowser
JavaScript
MDIBrowser
MDIExternalPumpBrowser
MiniBrowser
OSRExternalPumpBrowser
PopupBrowser
PopupBrowser2
ResponseFilterBrowser
SchemeRegistrationBrowser
SimpleBrowser
SimpleBrowser2
SimpleExternalPumpBrowser
SimpleFMXBrowser
SimpleLazarusBrowser
SimpleOSRBrowser
SimpleServer
SubProcess
TabbedBrowser
ToolBoxBrowser
packages
source
00-DeleteDCUs.batcef.inctbufferpanel.lrstcefservercomponent.lrstcefwindowparent.lrstcefworkscheduler.lrstchromium.lrstchromiumwindow.lrsuBufferPanel.pasuCEFAccessibilityHandler.pasuCEFApp.pasuCEFApplication.pasuCEFAuthCallback.pasuCEFBaseRefCounted.pasuCEFBaseScopedWrapper.pasuCEFBeforeDownloadCallback.pasuCEFBinaryValue.pasuCEFBrowser.pasuCEFBrowserProcessHandler.pasuCEFCallback.pasuCEFChromium.pasuCEFChromiumEvents.pasuCEFChromiumFontOptions.pasuCEFChromiumOptions.pasuCEFChromiumWindow.pasuCEFClient.pasuCEFCommandLine.pasuCEFCompletionCallback.pasuCEFConstants.pasuCEFContextMenuHandler.pasuCEFContextMenuParams.pasuCEFCookieManager.pasuCEFCookieVisitor.pasuCEFCustomStreamReader.pasuCEFDeleteCookiesCallback.pasuCEFDialogHandler.pasuCEFDictionaryValue.pasuCEFDisplayHandler.pasuCEFDomDocument.pasuCEFDomNode.pasuCEFDomVisitor.pasuCEFDownLoadItem.pasuCEFDownloadHandler.pasuCEFDownloadImageCallBack.pasuCEFDownloadItemCallback.pasuCEFDragAndDropMgr.pasuCEFDragData.pasuCEFDragHandler.pasuCEFEndTracingCallback.pasuCEFExtension.pasuCEFExtensionHandler.pasuCEFFileDialogCallback.pasuCEFFindHandler.pasuCEFFocusHandler.pasuCEFFrame.pasuCEFGetExtensionResourceCallback.pasuCEFImage.pasuCEFInterfaces.pasuCEFJsDialogCallback.pasuCEFJsDialogHandler.pasuCEFKeyboardHandler.pasuCEFLibFunctions.pasuCEFLifeSpanHandler.pasuCEFListValue.pasuCEFLoadHandler.pasuCEFMenuModel.pasuCEFMenuModelDelegate.pasuCEFMiscFunctions.pasuCEFNavigationEntry.pasuCEFNavigationEntryVisitor.pasuCEFPDFPrintCallback.pasuCEFPDFPrintOptions.pasuCEFPostData.pasuCEFPostDataElement.pasuCEFPrintSettings.pasuCEFProcessMessage.pasuCEFRegisterCDMCallback.pasuCEFRenderHandler.pasuCEFRenderProcessHandler.pasuCEFRequest.pasuCEFRequestCallback.pasuCEFRequestContext.pasuCEFRequestContextHandler.pasuCEFRequestHandler.pasuCEFResolveCallback.pasuCEFResourceBundle.pasuCEFResourceBundleHandler.pasuCEFResourceHandler.pasuCEFResponse.pasuCEFResponseFilter.pasuCEFRunContextMenuCallback.pasuCEFRunFileDialogCallback.pasuCEFSSLStatus.pasuCEFSchemeHandlerFactory.pasuCEFSchemeRegistrar.pasuCEFSelectClientCertificateCallback.pasuCEFServer.pasuCEFServerComponent.pasuCEFServerEvents.pasuCEFServerHandler.pasuCEFSetCookieCallback.pasuCEFSslInfo.pasuCEFStreamReader.pasuCEFStreamWriter.pasuCEFStringList.pasuCEFStringMap.pasuCEFStringMultimap.pasuCEFStringVisitor.pasuCEFTask.pasuCEFTaskRunner.pasuCEFThread.pasuCEFTypes.pasuCEFUrlRequest.pasuCEFUrlrequestClient.pasuCEFV8Exception.pasuCEFValue.pasuCEFWaitableEvent.pasuCEFWebPluginInfo.pasuCEFWebPluginInfoVisitor.pasuCEFWebPluginUnstableCallback.pasuCEFWindowParent.pasuCEFWorkScheduler.pasuCEFWorkSchedulerThread.pasuCEFWriteHandler.pasuCEFX509CertPrincipal.pasuCEFX509Certificate.pasuCEFXmlReader.pasuCEFZipReader.pasuCEFv8Accessor.pasuCEFv8ArrayBufferReleaseCallback.pasuCEFv8Context.pasuCEFv8Handler.pasuCEFv8Interceptor.pasuCEFv8StackFrame.pasuCEFv8StackTrace.pasuCEFv8Types.pasuCEFv8Value.pasuFMXBufferPanel.pasuFMXChromium.pasuFMXWindowParent.pasuFMXWorkScheduler.pasuOLEDragAndDrop.pas

@ -10,7 +10,7 @@
// For more information about CEF4Delphi visit :
// https://www.briskbard.com/index.php?lang=en&pageid=cef
//
// Copyright � 2018 Salvador Daz Fau. All rights reserved.
// Copyright � 2018 Salvador Diaz Fau. All rights reserved.
//
// ************************************************************************
// ************ vvvv Original license and comments below vvvv *************
@ -37,6 +37,10 @@
unit uCEFWebPluginInfoVisitor;
{$IFDEF FPC}
{$MODE OBJFPC}{$H+}
{$ENDIF}
{$IFNDEF CPUX64}
{$ALIGN ON}
{$MINENUMSIZE 4}
@ -58,8 +62,6 @@ type
constructor Create; virtual;
end;
TCefWebPluginInfoVisitorProc = {$IFDEF DELPHI12_UP}reference to{$ENDIF} function(const info: ICefWebPluginInfo; count, total: Integer): Boolean;
TCefFastWebPluginInfoVisitor = class(TCefWebPluginInfoVisitorOwn)
protected
FProc: TCefWebPluginInfoVisitorProc;
@ -94,7 +96,7 @@ constructor TCefWebPluginInfoVisitorOwn.Create;
begin
inherited CreateData(SizeOf(TCefWebPluginInfoVisitor));
PCefWebPluginInfoVisitor(FData).visit := cef_web_plugin_info_visitor_visit;
PCefWebPluginInfoVisitor(FData)^.visit := {$IFDEF FPC}@{$ENDIF}cef_web_plugin_info_visitor_visit;
end;
function TCefWebPluginInfoVisitorOwn.Visit(const info: ICefWebPluginInfo; count, total: Integer): Boolean;
@ -104,15 +106,14 @@ end;
// TCefFastWebPluginInfoVisitor
constructor TCefFastWebPluginInfoVisitor.Create(
const proc: TCefWebPluginInfoVisitorProc);
constructor TCefFastWebPluginInfoVisitor.Create(const proc: TCefWebPluginInfoVisitorProc);
begin
inherited Create;
FProc := proc;
end;
function TCefFastWebPluginInfoVisitor.Visit(const info: ICefWebPluginInfo;
count, total: Integer): Boolean;
function TCefFastWebPluginInfoVisitor.Visit(const info: ICefWebPluginInfo; count, total: Integer): Boolean;
begin
Result := FProc(info, count, total);
end;