Commit Graph

69 Commits

Author SHA1 Message Date
amaitland b80d9e4827 Core - Update ResultCode enum to add process de-elevation exit code
Resolves #5152
2025-08-17 10:58:57 +10:00
campersau 7079869d59 Core - Update CefErrorCodes (136.0.7103.93) (#5101)
https://raw.githubusercontent.com/chromium/chromium/136.0.7103.93/net/base/net_error_list.h
2025-05-13 18:44:44 +10:00
Alex Maitland f43cd64c55 Import CefSharp.Wpf.HwndHost into main repository. (#4981)
* HwndHost - Initial import

* HwndHost - Add Example to solution and use common IWpfChromiumWebBrowser interface

* HwndHost - Update UpdateNugetPackages.ps1

* HwndHost - Add Nuspec

* HwndHost Example - Upgrade version

* HwndHost Example - Try non self contained build for debug and release

* Test - Add basic HwndHost tests

Probably need to revisit these, little bit hacky creating the window

* HwndHost - Allow any RequestContext that inherits from Core.RequestContext

Cheery pick of https://github.com/cefsharp/CefSharp.Wpf.HwndHost/pull/31

* HwndHost Example - Disable arm64

Example will be removed shortly, so it doesn't matter too much now.
It will be moved to MinimalExample and the Wpf Example expanded

* HwndHost - Delete delegate command

* Upgrade packages

* Nuget - Move Nuspec file to PackageReference folder

---------

Co-authored-by: amaitland <307872+amaitland@users.noreply.github.com>
2025-01-18 06:40:48 +10:00
amaitland b53ff70ef9 Core - IRequestContext add new GetWebsiteSetting/SetWebsiteSetting and GetContentSetting/SetContentSetting
Resolves #4991
2024-11-23 09:43:27 +10:00
amaitland 606d9df7be Core - Add Cef.GetErrorCode
- Get the error code for when Cef.Initialize fails

Resolves #4914
2024-10-05 13:36:30 +10:00
amaitland ac42ae75a2 Core - PermissionRequestType is out of sync compared to cef_permission_request_types_t
- Update to match upstream changes

Resolves #4935
2024-10-04 19:33:36 +10:00
amaitland 19739abd9c Remove Alloy Bootstrap (M128)
- Remove ChromeRuntime option
- Remove Extension Handling and related methods (no longer supported)
- Remove PackLoadingDisabled (no longer supported)
- Remove PersistUserPreferences (always on)

Resolves #4795
2024-09-18 17:53:17 +10:00
campersau a52d99654d Core - Update CefErrorCode (126.0.6478.115) (#4850)
https://raw.githubusercontent.com/chromium/chromium/126.0.6478.115/net/base/net_error_list.h
2024-06-26 18:55:59 +10:00
Alex Maitland 7af16b9571 Add IWindowInfo.RuntimeStyle
- CEF will remove the alloy bootstrap (likely in M127)
- Change examples to use the `Chrome Runtime`
-

Issue https://github.com/chromiumembedded/cef/issues/3685
2024-05-06 11:03:04 +10:00
Alex Maitland 89922587f2 Update CefErrorCode to https://raw.githubusercontent.com/chromium/chromium/120.0.6099.109/net/base/net_error_list.h 2023-12-15 20:16:17 +10:00
Alex Maitland 026288439f Core - Update CefErrorCode (113.0.5672.63) 2023-05-07 05:52:28 +10:00
Alex Maitland 2585e7de30 Core - Update CefErrorCode (109.0.5414.87) 2023-01-14 09:58:15 +10:00
Alex Maitland 5316c6e9e6 Core - Update PdfPrintSettings (Continued)
- Update MarginType
- Update example

#4311
2022-11-21 19:03:14 +10:00
Alex Maitland 8342bf52c8 Core - Update CefErrorCode (106.0.5249.61) 2022-10-04 15:52:36 +10:00
Alex Maitland 7555ede0d6 Core - Update Enums (add new values) 2022-08-08 15:57:19 +10:00
Alex Maitland 733be3ea0e Core - Update CefErrorCode (104.0.5112.81) 2022-08-08 15:50:49 +10:00
Alex Maitland 1ae9e01b41 Core - PermissionHandler followup
- Rename enums (remove cef prefix)
- Fix typos
- Slightly improve docs
2022-08-08 14:18:54 +10:00
Алексей f92687b7cc Core - Add support PermissonHandler
https://bitbucket.org/chromiumembedded/cef/issues/3352/add-cefpermissionhandler-callback-for-the
2022-08-08 13:59:32 +10:00
Alex Maitland 6c18e0e863 Update IDialogHandler.OnFileDialog method declaration
CEF is now using Chrome file dialogs on all platforms and runtimes, this brings a number of fixes and also some API changes.

- The selectedAcceptFilter filter arg has now been removed
- The CefFileDialogFlags enum has been removed as CEF no longer supports these options

This is a breaking change.

Issue #4110
2022-05-17 19:51:08 +10:00
Alex Maitland 4e01290091 Core - Update WindowOpenDisposition (101.0.4951.54) 2022-05-05 12:40:33 +10:00
Alex Maitland 5c61ea4191 Core - Update TransitionType (101.0.4951.54)
https://github.com/chromiumembedded/cef/commit/b524edc2099315987a29d8664752e4c3dc62825d#diff-447d40892c51b4ffc870cf1a28bab2ae2d411752216be4750a17193e6675b26b
2022-05-05 12:40:32 +10:00
Alex Maitland bebb39e2ce Core - Update CefErrorCode (101.0.4951.54) 2022-05-05 12:40:32 +10:00
Alex Maitland 08f3a4015d Core - Update CefErrorCode (99.0.4844.27)
https://raw.githubusercontent.com/chromium/chromium/99.0.4844.27/net/base/net_error_list.h

Resolves #4015
2022-02-22 11:51:31 +10:00
Alex Maitland 6bb262e7bb Core - Update ContextMenuMediaState values to match Chromium
- Enum updated
- Other enum values added to related enums

Resolves #4014
2022-02-22 11:45:58 +10:00
campersau 543e9d9d9d Core - Update CefErrorCode (#3965)
Using https://raw.githubusercontent.com/chromium/chromium/97.0.4692.71/net/base/net_error_list.h
2022-01-18 11:03:04 +10:00
Alex Maitland 8160ec1ce4 Remove IRequestContextHandler.OnBeforePluginLoad and IRequestContext.PurgePluginListCache
Resolves #3924
2021-12-07 14:54:11 +10:00
Alex Maitland 52f40e3e84 Core - Update CefErrorCode.DnsNameHttpsOnly
It should be a negative number

https://source.chromium.org/chromium/chromium/src/+/651bd32d5d559010ed5dd44aee0f33c7a0162301:net/base/net_error_list.h;dlc=190de627f4460740328ecffcfadce8bb8d5aec8b
2021-11-01 13:35:03 +10:00
Alex Maitland 90171e113b Core - Update ResourceType enum
Add new values

https://github.com/chromiumembedded/cef/commit/0cbc0a757ea11655f61ba4b8a93a9aa9b172a638
2021-09-24 10:52:24 +10:00
campersau 90bbb57e91 Core - Update CefErrorCode (#3819)
Using https://raw.githubusercontent.com/chromium/chromium/94.0.4606.50/net/base/net_error_list.h
2021-09-21 19:20:54 +10:00
campersau 1cdb21960c Core - Update CefErrorCodes (#3785)
Using https://raw.githubusercontent.com/chromium/chromium/92.0.4515.176/net/base/net_error_list.h
2021-09-03 10:54:41 +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 e1ac768a42 Core - Update CefThreadIds enum
This is a breaking change

Resolves #3597
2021-06-04 15:29:48 +10:00
campersau b8dd8c0ac4 Core - Add TransitionType.DirectLoad enum value (#3551)
which was added in https://github.com/chromiumembedded/cef/commit/a141082b91c06979bbed2a6aba60708328400b33
2021-05-13 11:49:31 +10:00
Alex Maitland 6e881eeafc Xml Doc - Fix some mistakes 2021-01-08 14:26:21 +10:00
GitHubPang 728420ca7f Fix typos (#3305) 2020-12-06 11:24:14 +10:00
Alex Maitland 5bd9b49b30 WPF - Fix Custom Cursor Not displaying
- Update CursorType enum
  CEF has added some additional values
  As entries were added before Custom the WPF custom cursor handling wasn't working
  https://github.com/chromiumembedded/cef/commit/047e8f9349ecd635b1146e4a44de46a38b8a64f8#diff-447d40892c51b4ffc870cf1a28bab2ae2d411752216be4750a17193e6675b26b
2020-11-07 18:17:28 +10:00
amaitland 10f6a4bd20 Core - Add Cookie.SameSite and Cookie.Priority
Resolves #3254
2020-10-14 14:56:35 +10:00
amaitland 02d51747f5 Core - Update CefErrorCode xml doc
Update BlockedByAdministrator xml doc

https://source.chromium.org/chromium/chromium/src/+/refs/tags/85.0.4183.102:net/base/net_error_list.h;l=93

Replaces #3245
2020-10-02 10:25:25 +10:00
amaitland 89e95ef3be Core - Add CompositionUnderline.Style (IME)
https://source.chromium.org/chromium/chromium/src/+/master:ui/base/ime/win/imm32_manager.cc;l=82;drc=c70af83bc44f6829277cdc3621e7015d6e0d7530;bpv=1;bpt=1?q=GCS_COMPCLAUSE&ss=chromium%2Fchromium%2Fsrc

Resolves #3107
2020-08-26 14:55:51 +10:00
Alex Maitland 8d25b71490 Core - Re-Add IAudioHandler (#3153)
Resolves #3152
2020-07-08 08:06:16 +10:00
amaitland 6c29d3b4e6 Core - Update CefErrorCode
Resolves #3106
2020-05-08 10:22:56 +10:00
amaitland 296e75a775 Core - CefEventFlags fix capitalisation of AltGrDown
Was previously AltgrDown

Issue #3098
2020-04-18 20:31:04 +10:00
amaitland aef48bdd17 Core - CefEventFlags.AltGrDown Typo
Issue #3098
2020-04-18 14:52:41 +10:00
amaitland f46a8a7175 Core - Add CefEventFlags.AltGrDown
Resolves #3098
2020-04-18 10:55:27 +10:00
amaitland 1b1cf522de Core - Update ReferrerPolicy enum values
**Breaking Change**

Resolves #3026
2020-01-29 05:36:55 +10:00
amaitland 39a305cac1 Xml Doc - Improvements and fixes
- Some classes are now excluded
- Many minor fixes should hopefully reduce the number of errors reported by Sandcastle
- Some of the xml doc is generated by Atomineer, usually in cases where CEF lacks documentation
2020-01-29 05:36:54 +10:00
amaitland 802bb7f43c Remove IAudioHandler
The Chromium implementation has changed so dramatically that CEF has removed support see https://bitbucket.org/chromiumembedded/cef/commits/1f893c76a97eaa88e3ff782b8e2e47dd0f5d27b2

Track https://bitbucket.org/chromiumembedded/cef/issues/2755/reimplement-audio-mirroring-for for details on when it will be reimplemented

Original Issue #2727
2019-10-01 20:06:37 +10:00
amaitland 088c3d02f4 ISchemeRegistrar - Change AddCustomScheme to use SchemeOptions enum
- Add new SchemeOptions enum
- Change AddCustomScheme to use new enum (replaces all the bool params)
- Simplify command line arg processing, now sends scheme name and int (options)
- Add CefCustomScheme.IsFetchEnabled

Resolves #2690

Breaking Change
2019-07-02 20:50:09 +10:00
amaitland 62ee664c81 SslVersion - Add TLS 1.3 2019-06-25 19:24:57 +10:00
amaitland 049f576de3 UrlRequestFlags.AllowCachedCredentials rename to AllowStoredCredentials
Resolves #2755

This is a breaking change
2019-05-04 06:43:56 +10:00