Commit Graph

646 Commits

Author SHA1 Message Date
amaitland 44e1e03fab Update build version to 86.0.19 2020-10-30 16:23:29 +10:00
amaitland c8fc8810dd Upgrade to CEF 86.0.19+g9c5fca5+chromium-86.0.4240.111 / Chromium 86.0.4240.111 2020-10-30 15:55:25 +10:00
amaitland 166c57addb Upgrade to CEF 86.0.17+g4a33048+chromium-86.0.4240.75 / Chromium 86.0.4240.75 2020-10-21 15:56:23 +10:00
amaitland 791683d4af Tools - Add UpdateNugetPackages.ps1
- Hacky powershell script to update projects to latest version
- csproj/vcxproj files will now consistently have a UTF8 BOM
- CefSharp.BrowserSubprocess.Core.netcore.vcxproj and CefSharp.BrowserSubprocess.Core.vcxproj
  now reference CefSharp.props relatively as using $SolutionDir doesn't work when running Nuget.exe directly against a vcxproj file
2020-10-21 15:53:44 +10:00
amaitland f0b7bd1e81 Core - Rename vcxproj packages.config files
nuget.exe keeps removing packages.config so renaming to project specific naming
each project in the same directory has a unique packages.config file
2020-10-21 15:50:30 +10:00
amaitland 81c0ceee09 BrowserSubProcess - Fix namespace conflict
CefSharp.Core/Cef.h CefSharp.BrowserSubprocess.Core/Cef.h were both in the CefSharp namespace.

