Commit Graph

587 Commits

Author SHA1 Message Date
Alex Maitland 3b9bd3e813 Upgrade to CEF 94.4.11+gc4d96f0+chromium-94.0.4606.81 / Chromium 94.0.4606.81 2021-10-21 13:45:48 +10:00
Alex Maitland 4bafd15483 Upgrade to CEF 94.4.5+g0fd0d6f+chromium-94.0.4606.71 / Chromium 94.0.4606.71 2021-10-04 16:14:35 +10:00
Alex Maitland e09139a94a Upgrade to CEF 94.4.2+g6a963ca+chromium-94.0.4606.61 / Chromium 94.0.4606.61 2021-09-29 09:28:15 +10:00
Alex Maitland d1c7b8b998 Upgrade to CEF 94.3.0+gffef496+chromium-94.0.4606.54 / Chromium 94.0.4606.54 2021-09-24 10:23:33 +10:00
Alex Maitland 0f2e213576 Upgrade to CEF 94.2.2+g0c2cc26+chromium-94.0.4606.50 / Chromium 94.0.4606.50 2021-09-20 11:40:45 +10:00
Alex Maitland d4a9e20a90 Upgrade to CEF 94.0.5+g506b164+chromium-94.0.4606.41 / Chromium 94.0.4606.41 2021-09-12 16:40:10 +10:00
Alex Maitland 738e90dbc2 Upgrade build version to 94.0.30 2021-09-10 15:50:55 +10:00
Alex Maitland 7f870db945 Core - FrameHandler track frame lifecycle
- FrameHandler now tracks frame creation and removal and reuses the IFrame reference
- CefFrameWrapper no longer throws exception if accessing Identifier for invalid frame, this appears
to be a valid use case now which makes sense otherwise we'd never be able to identify the frame.

