Commit Graph

610 Commits

Author SHA1 Message Date
Alex Maitland 4fce1c69ef Upgrade to CEF 98.1.21+g9782362+chromium-98.0.4758.102 / Chromium 98.0.4758.102 2022-02-17 12:39:52 +10:00
Alex Maitland 8bf5a7a7c0 Upgrade to CEF 98.1.19+g57be9e2+chromium-98.0.4758.80 / Chromium 98.0.4758.80 2022-02-15 13:30:31 +10:00
Alex Maitland 870dbb527f WinForms - Add new IWinFormsChromiumWebBrowser interface
- Common interface of ChromiumHostControl and ChromiumWebBrowser
- WinForms Example Fix removing of Tab
2022-02-10 13:28:49 +10:00
Alex Maitland 74100d5b76 Upgrade to CEF 98.1.12+gd87e3f4+chromium-98.0.4758.55 / Chromium 98.0.4758.55 2022-02-10 13:28:18 +10:00
Alex Maitland b50c60e065 Upgrade to CEF 97.1.6+g8961cdb+chromium-97.0.4692.99 / Chromium 97.0.4692.99 2022-01-22 12:44:09 +10:00
Alex Maitland 0243876795 WinForms - Add LifeSpanHandler.OnBeforePopupCreated
- Allow for cancelling of popup creation

browser.LifeSpanHandler = CefSharp.WinForms.Handler.LifeSpanHandler
	.Create()
	.OnBeforePopupCreated((chromiumWebBrowser, b, frame, targetUrl, targetFrameName, targetDisposition, userGesture, browserSettings) =>
	{
		//Can cancel opening popup based on Url if required.
		if(targetUrl?.StartsWith(CefExample.BaseUrl + "/cancelme.html") == true)
		{
			return PopupCreation.Cancel;
		}

		return PopupCreation.Continue;
	})
2022-01-10 13:40:42 +10:00
Alex Maitland fc08c462dc Upgrade to CEF 97.1.1+g50067f2+chromium-97.0.4692.71 / Chromium 97.0.4692.71 2022-01-10 09:49:57 +10:00
Alex Maitland d45aaff7ca Upgrade to CEF 97.0.11+g695453b+chromium-97.0.4692.71 / Chromium 97.0.4692.71 2022-01-05 10:54:41 +10:00
Alex Maitland 6f0f20f3b2 DevTools - Add SetMainFrameDocumentContentAsync extension method
- Updated example error handlers to use SetMainFrameDocumentContentAsync for displaying error messages
  so back/forward navigation works correctly.
- DevToolsExtensions updated to use IChromiumWebBrowserBase instead of IWebBrowser so they're usable
  for WinForms hosted popups

Issue #2985
2022-01-05 10:09:56 +10:00
Alex Maitland f07be8c5e5 build.ps1 - Add new update-build-version target
Updated Version/AssemblyVersion

Performs some unnecessary tasks, so could be improved
2021-12-16 13:02:24 +10:00
Alex Maitland f619a1a194 Upgrade to CEF 97.0.8+g4eb2da6+chromium-97.0.4692.36 / Chromium 97.0.4692.36 2021-12-07 14:46:51 +10:00
Alex Maitland b72d41353e WinForms - Improve hosting of popups using ChromiumHostControl
- Add IChromiumWebBrowserBase which is can be used for ChromiumWebBrowser instances and ChromiumHostControl
- Reduce code duplication for extensions methods
- Update WinForms Example
2021-11-30 13:47:42 +10:00
Alex Maitland 165a05071d WinForms - ChromiumHostControl now has basic events
- Create ChromiumHostControlBase as common base class for ChromiumHostControl and ChromiumWebBrowser
- ChromiumHostControl is now the specific implementation for hosting popups
  Has AddressChanged, LoadingStateChanged, etc events
