You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-08-14 21:42:50 +02:00
Fixed build issue in Android projects although it's not supported
This commit is contained in:
@@ -48,6 +48,11 @@ const
|
|||||||
CHROMEELF_DLL = '';
|
CHROMEELF_DLL = '';
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
|
{$IFDEF ANDROID}
|
||||||
|
LIBCEF_DLL = '';
|
||||||
|
CHROMEELF_DLL = '';
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
// for InitLibLocationFromArgs
|
// for InitLibLocationFromArgs
|
||||||
LIBCEF_PAK = 'cef.pak';
|
LIBCEF_PAK = 'cef.pak';
|
||||||
LIBCEF_LOCALE_DIR = 'locales';
|
LIBCEF_LOCALE_DIR = 'locales';
|
||||||
|
@@ -70,7 +70,7 @@ implementation
|
|||||||
// It's also necessary to call "Reparent" to add this component as a child component to your form.
|
// It's also necessary to call "Reparent" to add this component as a child component to your form.
|
||||||
|
|
||||||
uses
|
uses
|
||||||
System.SysUtils, FMX.Platform, FMX.Platform.Win,
|
System.SysUtils, FMX.Platform, {$IFDEF MSWINDOWS}FMX.Platform.Win,{$ENDIF}
|
||||||
uCEFApplicationCore;
|
uCEFApplicationCore;
|
||||||
|
|
||||||
{$IFDEF DELPHI17_UP}
|
{$IFDEF DELPHI17_UP}
|
||||||
@@ -159,8 +159,9 @@ end;
|
|||||||
procedure TFMXWindowParent.Notification(AComponent: TComponent; Operation: TOperation);
|
procedure TFMXWindowParent.Notification(AComponent: TComponent; Operation: TOperation);
|
||||||
begin
|
begin
|
||||||
inherited Notification(AComponent, Operation);
|
inherited Notification(AComponent, Operation);
|
||||||
|
{$IFDEF MSWINDOWS}
|
||||||
if (Operation = opRemove) and (AComponent = FChromium) then FChromium := nil;
|
if (Operation = opRemove) and (AComponent = FChromium) then FChromium := nil;
|
||||||
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
@@ -311,6 +311,12 @@ procedure WindowInfoAsPopUp(var aWindowInfo : TCefWindowInfo; aParent : TCefWind
|
|||||||
procedure WindowInfoAsWindowless(var aWindowInfo : TCefWindowInfo; aParent : TCefWindowHandle; const aWindowName : ustring = '');
|
procedure WindowInfoAsWindowless(var aWindowInfo : TCefWindowInfo; aParent : TCefWindowHandle; const aWindowName : ustring = '');
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
|
{$IFDEF ANDROID}
|
||||||
|
procedure WindowInfoAsChild(var aWindowInfo : TCefWindowInfo; aParent : TCefWindowHandle; aRect : TRect; const aWindowName : ustring = ''; aExStyle : DWORD = 0);
|
||||||
|
procedure WindowInfoAsPopUp(var aWindowInfo : TCefWindowInfo; aParent : TCefWindowHandle; const aWindowName : ustring = ''; aExStyle : DWORD = 0);
|
||||||
|
procedure WindowInfoAsWindowless(var aWindowInfo : TCefWindowInfo; aParent : TCefWindowHandle; const aWindowName : ustring = ''; aExStyle : DWORD = 0);
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{$IFDEF MSWINDOWS}
|
{$IFDEF MSWINDOWS}
|
||||||
function ProcessUnderWow64(hProcess: THandle; Wow64Process: PBOOL): BOOL; stdcall; external Kernel32DLL name 'IsWow64Process';
|
function ProcessUnderWow64(hProcess: THandle; Wow64Process: PBOOL): BOOL; stdcall; external Kernel32DLL name 'IsWow64Process';
|
||||||
function PathIsRelativeAnsi(pszPath: LPCSTR): BOOL; stdcall; external SHLWAPIDLL name 'PathIsRelativeA';
|
function PathIsRelativeAnsi(pszPath: LPCSTR): BOOL; stdcall; external SHLWAPIDLL name 'PathIsRelativeA';
|
||||||
@@ -1465,6 +1471,23 @@ begin
|
|||||||
end;
|
end;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
|
{$IFDEF ANDROID}
|
||||||
|
procedure WindowInfoAsChild(var aWindowInfo : TCefWindowInfo; aParent : TCefWindowHandle; aRect : TRect; const aWindowName : ustring; aExStyle : DWORD);
|
||||||
|
begin
|
||||||
|
//
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure WindowInfoAsPopUp(var aWindowInfo : TCefWindowInfo; aParent : TCefWindowHandle; const aWindowName : ustring; aExStyle : DWORD);
|
||||||
|
begin
|
||||||
|
//
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure WindowInfoAsWindowless(var aWindowInfo : TCefWindowInfo; aParent : TCefWindowHandle; const aWindowName : ustring; aExStyle : DWORD);
|
||||||
|
begin
|
||||||
|
//
|
||||||
|
end;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
function CefIsCertStatusError(Status : TCefCertStatus) : boolean;
|
function CefIsCertStatusError(Status : TCefCertStatus) : boolean;
|
||||||
begin
|
begin
|
||||||
Result := (GlobalCEFApp <> nil) and
|
Result := (GlobalCEFApp <> nil) and
|
||||||
|
@@ -325,13 +325,37 @@ type
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
TCefCursorHandle = type LongWord;
|
TCefCursorHandle = type LongWord;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
/// <summary>
|
||||||
|
/// Native event handle.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types_linux.h">CEF source file: /include/internal/cef_types_linux.h (cef_event_handle_t)</see></para>
|
||||||
|
/// </remarks>
|
||||||
|
TCefEventHandle = type PXEvent;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
|
{$IFDEF ANDROID}
|
||||||
|
/// <summary>
|
||||||
|
/// Native Window handle.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types_win.h">CEF source file: /include/internal/cef_types_win.h (cef_window_handle_t)</see></para>
|
||||||
|
/// </remarks>
|
||||||
|
TCefWindowHandle = type UIntPtr;
|
||||||
|
/// <summary>
|
||||||
|
/// Native Cursor handle.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types_win.h">CEF source file: /include/internal/cef_types_win.h (cef_cursor_handle_t)</see></para>
|
||||||
|
/// </remarks>
|
||||||
|
TCefCursorHandle = type UIntPtr;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Native event handle.
|
/// Native event handle.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types_linux.h">CEF source file: /include/internal/cef_types_linux.h (cef_event_handle_t)</see></para>
|
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types_win.h">CEF source file: /include/internal/cef_types_win.h (cef_event_handle_t)</see></para>
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
TCefEventHandle = type PXEvent;
|
TCefEventHandle = type UIntPtr;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
"UpdateLazPackages" : [
|
"UpdateLazPackages" : [
|
||||||
{
|
{
|
||||||
"ForceNotify" : true,
|
"ForceNotify" : true,
|
||||||
"InternalVersion" : 585,
|
"InternalVersion" : 586,
|
||||||
"Name" : "cef4delphi_lazarus.lpk",
|
"Name" : "cef4delphi_lazarus.lpk",
|
||||||
"Version" : "123.0.13"
|
"Version" : "123.0.13"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user