Resolves #3588
2021-09-10 14:32:04 +10:00
Alex Maitland b3fd1f598c WinForms Example - Set BrowserTabUserControl Bounds on creation to create browser at final size
Previously the ChromiumWebBrowser instance was created smaller and resized to fill, this would
show a black region that's resized.
Set the initial Bounds to improve the sizing
2021-09-08 10:23:40 +10:00
Alex Maitland 4cd8c11f49 Upgrade to CEF 94.0.3+g5c40d9f+chromium-94.0.4606.31 / Chromium 94.0.4606.31 2021-09-07 11:09:51 +10:00
Alex Maitland c62563c52c Upgrade to CEF CEF 93.1.11+g9e254fa+chromium-93.0.4577.63 / Chromium 93.0.4577.63 2021-09-03 11:42:32 +10:00
Alex Maitland d350cad52a Update to M93 (#3781)
* Upgrade to CEF 93.1.7+g9117d6a+chromium-93.0.4577.42 / Chromium 93.0.4577.42

- Core - Add basic ref counting implementation

IMPLEMENT_REFCOUNTING implementation uses atomic which
forces the VC++ compiler to compile as native which doesn't work for our managed ref classes.

    - Use InterlockedCompareExchange for custom ref count reads
    - Use InterlockedIncrement/InterlockedDecrement directly
    - There's no memory barrier for HasOneRef/HasAtLeastOneRef as the read of a LONG should happen in one operation
on 32/64 bit architectures (at least that's my understanding at this point in time).

    References:
    https://github.com/chromiumembedded/cef/blob/4472/include/base/internal/cef_atomicops_x86_msvc.h#L125
    https://github.com/chromiumembedded/cef/blob/4472/include/base/internal/cef_atomicops_arm64_msvc.h#L107
    https://github.com/chromiumembedded/cef/blob/4472/include/base/cef_atomic_ref_count.h#L114
    https://github.com/chromiumembedded/cef/blob/4472/include/cef_base.h#L91

-  Remove Microsoft.Net.Compilers package from projects
Now that we require a min of VS2019 to build there's no need for a custom compiler package
- Start removing VS2015/VC++2015 references
- Remove RegisterWidevineCdm
This is a breaking change. CEF will now automatically download the Widevine CDM component
Resolves #3767

- RequestContext.LoadExtension now uses managed to code spawn on CEF UI Thread
Avoid having to use cef_callback.h which was causing problems for x86 builds
2021-09-03 10:51:18 +10:00
Alex Maitland ceda8fe390 Upgrade to CEF 92.0.25+gd15cfa8+chromium-92.0.4515.131 / Chromium 92.0.4515.131 2021-08-14 13:38:51 +10:00
ValentinNikin d0bdc735eb Updated example for Audio Handler (#3724)
* Implemented example for Audio Handler

* Rename AudioHandlerExample to AudioHandler

* Allow unsafe code

* Remove UnmanagedMemoryStream using

* Fix problem with build

* Allow unsafe code for .NET Core project

* Remove excess PropertyGroup

Co-authored-by: Valentin Nikin <nikin.v@tecomgroup.ru>
2021-07-31 06:30:59 +10:00
Alex Maitland e99fab4091 WinForms Example - TabulationDemoForm defer browser creation
- Was creating the chromiumWebBrowser instance too early and thus calling Cef.Initialize
before our example code resulting in an exception
2021-07-29 11:15:48 +10:00
Alex Maitland 929470e5bc WinForms Example - Remove MultiFormFocusHandler
- No longer needed as it's identical to the DefaultFocusHandler implementation.
- Minor code cleanup, no longer need to pass through multithreadedmessageloop param
2021-07-29 11:11:39 +10:00
Alex Maitland f48c6567ea WinForms Example - Remove redundant code
The Focus handler when multithreaded message loop = true is already null as
we check if running on CEF UI Thread before creating the instance in the ChromiumWebBrowser.OnAfterBrowserCreated
2021-07-27 13:06:49 +10:00
Alex Maitland 823a6582a9 Upgrade to CEF 92.0.16+g3492b1b+chromium-92.0.4515.107 / Chromium 92.0.4515.107 2021-07-22 13:11:02 +10:00
Alex Maitland 4ef267cabf Upgrade to CEF 92.0.14+gadd734a+chromium-92.0.4515.81 / Chromium 92.0.4515.81 2021-07-06 11:30:44 +10:00
Alex Maitland 6e4ef2171c Upgrade to CEF 92.0.9+g847fba0+chromium-92.0.4515.51 / Chromium 92.0.4515.51 2021-06-21 15:40:35 +10:00
Alex Maitland 49db956bb8 Upgrade to CEF 92.0.8+gd7c630a+chromium-92.0.4515.51 / Chromium 92.0.4515.51 2021-06-18 15:16:14 +10:00
Alex Maitland 3dc37b2dd2 WinForms - Add LifeSpanHandler implementation capable of hosting popups as Tabs/Controls (#3529)
* WinForms - Add LifeSpanHandler implementation capable of hosting popups  as Tabs/Child controls in WinForms

- Update Example
- Remove PopupAsChildHelper and example LifeSpanHandler
- Examples always opens popups as tabs now.
- Improve xml doc and comments
- Make ParentFormMessageInterceptor public
- Make ChromiumHostControl public, move into CefSharp.WinForms.Host namespace
  Rather than having the class in the CefSharp.WinForms namespace and potentially
  confuse users, move into it's own namespace.
- Clarify ShowDevToolsDocked needs to be used with the new WinForms lifespan handler
2021-06-04 14:51:49 +10:00
Alex Maitland a3f914018f Upgrade to CEF 91.1.6+g8a752eb+chromium-91.0.4472.77 / Chromium 91.0.4472.77 2021-06-04 11:30:13 +10:00
Alex Maitland e1b0d07c17 WinForms - Add ChromiumRenderWidgetHandleFinder/ChromiumWidgetNativeWindow
Used to hook the low level HWND and get message (e.g. mouse messages)

Updated the example
2021-05-11 20:39:57 +10:00
Alex Maitland e035c39d2b Core - Add Default Handler implementations
Inherit and override only the required methods rather than implement the whole interface
2021-05-11 20:39:57 +10:00
Alex Maitland 969b94c356 Upgrade to CEF 91.1.1+gddf5446+chromium-91.0.4472.19 / Chromium 91.0.4472.19 2021-04-30 11:27:14 +10:00
Alex Maitland 473004120c Upgrade to CEF 90.5.3+gaf0e862+chromium-90.0.4430.72 / Chromium 90.0.4430.72 2021-04-17 11:18:45 +10:00
Alex Maitland 0522530f13 Upgrade to CEF 90.4.2+gd4386da+chromium-90.0.4430.51 / Chromium 90.0.4430.51 2021-04-13 14:44:50 +10:00
Alex Maitland a7c51d0e29 Examples/Test - Update packages.config targetframework
Some of the targetframework entries still has net462, everything is now 472
2021-04-06 16:26:28 +10:00
Alex Maitland c1f04db758 Upgrade to CEF 90.2.3+g6ad2964+chromium-90.0.4430.51 / Chromium 90.0.4430.51 2021-04-06 16:07:03 +10:00
Konstantin Preißer 462bc747bd Add support for Windows ARM64 to CefSharp.NETCore packages (#3359)
* Add support for Windows ARM64 for the NETCore packages.

Note: .NET 5.0 or higher is required to build a WinForms/WPF application for win-arm64.

Fixes cefsharp/CefSharp#2944

* PR feedback: Remove "WIN32" define as it is already defined by minwindef.h.

* PR feedback: Switch the CefSharp.*.Example.netcore and CefSharp.Test.netcore projects from cef.redist to chromiumembeddedframework.runtime.

Note: These projects are excluded for build when platform is 'arm64', as otherwise the build fails as WinForms and WPF are not yet available for ARM64 in .NET 5.0.

* Follow-Up: Update path to CefSharp.Test.dll.

* PR feedback: Also use RuntimeInformation for the .NET Framework example projects.

* PR feedback:
- Remove copying of CefRedist files in CefSharp.AfterBuild.targets which is no longer needed.
- Update .vsconfig to include the VC ARM64 build tools.
2021-04-01 17:27:48 +10:00
Alex Maitland 69eaeb44ec Upgrade to CEF 90.1.0+g35a360f+chromium-90.0.4430.30 / Chromium 90.0.4430.30 2021-03-27 11:24:10 +10:00
Alex Maitland 8f1bde2cd5 Upgrade to CEF 90.0.6+g0ad85c1+chromium-90.0.4430.30 / Chromium 90.0.4430.30 2021-03-26 17:59:45 +10:00
Alex Maitland e6370fe739 Upgrade to CEF 89.0.7+gb5952bd+chromium-89.0.4389.72 / Chromium 89.0.4389.72 2021-03-14 19:41:09 +10:00
Alex Maitland 73e2192c95 Upgrade version numbers to 89.0.60 2021-03-12 13:20:12 +10:00
Alex Maitland 09c1b2ff73 Examples - Re-Add CefSharp.Core.Runtime reference.
Switching between Win32 and x86 builds locally and sometimes you end up with a reference to the
incorrect arch dll as it looks like the compiler thinks its up to date and doesn't copy the new dll.
Was easily fixed by calling Clean, was time consuming though.
2021-03-11 15:22:30 +10:00
Alex Maitland 39e7fc5743 Upgrade to CEF 89.0.6+g6f30454+chromium-89.0.4389.72 / Chromium 89.0.4389.72 2021-03-06 11:12:47 +10:00
Alex Maitland 0e81e2f344 Upgrade to CEF 89.0.5+gc1f90d8+chromium-89.0.4389.40 / Chromium 89.0.4389.40 2021-02-23 10:20:57 +10:00
Alex Maitland c03c377a7f Upgrade to CEF 88.2.9+g5c8711a+chromium-88.0.4324.182 / Chromium 88.0.4324.182 2021-02-21 19:59:51 +10:00
Alex Maitland 2cbc33bf97 Upgrade to CEF 88.2.4+gf3c4ca9+chromium-88.0.4324.150 / Chromium 88.0.4324.150 2021-02-08 11:12:31 +10:00
Alex Maitland 1397398770 Upgrade to CEF 88.2.1+g0b18d0b+chromium-88.0.4324.146 / Chromium 88.0.4324.146 2021-02-05 13:39:50 +10:00
Alex Maitland 3f5dc4248a Update to CEF 88.1.6+g4fe33a1+chromium-88.0.4324.96 / Chromium 88.0.4324.96 2021-01-29 17:01:17 +10:00
Alex Maitland 0cdbef1d44 Test/Example - Upgrade to .Net 4.7.2
- Update .vsconfig to include the .Net 4.7.2 requirement and add the Net Core 3.1 feature.
2021-01-22 14:58:40 +10:00
Alex Maitland 8452820a4a Upgrade to CEF 88.1.3+g5b4e0ee+chromium-88.0.4324.87 / Chromium 88.0.4324.87 2021-01-21 14:43:30 +10:00
kpreisser cda06df359 Upgrade to 88.1.2+gac8e5f0+chromium-88.0.4324.27 / Chromium 88.0.4324.27 2021-01-21 14:39:00 +10:00
Alex Maitland 12e583d2ef Core - PublicApi remove references to CefSharp.Core.Runtime
- Add an UnWrap method to the interfaces (should be hidden from IntelliSense)
- For .Net 4.5.2 projects they're  not a decorator class which an inner instance of the CefSharp.Core.Runtime Type
- For Net Core we have a ref assembly which allows us to reference the CefSharp.Core.Runtime without issues
  We can potentially remove the ref assembly now and forgo any direct reference.
2021-01-13 16:56:57 +10:00
Alex Maitland 580042e58d Update version number to 88.1.0 2021-01-11 10:58:53 +10:00
Alex Maitland 92870eef75 Upgrade to CEF 88.1.0+g433d6e1+chromium-88.0.4324.27 / Chromium 88.0.4324.27 2021-01-10 14:38:17 +10:00
Alex Maitland 3a29c70d81 Upgrade build version to 87.1.13 2021-01-09 14:20:11 +10:00
Alex Maitland ff77f024ad Upgrade to CEF 87.1.13+g481a82a+chromium-87.0.4280.141 / Chromium 87.0.4280.141 2021-01-09 13:52:28 +10:00