Commit Graph

13 Commits

Author SHA1 Message Date
Alex Maitland f8530064b1 Core - Add Cef.PostAction and Cef.PostDelayedAction 2022-06-22 10:52:17 +10:00
Alex Maitland 2cd1c9b5ae Core - Add Cef.WaitForBrowsersToClose(int) overload
- Allow for specifying the timeout in ms
- Update the tests to 5000ms timeout
2022-06-20 13:03:15 +10:00
Alex Maitland 0ac43cf69f Core - Remove Remaining Plugin APIs
- Remove plugin references
- Update xml doc comments
- Update ref assembly (netcore)
- Update examples

Issue #4045
2022-03-21 10:01:26 +10:00
Alex Maitland 009687f7dd Core - SetCrashKeyValue fix key not being passed to CEF 2022-02-22 11:33:47 +10:00
Alex Maitland 0fc3ae2323 Core - Add CefSettingsBase.IsDisposed
- Dispose CefSettingsBase
- Take a copy of the CefSettings struct and free our pointer
2021-11-25 09:45:29 +10:00
Alex Maitland d46f6380ad Core - Cef.InitializeAsync add optional IBrowserProcessHandler param
Issue #3634
2021-10-28 11:10:08 +10:00
Alex Maitland 9993aa78e0 OffScreen - Create Browser when Global CefRequestContext initialized.
- GlobalContextInitialized wraps a TaskCompletionSource which is resolved
  when the Global CefRequestContext has been created
- Reduce code duplication

If successful we can apply the same changes to WinForms/WPF though they're less likely to have
issues than the OffScreen implementation as the CreateBrowser doesn't happen until much later

Issue #3850 #3634
2021-10-26 14:31:10 +10:00
Alex Maitland 1524482ede Core - Add Cef.InitializeAsync
- InitializeAsyncBrowserProcessHandler is used to complete the taskCompletionSource
  when OnContextInitialized is called
- Update the OffScreen example to be async with a simply SingleThreadSynchronizationContext
  to ensure we continue on our main thread.

Issue #3634
2021-10-22 20:10:38 +10:00
Alex Maitland c5ba1ce430 Core - Add Cef.ParseUrl
Uses GURL to parse the Url (Google's URL parsing library)
2021-09-16 10:05:34 +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
Jozef Izso 5d14f7c159 Add property Cef.IsShutdown to allow checks for the shutdown state of Cef runtime (#3782) (#3783) 2021-08-31 07:15:55 +10:00
Alex Maitland b4e189bf4f Core - Add Cef.GetMinLogLevel()
Gets the current log level
2021-01-27 13:39:04 +10:00
Alex Maitland 8858365c16 Core - Split PublicApi.cs out into separate classes
Issue #3319
2021-01-11 10:47:57 +10:00