2021-11-30 13:47:41 +10:00
Alex Maitland 4d7c354f63 Update build number to 96.0.140 2021-11-25 11:01:57 +10:00
Alex Maitland 6e9e4a90a2 WinForms - ChromiumHostControl add BrowserCore and IsBrowserInitialized event
- Can now access the IBrowser property via ChromiumHostControl.BrowserCore
- The ChromiumHostControl.IsBrowserInitialized event will be raised when
the underlying CEF browser has been created.
2021-11-25 10:55:31 +10:00
Alex Maitland 129879cd20 WinForms - Add LifeSpanHandler.OnPopupBrowserCreated
- Add new fluent method to the WinForms specific LifeSpanHandler
- Allows simply access to the IBrowser
2021-11-25 10:00:37 +10:00
Alex Maitland 3130caf737 Upgrade to CEF 96.0.14+g28ba5c8+chromium-96.0.4664.55 / Chromium 96.0.4664.55 2021-11-24 13:33:07 +10:00
Alex Maitland 9b63b0caab Upgrade to CEF 96.0.13+g622afbd+chromium-96.0.4664.45 / Chromium 96.0.4664.45 2021-11-18 10:01:19 +10:00
Alex Maitland c54205efae Upgrade to CEF 96.0.12+g147b5f5+chromium-96.0.4664.35 / Chromium 96.0.4664.35 2021-11-11 09:47:59 +10:00
Alex Maitland cbd5f3f00b Upgrade to CEF 96.0.11+g4bd7c35+chromium-96.0.4664.35 / Chromium 96.0.4664.35 2021-11-10 10:59:43 +10:00
Alex Maitland 7e0a32af53 Upgrade to CEF 95.7.14+g9f72f35+chromium-95.0.4638.69 / Chromium 95.0.4638.69 2021-11-01 13:19:55 +10:00
Alex Maitland 0e242a8706 Upgrade to CEF 95.7.10+g00d4ad5+chromium-95.0.4638.54 / Chromium 95.0.4638.54
Remove CefBrowserSettings.universal_access_from_file_urls and CefBrowserSettings.file_access_from_file_urls.
https://bitbucket.org/chromiumembedded/cef/commits/ff33d7f72144

Remove CefBrowserSettings.application_cache
https://bitbucket.org/chromiumembedded/cef/commits/370a7749e950ef6784c29a666d07a0b67148dd5f

Remove ignore_certificate_errors setting
https://bitbucket.org/chromiumembedded/cef/commits/aabe4ce466766f8bd9907e7fa30546a3afada214

RequestContextSettings.IgnoreCertificateErrors was removed, the CefSettings.IgnoreCertificateErrors property
now set the command line arg

Use CefRect for CefWindowInfo bounds
https://bitbucket.org/chromiumembedded/cef/commits/8587cc4e4bbc187aa989152e521318818b3f41d3

Additional overload has been added to pass in a Rect directly to SetAsChild

Rename SendFocusEvent to SetFocus
https://bitbucket.org/chromiumembedded/cef/commits/49a4611e28d7bbc221cff816d7c4a96c55ba2721

SendFocusEvent will now call SetFocus internally, the project internally has been updated to use SetFocus for WPF

Replace CefRequestCallback with CefCallback
https://bitbucket.org/chromiumembedded/cef/commits/3e7f1bb529442a6c7674262d9219df57964e9524

No changes to the API for this, I've kept the same interface and just mapped internally

Resolves #3857, #3667, #3668
2021-10-22 14:45:12 +10:00
Alex Maitland 4f51b8a4b2 Upgrade to CEF 94.4.11+gc4d96f0+chromium-94.0.4606.81 / Chromium 94.0.4606.81 2021-10-21 10:25:42 +10:00
Alex Maitland aedd60e3ff Upgrade to 94.4.9+g09ee681+chromium-94.0.4606.71 / Chromium 94.0.4606.71 2021-10-16 13:40:20 +10:00
Alex Maitland 67a08c47ee BrowserSubProcess/Examples/Tests - Migrate to newer SDK Style projects
- Migrate to new SDK style projects
- Migrate to chromiumembeddedframework.runtime packages
- Remove old packages.config files
- Update post build event for BrowserSubprocess to set TSAware/LargeAddressAware
- Change project build order

Issue #3706
2021-10-12 19:48:11 +10:00
Alex Maitland 2e55f7d1aa Upgrade to CEF 94.4.2+g6a963ca+chromium-94.0.4606.61 / Chromium 94.0.4606.61 2021-09-29 09:49:40 +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