TODO: The BrowserSubProcess class namespaces need some cleanup
2020-10-13 15:16:25 +10:00
Alex Maitland fd46a4c145 Core - Add EvaluateScriptAsPromiseAsync (#3251)
- Add useImmediatelyInvokedFuncExpression param to EvaluateScriptAsync which wraps the script in an IIFE
  with the cefSharpInternalCallbackId variable defined in scope to allow for deferred completion
- Wrap script in Immediately Invoked Function Expression and call promise.resolve to guarantee a promise.
- Return 'CefSharpDefEvalScriptRes' as the result of the js function to defer execution of the callback
- Call newly added cefSharp.sendEvalScriptResponse method in javascript when promise has been resolved/rejected

This is built up of a few parts and can technically be used by the new user to defer the response until they are ready.
Just return `'CefSharpDefEvalScriptRes'` and manually call cefSharp.sendEvalScriptResponse using the cefSharpInternalCallbackId
variable which is injected into the script execution (wrapped in an IIFE to limit scope)
2020-10-06 15:19:37 +10:00
amaitland 02a8ea70cd Upgrade to CEF 85.3.12+g3e94ebf+chromium-85.0.4183.121 / Chromium 85.0.4183.121 2020-10-04 14:45:58 +10:00
amaitland 0dcd86026e Net Core - Split netcore vcxproj packages.config files
To make updating easier the netcore vcxproj files have their own packages.config files now
2020-10-04 14:32:06 +10:00
amaitland 4f74f60787 Core - Add CefSharp.RenderProcessId javascript property
Two new properties have been added (both have the same value)
- CefSharp.RenderProcessId
- cefSharp.renderProcessId

Use which ever suites your naming style

Resolves #2984
2020-09-18 13:56:07 +10:00
amaitland 4678bbc932 Net Core - Add header to CefSharp.BrowserSubprocess.Core.netcore.vcxproj
Follow up to https://github.com/cefsharp/CefSharp/commit/53f15f22ebaf1c32fe69f14e676c3485fbab00c9
2020-09-16 16:17:30 +10:00
amaitland 53f15f22eb Upgrade to CEF 85.3.6+gacfac2f+chromium-85.0.4183.102 / Chromium 85.0.4183.102
- Remove CefSettings.RegisterExtension (#3184)
- Add IRenderProcessHandler.OnWebKitInitialized
- Add Cef.RegisterExtension (Browser SubProcess specific implementation)

Resolves #3184
2020-09-16 13:49:37 +10:00
Gilberto Stankiewicz b0b5103100 Fix code analysis C4018 warnings (#3223)
* Replace `auto`s with `size_t`s to reduce:

```
Severity	Code	Description	Project	File	Line	Suppression State
Warning	C4018	'<': signed/unsigned mismatch	CefSharp.BrowserSubprocess.Core	c:\repos\cefsharp\cefsharp.browsersubprocess.core\serialization\jsobjectsserialization.cpp	71
```

* Fix templates
2020-08-26 19:13:13 +10:00
amaitland 1e141d0479 Upgrade to CEF 84.4.1+gfdc7504+chromium-84.0.4147.105 / Chromium 84.0.4147.105 2020-08-26 13:50:41 +10:00
amaitland 7640b65b97 Net Core - Add Assembly.manifest
Add assembly manifest for VC++ projects to prevent loading issues of ijwhost.dll

https://github.com/dotnet/runtime/issues/38231
https://github.com/dotnet/runtime/issues/37972#issuecomment-647726082

Not sure exactly how to test this works as expected

Reference
https://docs.microsoft.com/en-us/windows/win32/sbscs/assembly-manifests

#3197
2020-08-14 21:29:29 +10:00
amaitland d76379f7e9 Upgrade to CEF 84.4.0+g304e015+chromium-84.0.4147.105 / Chromium 84.0.4147.1055 2020-08-14 16:14:09 +10:00
amaitland d0c14cd036 Update version number to 84.4.0 2020-08-14 15:17:03 +10:00
amaitland 2a96ebc7de Upgrade to CEF 84.3.8+gc8a556f+chromium-84.0.4147.105 / Chromium 84.0.4147.105 2020-08-05 15:48:47 +10:00
campersau 5e67f789ea Upgrade to CEF 84.3.3 in netcore projects (#3198) 2020-07-23 20:44:44 +10:00
amaitland e8cf336bf3 Net Core - Support for compiling with .Net Core 3.1
- Make Wpf/WinForms/OffScreen projects target AnyCPU
Only the VC++ projects are platform specific now.
- Remove BrowserSubProcess project reference
Not needed as we now have a standalone exe
- Add OffScreen example
- Add WPF Example project
- Fix some compile errors for main solution
- Add BrowserSubProcess executable
- JavascriptObjectRepository remove isAsync param
Rather than throw exception remove the option
- BrowserSubprocess Exclude the WCF specific code from the netCore project
- Add some ifdef/ifndef to exclude the WCF specific implementation
- Move WCF implementation into separate namespace
2020-07-23 15:23:45 +10:00
Konstantin Preißer 5e89f71a44 Add new projects targeting .NET Core 3.1 (#3181)
* Add .NET Core 3.1 projects for CefSharp, CefSharp.Core, CefSharp.BrowserSubprocess.Core, CefSharp.WinForms, CefSharp.Wpf, CefSharp.OffScreen.

Contributes to CefSharp#2796

* - Remove dependencies to "opengl32.lib" and "glu32.lib" which aren't available for ARM64 and don't seem to be needed.
- Clean up project files.

* Switch project CefSharp.netcore.csproj to AnyCPU as it doesn't require different builds for each platform.

* Remove WindowsTargetPlatformVersion property as that is declared in CefSharp.props.

* Use "bin.netcore" and "obj.netcore" as [intermediate] output path for the .NET Core projects, to allow side-by-side builds with the .NET Framework projects.

* Output documentation files.

* Add CefSharp.Example.netcore and CefSharp.WinForms.Example.netcore.

* Follow-up: Remove properties from the example projects that are also not used in the corresponding .NET Framework projects.
2020-07-23 15:21:14 +10:00
amaitland 86e9b712e3 Core - Xml Doc Fixes 2020-07-23 14:56:11 +10:00
amaitland 3e5133dbb3 Upgrade to CEF 84.3.3+gffc2f0e+chromium-84.0.4147.89 / Chromium 84.0.4147.89 2020-07-23 14:56:10 +10:00
amaitland 4b2fe1e0d7 Core - JavascriptObjectRepository.ResolveObject incorrectly called with args.ObjectName of string.Empty
We were incorrectly leaving empty entries in the CefListValue

Resolves #3193
2020-07-22 14:55:14 +10:00
amaitland 36b35e478b Upgrade to CEF 83.4.2+gc8d4f85+chromium-83.0.4103.106 2020-07-02 09:46:41 +10:00
amaitland 0bf05e6de7 Upgrade to CEF 83.4.0+gfd6631b+chromium-83.0.4103.106 / Chromium 83.0.4103.106 2020-06-28 20:08:18 +10:00
amaitland c1a4db20fd Upgrade to CEF 83.3.12+g0889ff0+chromium-83.0.4103.97 / Chromium 83.0.4103.97 2020-06-09 15:57:25 +10:00
amaitland ae41e10d71 Core - Javascript Binding Configure Property Name
- Rename settings object to JavascriptBindingSettings
- Validate JavascriptBindingSettings.JsBindingGlobalObjectName in setter to provide immediate
  feedback
- Add FreezableBase which throws exception when frozen (we can reuse this for some other settings classes)
- Add some basic Unit Tests (More would be better)

Follow on from #3126
2020-05-30 19:28:50 +10:00
Geevo 66691105b4 Core - Added ability to configure/customize javascript binding property name. 2020-05-30 18:53:13 +10:00
amaitland c0ba9e9135 Upgrade to CEF 83.3.9+ged43e55+chromium-83.0.4103.61 / Chromium 83.0.4103.61 2020-05-25 20:04:27 +10:00
amaitland 35e207d08b Update version number to 81.3.100 2020-05-23 12:05:06 +10:00
amaitland b9fba00078 Upgrade to CEF 81.3.10+gb223419+chromium-81.0.4044.138 2020-05-15 20:26:43 +10:00
amaitland 99dd3f4273 Upgrade version number to 81.3.20 2020-05-09 05:56:39 +10:00
amaitland 0f3de6f432 Upgrade to CEF 81.3.2+gb9282cc+chromium-81.0.4044.138 / Chromium 81.0.4044.138 2020-05-09 05:54:38 +10:00
amaitland 2602212f79 Upgrade to CEF 81.3.1+gb2b49f1+chromium-81.0.4044.113 / Chromium 81.0.4044.113 2020-05-03 14:01:48 +10:00
amaitland 3bac04d1d0 Upgrade to CEF 81.2.25+g3afea62+chromium-81.0.4044.113 2020-04-29 07:57:02 +10:00
amaitland bce627097b Upgrade version number to 81.2.210 2020-04-27 17:45:53 +10:00
amaitland f566d99b12 Upgrade to CEF 81.2.21+ge864886+chromium-81.0.4044.113 / Chromium 81.0.4044.113 2020-04-23 05:56:17 +10:00
amaitland 51fef05989 Upgrade to CEF 81.2.17+gb382c62+chromium-81.0.4044.113 / Chromium 81.0.4044.113 2020-04-18 10:52:53 +10:00
amaitland b2dc7bfc0d Upgrade to CEF 80.1.15+g7b802c9+chromium-80.0.3987.163 / Chromium 80.0.3987.163 2020-04-05 07:56:02 +10:00
amaitland 3d3c1c203c Upgrade to CEF 80.1.4+g8927396+chromium-80.0.3987.149 / Chromium 80.0.3987.149 2020-04-03 09:58:37 +10:00
amaitland 509c0dfcb5 Upgrade to CEF 80.1.2+g9d2a31e+chromium-80.0.3987.149 / Chromium 80.0.3987.149 2020-03-31 07:14:53 +10:00
amaitland 185d8e5d7b BrowserSubprocess - Add args to MainNetCore
MainNetCore(IntPtr arg, int argLength) is required by default signature.
2020-03-12 17:53:46 +10:00
amaitland 4e3887d85d BrowserSubprocess - Add Main method for .Net Core
Needed to test out my idea outlined in https://github.com/cefsharp/CefSharp/issues/2795#issuecomment-592441989
2020-03-06 16:01:26 +10:00
amaitland 2c5b07d2d0 Upgrade version to 80.0.40 2020-02-27 17:38:00 +10:00
amaitland ec95a7245b Upgrade to CEF 80.0.4+g74f7b0c+chromium-80.0.3987.122 / Chromium 80.0.3987.122 2020-02-27 16:51:17 +10:00
amaitland 31c7e9957a Upgrade version number to 79.1.380 2020-02-27 15:24:18 +10:00
amaitland 6c14b9239a Upgrade to CEF 79.1.38+gecefb59+chromium-79.0.3945.130 / Chromium 79.0.3945.130 2020-02-27 15:24:17 +10:00
amaitland 94ae6bea17 Upgrade to CEF 79.1.36+g90301bd+chromium-79.0.3945.130 / Chromium 79.0.3945.130 2020-01-31 10:59:33 +10:00
Gilberto Stankiewicz e011086883 Fix all C6246 warnings: Local declaration hides declaration of the same name in outer scope. (#3027)
* Fix all C6246 warnings: Local declaration hides declaration of the same name in outer scope.

* Removing outter scope `global`
2020-01-29 16:17:14 +10:00