diff --git a/README.md b/README.md index 4c6ef322..94583c03 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ The CEF binaries used by CEF4Delphi are available for download at Spotify : * [Linux ARM 64 bits](https://cef-builds.spotifycdn.com/cef_binary_125.0.19%2Bg3d8f1c9%2Bchromium-125.0.6422.112_linuxarm64.tar.bz2) * [MacOS x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_125.0.19%2Bg3d8f1c9%2Bchromium-125.0.6422.112_macosx64.tar.bz2) -CEF4Delphi was developed and tested on Delphi 12.1 and it has been tested in Delphi 6, Delphi XE, Delphi 10, Delphi 11 and Lazarus 3.2/FPC 3.2.2. CEF4Delphi includes VCL, FireMonkey (FMX) and Lazarus components. +CEF4Delphi was developed and tested on Delphi 12.1 and it has been tested in Delphi 6, Delphi XE, Delphi 10, Delphi 11 and Lazarus 3.4/FPC 3.2.2. CEF4Delphi includes VCL, FireMonkey (FMX) and Lazarus components. CEF4Delphi demos have been tested in Windows 10, Windows 11, Linux Mint 21.3 and Raspberry Pi OS. diff --git a/demos/Delphi_VCL/SimpleOSRBrowser/uSimpleOSRBrowser.pas b/demos/Delphi_VCL/SimpleOSRBrowser/uSimpleOSRBrowser.pas index 7a7cffeb..bb690fa3 100644 --- a/demos/Delphi_VCL/SimpleOSRBrowser/uSimpleOSRBrowser.pas +++ b/demos/Delphi_VCL/SimpleOSRBrowser/uSimpleOSRBrowser.pas @@ -215,6 +215,7 @@ begin GlobalCEFApp.EnableGPU := True; GlobalCEFApp.LogFile := 'debug.log'; GlobalCEFApp.LogSeverity := LOGSEVERITY_VERBOSE; + //GlobalCEFApp.ChromeRuntime := True; // If you need transparency leave the GlobalCEFApp.BackgroundColor property // with the default value or set the alpha channel to 0 @@ -288,7 +289,9 @@ begin TempKeyEvent.character := #0; TempKeyEvent.unmodified_character := #0; TempKeyEvent.focus_on_editable_field := ord(False); - + {$IFDEF DEBUG} + CefKeyEventLog(TempKeyEvent); + {$ENDIF} chrmosr.SendKeyEvent(@TempKeyEvent); Handled := (Msg.wParam in [VK_LEFT, VK_RIGHT, VK_UP, VK_DOWN, VK_TAB]); end; @@ -304,7 +307,9 @@ begin TempKeyEvent.character := #0; TempKeyEvent.unmodified_character := #0; TempKeyEvent.focus_on_editable_field := ord(False); - + {$IFDEF DEBUG} + CefKeyEventLog(TempKeyEvent); + {$ENDIF} chrmosr.SendKeyEvent(@TempKeyEvent); end; @@ -321,6 +326,9 @@ begin TempKeyEvent.focus_on_editable_field := ord(False); CefCheckAltGrPressed(Msg.wParam, TempKeyEvent); + {$IFDEF DEBUG} + CefKeyEventLog(TempKeyEvent); + {$ENDIF} chrmosr.SendKeyEvent(@TempKeyEvent); end; diff --git a/demos/Lazarus_Linux_GTK2/ExternalPumpBrowser/ExternalPumpBrowser.lpi b/demos/Lazarus_Linux_GTK2/ExternalPumpBrowser/ExternalPumpBrowser.lpi index 419bbf74..4e0451eb 100644 --- a/demos/Lazarus_Linux_GTK2/ExternalPumpBrowser/ExternalPumpBrowser.lpi +++ b/demos/Lazarus_Linux_GTK2/ExternalPumpBrowser/ExternalPumpBrowser.lpi @@ -63,6 +63,9 @@ + + + diff --git a/demos/Lazarus_Linux_GTK2/ExternalPumpBrowser/uExternalPumpBrowser.lfm b/demos/Lazarus_Linux_GTK2/ExternalPumpBrowser/uExternalPumpBrowser.lfm index a90ef30b..9b064a2f 100644 --- a/demos/Lazarus_Linux_GTK2/ExternalPumpBrowser/uExternalPumpBrowser.lfm +++ b/demos/Lazarus_Linux_GTK2/ExternalPumpBrowser/uExternalPumpBrowser.lfm @@ -10,7 +10,7 @@ object Form1: TForm1 OnCloseQuery = FormCloseQuery OnCreate = FormCreate Position = poScreenCenter - LCLVersion = '2.2.2.0' + LCLVersion = '3.4.0.0' object AddressPnl: TPanel Left = 0 Height = 23 @@ -29,8 +29,8 @@ object Form1: TForm1 Width = 35 Align = alRight Caption = 'Go' - OnClick = GoBtnClick TabOrder = 0 + OnClick = GoBtnClick end object AddressEdt: TEdit Left = 0 diff --git a/demos/Lazarus_Linux_GTK2/ExternalPumpBrowser/uExternalPumpBrowser.pas b/demos/Lazarus_Linux_GTK2/ExternalPumpBrowser/uExternalPumpBrowser.pas index 61f688b6..5f9d5d6a 100644 --- a/demos/Lazarus_Linux_GTK2/ExternalPumpBrowser/uExternalPumpBrowser.pas +++ b/demos/Lazarus_Linux_GTK2/ExternalPumpBrowser/uExternalPumpBrowser.pas @@ -104,7 +104,7 @@ procedure CreateGlobalCEFApp; begin GlobalCEFApp := TCefApplication.Create; GlobalCEFApp.ExternalMessagePump := True; - GlobalCEFApp.MultiThreadedMessageLoop := False; + GlobalCEFApp.MultiThreadedMessageLoop := False; GlobalCEFApp.OnScheduleMessagePumpWork := @GlobalCEFApp_OnScheduleMessagePumpWork; // This is a workaround for the 'GPU is not usable error' issue : diff --git a/demos/Lazarus_Linux_GTK2/MiniBrowser/uMiniBrowser.lfm b/demos/Lazarus_Linux_GTK2/MiniBrowser/uMiniBrowser.lfm index f9a56bef..0ef2052a 100644 --- a/demos/Lazarus_Linux_GTK2/MiniBrowser/uMiniBrowser.lfm +++ b/demos/Lazarus_Linux_GTK2/MiniBrowser/uMiniBrowser.lfm @@ -15,7 +15,7 @@ object MiniBrowserFrm: TMiniBrowserFrm OnCreate = FormCreate OnDestroy = FormDestroy Position = poScreenCenter - LCLVersion = '2.2.0.4' + LCLVersion = '3.4.0.0' object NavControlPnl: TPanel Left = 0 Height = 25 @@ -26,6 +26,7 @@ object MiniBrowserFrm: TMiniBrowserFrm ClientHeight = 25 ClientWidth = 1184 Enabled = False + ParentBackground = False TabOrder = 0 object NavButtonPnl: TPanel Left = 0 @@ -36,6 +37,7 @@ object MiniBrowserFrm: TMiniBrowserFrm BevelOuter = bvNone ClientHeight = 25 ClientWidth = 133 + ParentBackground = False TabOrder = 0 object BackBtn: TButton Left = 8 @@ -47,9 +49,9 @@ object MiniBrowserFrm: TMiniBrowserFrm Font.Color = clWindowText Font.Height = -19 Font.Name = 'Webdings' - OnClick = BackBtnClick ParentFont = False TabOrder = 0 + OnClick = BackBtnClick end object ForwardBtn: TButton Left = 39 @@ -61,9 +63,9 @@ object MiniBrowserFrm: TMiniBrowserFrm Font.Color = clWindowText Font.Height = -19 Font.Name = 'Webdings' - OnClick = ForwardBtnClick ParentFont = False TabOrder = 1 + OnClick = ForwardBtnClick end object ReloadBtn: TButton Left = 70 @@ -75,9 +77,9 @@ object MiniBrowserFrm: TMiniBrowserFrm Font.Color = clWindowText Font.Height = -19 Font.Name = 'Webdings' - OnClick = ReloadBtnClick ParentFont = False TabOrder = 2 + OnClick = ReloadBtnClick end object StopBtn: TButton Left = 101 @@ -89,9 +91,9 @@ object MiniBrowserFrm: TMiniBrowserFrm Font.Color = clWindowText Font.Height = -19 Font.Name = 'Webdings' - OnClick = StopBtnClick ParentFont = False TabOrder = 3 + OnClick = StopBtnClick end end object URLEditPnl: TPanel @@ -103,6 +105,7 @@ object MiniBrowserFrm: TMiniBrowserFrm BevelOuter = bvNone ClientHeight = 25 ClientWidth = 978 + ParentBackground = False TabOrder = 1 object URLCbx: TComboBox Left = 0 @@ -167,6 +170,7 @@ object MiniBrowserFrm: TMiniBrowserFrm BevelOuter = bvNone ClientHeight = 25 ClientWidth = 73 + ParentBackground = False TabOrder = 2 object ConfigBtn: TButton Left = 40 @@ -179,9 +183,9 @@ object MiniBrowserFrm: TMiniBrowserFrm Font.Height = -17 Font.Name = 'Arial' Font.Style = [fsBold] - OnClick = ConfigBtnClick ParentFont = False TabOrder = 0 + OnClick = ConfigBtnClick end object GoBtn: TButton Left = 8 @@ -195,16 +199,16 @@ object MiniBrowserFrm: TMiniBrowserFrm Font.Height = -17 Font.Name = 'Arial' Font.Style = [fsBold] - OnClick = GoBtnClick ParentFont = False TabOrder = 1 + OnClick = GoBtnClick end end end object StatusBar1: TStatusBar Left = 0 - Height = 17 - Top = 695 + Height = 18 + Top = 694 Width = 1184 Panels = < item @@ -214,7 +218,7 @@ object MiniBrowserFrm: TMiniBrowserFrm end object CEFLinkedWindowParent1: TCEFLinkedWindowParent Left = 0 - Height = 670 + Height = 669 Top = 25 Width = 1184 Align = alClient diff --git a/demos/Lazarus_Linux_GTK2/MiniBrowser/uMiniBrowser.pas b/demos/Lazarus_Linux_GTK2/MiniBrowser/uMiniBrowser.pas index ee4bfe8b..b597e9f3 100644 --- a/demos/Lazarus_Linux_GTK2/MiniBrowser/uMiniBrowser.pas +++ b/demos/Lazarus_Linux_GTK2/MiniBrowser/uMiniBrowser.pas @@ -228,7 +228,8 @@ begin GlobalCEFApp.cache := 'cache'; GlobalCEFApp.LogFile := 'debug.log'; GlobalCEFApp.LogSeverity := LOGSEVERITY_INFO; - //GlobalCEFApp.EnablePrintPreview := True; + GlobalCEFApp.EnablePrintPreview := True; + GlobalCEFApp.ChromeRuntime := True; end; {Property setters and getters} diff --git a/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/OSRExternalPumpBrowser.lpi b/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/OSRExternalPumpBrowser.lpi index a79e6658..9a8e790c 100644 --- a/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/OSRExternalPumpBrowser.lpi +++ b/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/OSRExternalPumpBrowser.lpi @@ -64,6 +64,9 @@ + + + diff --git a/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/OSRExternalPumpBrowser_sp.lpi b/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/OSRExternalPumpBrowser_sp.lpi index a16ee4a3..b6c5d0e7 100644 --- a/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/OSRExternalPumpBrowser_sp.lpi +++ b/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/OSRExternalPumpBrowser_sp.lpi @@ -1,15 +1,15 @@ - + + - <UseAppBundle Value="False"/> <ResourceType Value="res"/> @@ -23,7 +23,6 @@ </PublishOptions> <RunParams> <FormatVersion Value="2"/> - <Modes Count="0"/> </RunParams> <RequiredPackages Count="1"> <Item1> diff --git a/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/OSRExternalPumpBrowser_sp.lpr b/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/OSRExternalPumpBrowser_sp.lpr index 70423c1b..b7e6d9a4 100644 --- a/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/OSRExternalPumpBrowser_sp.lpr +++ b/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/OSRExternalPumpBrowser_sp.lpr @@ -11,7 +11,6 @@ uses begin GlobalCEFApp := TCefApplicationCore.Create; GlobalCEFApp.WindowlessRenderingEnabled := True; - GlobalCEFApp.EnableHighDPISupport := True; GlobalCEFApp.ExternalMessagePump := True; GlobalCEFApp.MultiThreadedMessageLoop := False; diff --git a/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/uosrexternalpumpbrowser.lfm b/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/uosrexternalpumpbrowser.lfm index b562d5da..66100b32 100644 --- a/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/uosrexternalpumpbrowser.lfm +++ b/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/uosrexternalpumpbrowser.lfm @@ -12,7 +12,7 @@ object Form1: TForm1 OnDestroy = FormDestroy OnHide = FormHide OnShow = FormShow - LCLVersion = '2.2.2.0' + LCLVersion = '3.4.0.0' object AddressPnl: TPanel Left = 0 Height = 30 @@ -29,9 +29,9 @@ object Form1: TForm1 Top = 1 Width = 933 Align = alClient - OnEnter = AddressEdtEnter TabOrder = 0 Text = 'https://www.google.com' + OnEnter = AddressEdtEnter end object Panel2: TPanel Left = 934 @@ -49,9 +49,9 @@ object Form1: TForm1 Width = 31 Align = alLeft Caption = 'Go' + TabOrder = 0 OnClick = GoBtnClick OnEnter = GoBtnEnter - TabOrder = 0 end object SnapshotBtn: TButton Left = 34 @@ -62,10 +62,10 @@ object Form1: TForm1 Caption = 'µ' Font.Height = -24 Font.Name = 'Webdings' - OnClick = SnapshotBtnClick - OnEnter = GoBtnEnter ParentFont = False TabOrder = 1 + OnClick = SnapshotBtnClick + OnEnter = GoBtnEnter end end end diff --git a/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/uosrexternalpumpbrowser.pas b/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/uosrexternalpumpbrowser.pas index ac115d1c..b736cb25 100644 --- a/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/uosrexternalpumpbrowser.pas +++ b/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser/uosrexternalpumpbrowser.pas @@ -175,7 +175,6 @@ procedure CreateGlobalCEFApp; begin GlobalCEFApp := TCefApplication.Create; GlobalCEFApp.WindowlessRenderingEnabled := True; - GlobalCEFApp.EnableHighDPISupport := True; GlobalCEFApp.BrowserSubprocessPath := 'OSRExternalPumpBrowser_sp'; GlobalCEFApp.BackgroundColor := CefColorSetARGB($FF, $FF, $FF, $FF); GlobalCEFApp.ExternalMessagePump := True; diff --git a/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser2/OSRExternalPumpBrowser2_sp.lpi b/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser2/OSRExternalPumpBrowser2_sp.lpi index eeb1acfd..a528593b 100644 --- a/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser2/OSRExternalPumpBrowser2_sp.lpi +++ b/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser2/OSRExternalPumpBrowser2_sp.lpi @@ -1,15 +1,15 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectOptions> - <Version Value="11"/> + <Version Value="12"/> <General> <Flags> <MainUnitHasCreateFormStatements Value="False"/> <MainUnitHasTitleStatement Value="False"/> <MainUnitHasScaledStatement Value="False"/> + <CompatibilityMode Value="True"/> </Flags> <SessionStorage Value="InProjectDir"/> - <MainUnit Value="0"/> <Title Value="OSRExternalPumpBrowser2_sp"/> <UseAppBundle Value="False"/> <ResourceType Value="res"/> @@ -23,7 +23,6 @@ </PublishOptions> <RunParams> <FormatVersion Value="2"/> - <Modes Count="0"/> </RunParams> <RequiredPackages Count="1"> <Item1> diff --git a/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser2/OSRExternalPumpBrowser2_sp.lpr b/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser2/OSRExternalPumpBrowser2_sp.lpr index ca43caee..bf20461f 100644 --- a/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser2/OSRExternalPumpBrowser2_sp.lpr +++ b/demos/Lazarus_Linux_GTK2/OSRExternalPumpBrowser2/OSRExternalPumpBrowser2_sp.lpr @@ -11,7 +11,6 @@ uses begin GlobalCEFApp := TCefApplicationCore.Create; GlobalCEFApp.WindowlessRenderingEnabled := True; - GlobalCEFApp.EnableHighDPISupport := True; GlobalCEFApp.ExternalMessagePump := True; GlobalCEFApp.MultiThreadedMessageLoop := False; diff --git a/demos/Lazarus_Linux_GTK2/SimpleBrowser/SimpleBrowser.lpi b/demos/Lazarus_Linux_GTK2/SimpleBrowser/SimpleBrowser.lpi index 696659c1..ebd06f5d 100644 --- a/demos/Lazarus_Linux_GTK2/SimpleBrowser/SimpleBrowser.lpi +++ b/demos/Lazarus_Linux_GTK2/SimpleBrowser/SimpleBrowser.lpi @@ -1,10 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectOptions> - <Version Value="11"/> + <Version Value="12"/> <General> + <Flags> + <CompatibilityMode Value="True"/> + </Flags> <SessionStorage Value="InProjectDir"/> - <MainUnit Value="0"/> <Title Value="SimpleBrowser"/> <Scaled Value="True"/> <ResourceType Value="res"/> @@ -23,7 +25,6 @@ </PublishOptions> <RunParams> <FormatVersion Value="2"/> - <Modes Count="0"/> </RunParams> <RequiredPackages Count="2"> <Item1> @@ -62,6 +63,9 @@ <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> </SearchPaths> <Linking> + <Debugging> + <DebugInfoType Value="dsDwarf3"/> + </Debugging> <Options> <Win32> <GraphicApplication Value="True"/> diff --git a/demos/Lazarus_Linux_GTK2/SimpleBrowser/SimpleBrowser.res b/demos/Lazarus_Linux_GTK2/SimpleBrowser/SimpleBrowser.res index 1adb0406..bec39b4a 100644 Binary files a/demos/Lazarus_Linux_GTK2/SimpleBrowser/SimpleBrowser.res and b/demos/Lazarus_Linux_GTK2/SimpleBrowser/SimpleBrowser.res differ diff --git a/demos/Lazarus_Linux_GTK2/SimpleBrowser2/SimpleBrowser2.lpi b/demos/Lazarus_Linux_GTK2/SimpleBrowser2/SimpleBrowser2.lpi index 7f3a0951..2f181f16 100644 --- a/demos/Lazarus_Linux_GTK2/SimpleBrowser2/SimpleBrowser2.lpi +++ b/demos/Lazarus_Linux_GTK2/SimpleBrowser2/SimpleBrowser2.lpi @@ -1,10 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectOptions> - <Version Value="11"/> + <Version Value="12"/> <General> + <Flags> + <CompatibilityMode Value="True"/> + </Flags> <SessionStorage Value="InProjectDir"/> - <MainUnit Value="0"/> <Title Value="SimpleBrowser2"/> <Scaled Value="True"/> <ResourceType Value="res"/> @@ -23,7 +25,6 @@ </PublishOptions> <RunParams> <FormatVersion Value="2"/> - <Modes Count="0"/> </RunParams> <RequiredPackages Count="2"> <Item1> @@ -63,6 +64,9 @@ <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> </SearchPaths> <Linking> + <Debugging> + <DebugInfoType Value="dsDwarf3"/> + </Debugging> <Options> <Win32> <GraphicApplication Value="True"/> diff --git a/demos/Lazarus_Linux_GTK2/SimpleBrowser2/SimpleBrowser2.res b/demos/Lazarus_Linux_GTK2/SimpleBrowser2/SimpleBrowser2.res index 1adb0406..bec39b4a 100644 Binary files a/demos/Lazarus_Linux_GTK2/SimpleBrowser2/SimpleBrowser2.res and b/demos/Lazarus_Linux_GTK2/SimpleBrowser2/SimpleBrowser2.res differ diff --git a/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/SimpleOSRBrowser.lpi b/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/SimpleOSRBrowser.lpi index b3fe49ec..ca88c08b 100644 --- a/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/SimpleOSRBrowser.lpi +++ b/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/SimpleOSRBrowser.lpi @@ -1,10 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectOptions> - <Version Value="11"/> + <Version Value="12"/> <General> + <Flags> + <CompatibilityMode Value="True"/> + </Flags> <SessionStorage Value="InProjectDir"/> - <MainUnit Value="0"/> <Title Value="SimpleOSRBrowser"/> <Scaled Value="True"/> <ResourceType Value="res"/> @@ -23,7 +25,6 @@ </PublishOptions> <RunParams> <FormatVersion Value="2"/> - <Modes Count="0"/> </RunParams> <RequiredPackages Count="2"> <Item1> @@ -63,6 +64,9 @@ <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> </SearchPaths> <Linking> + <Debugging> + <DebugInfoType Value="dsDwarf3"/> + </Debugging> <Options> <Win32> <GraphicApplication Value="True"/> diff --git a/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/SimpleOSRBrowser.res b/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/SimpleOSRBrowser.res index 1adb0406..bec39b4a 100644 Binary files a/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/SimpleOSRBrowser.res and b/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/SimpleOSRBrowser.res differ diff --git a/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/usimpleosrbrowser.lfm b/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/usimpleosrbrowser.lfm index d9ab04d1..9fdb0eb1 100644 --- a/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/usimpleosrbrowser.lfm +++ b/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/usimpleosrbrowser.lfm @@ -13,7 +13,7 @@ object Form1: TForm1 OnHide = FormHide OnShow = FormShow Position = poScreenCenter - LCLVersion = '2.0.10.0' + LCLVersion = '3.4.0.0' object AddressPnl: TPanel Left = 0 Height = 30 @@ -29,9 +29,9 @@ object Form1: TForm1 Top = 1 Width = 932 Align = alClient - OnEnter = AddressEdtEnter TabOrder = 0 Text = 'https://www.google.com' + OnEnter = AddressEdtEnter end object Panel2: TPanel Left = 933 @@ -49,9 +49,9 @@ object Form1: TForm1 Width = 31 Align = alLeft Caption = 'Go' + TabOrder = 0 OnClick = GoBtnClick OnEnter = GoBtnEnter - TabOrder = 0 end object SnapshotBtn: TButton Left = 34 @@ -62,10 +62,10 @@ object Form1: TForm1 Caption = 'µ' Font.Height = -24 Font.Name = 'Webdings' - OnClick = SnapshotBtnClick - OnEnter = GoBtnEnter ParentFont = False TabOrder = 1 + OnClick = SnapshotBtnClick + OnEnter = GoBtnEnter end end end diff --git a/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/usimpleosrbrowser.pas b/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/usimpleosrbrowser.pas index e4e853eb..e64f7a8d 100644 --- a/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/usimpleosrbrowser.pas +++ b/demos/Lazarus_Linux_GTK2/SimpleOSRBrowser/usimpleosrbrowser.pas @@ -203,7 +203,6 @@ procedure CreateGlobalCEFApp; begin GlobalCEFApp := TCefApplication.Create; GlobalCEFApp.WindowlessRenderingEnabled := True; - GlobalCEFApp.EnableHighDPISupport := True; GlobalCEFApp.BackgroundColor := CefColorSetARGB($FF, $FF, $FF, $FF); //GlobalCEFApp.LogFile := 'debug.log'; diff --git a/demos/Lazarus_Linux_GTK2/SubProcess/SubProcess.lpi b/demos/Lazarus_Linux_GTK2/SubProcess/SubProcess.lpi index db6e4d20..d530ac3e 100644 --- a/demos/Lazarus_Linux_GTK2/SubProcess/SubProcess.lpi +++ b/demos/Lazarus_Linux_GTK2/SubProcess/SubProcess.lpi @@ -1,10 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> <CONFIG> <ProjectOptions> - <Version Value="11"/> + <Version Value="12"/> <General> + <Flags> + <CompatibilityMode Value="True"/> + </Flags> <SessionStorage Value="InProjectDir"/> - <MainUnit Value="0"/> <Title Value="SubProcess"/> <Scaled Value="True"/> <ResourceType Value="res"/> @@ -23,7 +25,6 @@ </PublishOptions> <RunParams> <FormatVersion Value="2"/> - <Modes Count="0"/> </RunParams> <RequiredPackages Count="2"> <Item1> @@ -62,6 +63,9 @@ <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> </SearchPaths> <Linking> + <Debugging> + <DebugInfoType Value="dsDwarf3"/> + </Debugging> <Options> <Win32> <GraphicApplication Value="True"/> diff --git a/demos/Lazarus_Linux_GTK2/SubProcess/SubProcess.res b/demos/Lazarus_Linux_GTK2/SubProcess/SubProcess.res index 1adb0406..bec39b4a 100644 Binary files a/demos/Lazarus_Linux_GTK2/SubProcess/SubProcess.res and b/demos/Lazarus_Linux_GTK2/SubProcess/SubProcess.res differ diff --git a/demos/Lazarus_Linux_GTK2/TabbedBrowser2/uMainForm.pas b/demos/Lazarus_Linux_GTK2/TabbedBrowser2/uMainForm.pas index fe1dc5d7..27f851ff 100644 --- a/demos/Lazarus_Linux_GTK2/TabbedBrowser2/uMainForm.pas +++ b/demos/Lazarus_Linux_GTK2/TabbedBrowser2/uMainForm.pas @@ -119,6 +119,7 @@ end; procedure CreateGlobalCEFApp; begin GlobalCEFApp := TCefApplication.Create; + GlobalCEFApp.ChromeRuntime := True; GlobalCEFApp.OnContextInitialized := @GlobalCEFApp_OnContextInitialized; end; diff --git a/demos/Lazarus_Linux_GTK2/TinyBrowser/TinyBrowser.lpi b/demos/Lazarus_Linux_GTK2/TinyBrowser/TinyBrowser.lpi index 69e7e3bf..3d9183a4 100644 --- a/demos/Lazarus_Linux_GTK2/TinyBrowser/TinyBrowser.lpi +++ b/demos/Lazarus_Linux_GTK2/TinyBrowser/TinyBrowser.lpi @@ -59,6 +59,9 @@ </SyntaxOptions> </Parsing> <Linking> + <Debugging> + <DebugInfoType Value="dsDwarf3"/> + </Debugging> <Options> <Win32> <GraphicApplication Value="True"/> diff --git a/demos/Lazarus_Linux_GTK2/TinyBrowser2/TinyBrowser2.lpi b/demos/Lazarus_Linux_GTK2/TinyBrowser2/TinyBrowser2.lpi index 7dbbaad7..a4a65522 100644 --- a/demos/Lazarus_Linux_GTK2/TinyBrowser2/TinyBrowser2.lpi +++ b/demos/Lazarus_Linux_GTK2/TinyBrowser2/TinyBrowser2.lpi @@ -61,6 +61,9 @@ </SyntaxOptions> </Parsing> <Linking> + <Debugging> + <DebugInfoType Value="dsDwarf3"/> + </Debugging> <Options> <Win32> <GraphicApplication Value="True"/> diff --git a/update_CEF4Delphi.json b/update_CEF4Delphi.json index 0152c615..e7d20c96 100644 --- a/update_CEF4Delphi.json +++ b/update_CEF4Delphi.json @@ -2,7 +2,7 @@ "UpdateLazPackages" : [ { "ForceNotify" : true, - "InternalVersion" : 600, + "InternalVersion" : 601, "Name" : "cef4delphi_lazarus.lpk", "Version" : "125.0.19" }