Commit Graph

9 Commits

Author SHA1 Message Date
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 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
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 31fdcd459b BindObjectAsyncHandler - Switch to using Promise.resolve when immediate response available
Instead of creating a new promise then resolving it, we just resolve directly
Requires a slightly different approach using Eval with a string as I couldn't get a reference to Promise.resolve
then execute it successfully.
2019-07-08 21:06:32 +10:00
amaitland 6fcd3e67ff BindObjectAsyncHandler - Add destructor
Release managed resources
2019-07-08 20:14:57 +10:00
amaitland ae2acc0905 BindObjectAsyncHandler - Move some variables closer to their usage 2019-07-08 20:14:56 +10:00
amaitland b983457158 BindObjectAsyncHandler - Further reduce nesting, simplifying frame checks in the progress 2019-07-08 20:14:55 +10:00
amaitland eda2e2f33c BindObjectAsyncHandler - Reduce nesting
Combine Context Get and Context Enter error handling
2019-07-08 20:14:53 +10:00
amaitland f6edbd5ad8 CefSharp.BindObjectAsync - Split out into it's own Handler
- Add BindObjectAsyncHandler
- Remove unneeded params from RegisterBoundObjectHandler
2019-07-08 20:14:52 +10:00