You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-22 22:17:48 +02:00
Fixed TChromium.DownloadBubble issue
Define LCL_FULLVERSION in Delphi to avoid compiler warnings
This commit is contained in:
@ -7054,7 +7054,10 @@ begin
|
|||||||
UpdatePreference(aBrowser, 'performance_tuning.battery_saver_mode.state', integer(FBatterySaverModeState));
|
UpdatePreference(aBrowser, 'performance_tuning.battery_saver_mode.state', integer(FBatterySaverModeState));
|
||||||
|
|
||||||
if (FDownloadBubble <> STATE_DEFAULT) then
|
if (FDownloadBubble <> STATE_DEFAULT) then
|
||||||
UpdatePreference(aBrowser, 'download_bubble_enabled', (FDownloadBubble = STATE_ENABLED));
|
begin
|
||||||
|
UpdatePreference(aBrowser, 'download_bubble.partial_view_enabled', (FDownloadBubble = STATE_ENABLED));
|
||||||
|
UpdatePreference(aBrowser, 'download_bubble_enabled', (FDownloadBubble = STATE_ENABLED));
|
||||||
|
end;
|
||||||
|
|
||||||
if assigned(FOnPrefsUpdated) then
|
if assigned(FOnPrefsUpdated) then
|
||||||
FOnPrefsUpdated(self);
|
FOnPrefsUpdated(self);
|
||||||
|
@ -21,6 +21,12 @@ uses
|
|||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
uCEFLinuxTypes, uCEFTypes;
|
uCEFLinuxTypes, uCEFTypes;
|
||||||
|
|
||||||
|
{$IFNDEF FPC}
|
||||||
|
const
|
||||||
|
// We define this constant only to avoid warnings in Delphi
|
||||||
|
LCL_FULLVERSION = 3000001;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{$IFDEF LINUX}
|
{$IFDEF LINUX}
|
||||||
procedure GdkEventKeyToCEFKeyEvent(GdkEvent: PGdkEventKey; var aCEFKeyEvent : TCEFKeyEvent);
|
procedure GdkEventKeyToCEFKeyEvent(GdkEvent: PGdkEventKey; var aCEFKeyEvent : TCEFKeyEvent);
|
||||||
function KeyboardCodeFromXKeysym(keysym : uint32) : integer;
|
function KeyboardCodeFromXKeysym(keysym : uint32) : integer;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"UpdateLazPackages" : [
|
"UpdateLazPackages" : [
|
||||||
{
|
{
|
||||||
"ForceNotify" : true,
|
"ForceNotify" : true,
|
||||||
"InternalVersion" : 611,
|
"InternalVersion" : 612,
|
||||||
"Name" : "cef4delphi_lazarus.lpk",
|
"Name" : "cef4delphi_lazarus.lpk",
|
||||||
"Version" : "125.0.22"
|
"Version" : "125.0.22"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user