Commit Graph

6179 Commits

Author SHA1 Message Date
amaitland 441e8bc8cb WPF/Offscreen - GetViewRect width/height lte 0 now 1
Previously eq 0 check, now lte 0 is changed to 1 as CEF will crash if passed a value less than 1

Issue #2930
2019-10-21 18:48:22 +10:00
amaitland 6ea0db49e7 Upgrade to CEF 77.1.18+g8e8d602+chromium-77.0.3865.120 / Chromium 77.0.3865.120 2019-10-21 16:04:01 +10:00
amaitland b0eeca3107 xml doc - Fix mistakes 2019-10-07 19:46:45 +10:00
amaitland 770eee012d Upgrade to CEF 77.1.11+g1687a63+chromium-77.0.3865.90 / Chromium 77.0.3865.90 2019-10-07 11:16:26 +10:00
Mitch Capper f83a37536b Visual studio 2019 support (does not do by default) also bumped SDK to 18362 as CEF 77>= require it
Closes #2628
2019-10-06 14:29:43 -07:00
amaitland 2792702c64 WPF Example - Enable WM_POINTER support
Comment out DisableStylusAndTouchSupport

https://github.com/dotnet/docs/blob/master/docs/framework/migration-guide/mitigation-pointer-based-touch-and-stylus-support.md
2019-10-05 15:40:17 +10:00
amaitland 65aeb227d5 WPF Example - Upgrade to .Net 4.7.2 2019-10-05 15:39:26 +10:00
amaitland 4d4ea7fd71 CefSharp.Test - Upgrade Nuget deps 2019-10-05 14:04:41 +10:00
amaitland e902f4ad73 DefaultBinder - Fix bug introduced by refactoring
https://github.com/cefsharp/CefSharp/commit/8d5556e3689278b91e54099f349b3779c2c809f2
2019-10-05 13:51:23 +10:00
amaitland 8d5556e368 DefaultBinder - Performance Improvements and code simplification
- Major refactor, greatly simplified code
- Performance improvements

Breaking changes
2019-10-04 17:46:33 +10:00
amaitland 396e2cb5b8 ModelBinding - Major refactor
- Remove unused IFieldNameConverter/DefaultFieldNameConverter
- DefaultBinder remove blacklistnames
2019-10-04 14:41:45 +10:00
amaitland c925717cb0 ExampleRequestHandler - Improve GetAuthCredentials example 2019-10-04 11:29:33 +10:00
amaitland 647a072d67 ExampleRequestHandler - Improve OnCertificateError example 2019-10-04 10:47:59 +10:00
amaitland b31a365dd4 WPF - Add basic touch support to ChromiumWebBrowser
- Touch support moved from ChromiumWebBrowserWithTouchSupport
- Stylus support was left in ChromiumWebBrowserWithTouchSupport as needs more testing

The CefSharp.Wpf.Example still has System.AppContext.SetSwitch("Switch.System.Windows.Input.Stylus.DisableStylusAndTouchSupport", true);
You will need to remove this for testing

Issue #228
2019-10-03 21:02:25 +10:00
amaitland ee06759c08 VS2019 Support - Change VC++ Target and add .vsconfig for VS2019
Reference https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community?view=vs-2019
2019-10-03 20:31:35 +10:00
Alex Maitland 5dae33b4f8 Update appveyor.yml
Update myget api key
2019-10-03 20:00:05 +10:00
amaitland 446093b6c3 CefExample - Remove disable network service example
No longer possible to disable network service
2019-10-02 12:30:30 +10:00
Alex Maitland cc2359126b BrowserSubprocess - Refactor to support .Net Core (#2891)
* BrowserSubprocess - Refactor to support .Net Core

- Added BrowserSubprocessExecutable for use with .Net Core (no WCF)
- Added WcfBrowserSubprocessExecutable for use with the existing CefSharp.BrowserSubprocess.exe which supports WCF (conditionally)

* Add additional comments and minor code simplification
2019-10-02 12:25:34 +10:00
amaitland 21d272f443 CefSharp.Test - Call Cef.Shutdown on the same thread that created the CefSharpFixture instance 2019-10-01 21:39:14 +10:00
amaitland 136c98b101 Nuget Packages - Default CefSharpTargetDir to '.' so support Desktop Bridge apps
Resolves #2642
2019-10-01 20:54:13 +10:00
amaitland 264da3c237 AbstractCefSettings - Remove "1" from command line args
Issue https://github.com/cefsharp/CefSharp/issues/2858
2019-10-01 20:51:40 +10:00
amaitland 4e18f9783b CefSettings - Add EnablePrintPreview method
Appends enable-print-preview command line arg

Resolves https://github.com/cefsharp/CefSharp/issues/2332
2019-10-01 20:49:14 +10:00
amaitland 4a79b75726 IUrlRequest - Minor formatting and xml doc improvements
- Formatting
- Xml doc improvements
- Rewrite test case to run continuation async

Issue #2881
2019-10-01 20:44:46 +10:00
David M Iserovich a843407dab Core - Add IURLRequest #1721 (#2881)
* Core - Add IURLRequest #1721

Add IURLRequest, IURLRequestClient, and GetURLRequest to IFrame

* Rename URL classes to Url, add xmldoc and licenses

* Add UrlRequestClient to CefSharp.Example, more minor cleanup

* Getters

* Rebase tweaks

* Fix filenames, remove unused

* Use UnmanagedMemoryStream instead of byte array for IUrlRequestClient.OnDownloadData
2019-10-01 20:11:10 +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 c270d0a00c Upgrade to CEF 77.1.3+gf0a1c44+chromium-77.0.3865.90 / Chromium 77.0.3865.90 2019-10-01 19:54:29 +10:00
amaitland cc8ffc8803 ExampleResourceRequestHandler - Add a brief xml doc to the class 2019-09-29 14:28:32 +10:00
amaitland 0d236b3b45 Example - Update ResponseFilter example to reflect NetworkService changes
- MemoryStreamResponseFilter renamed to StreamResponseFilter
- Stream is now passed into StreamResponseFilter constructor
- ExampleResourceRequestHandler updated to reflect that it now represents a single resource request
- ExampleResourceRequestHandler is now used for all requests from the CefSharpSchemeHandlerFactory.SchemeName custom scheme

Issue #2743
2019-09-29 14:19:25 +10:00
amaitland cfb94fa078 WPF Example - ChromiumWebBrowserWithScreenshotSupport.TakeScreenshot replace timeout with cancellationToken
Remove the Timeout param and replace with CancellationToken

Use CancellationTokenSource.CancelAfter to perform a timeout

https://docs.microsoft.com/en-us/dotnet/api/system.threading.cancellationtokensource.cancelafter?view=netframework-4.8
2019-09-27 08:38:21 +10:00
amaitland 3199872247 JSB - Pass params to IMethodInterceptor.Intercept
Breaking change

Resolves #2909
2019-09-27 08:17:43 +10:00
amaitland e438e22741 Example - Add JSB Qunit Tests for Binder UInt conversion
Issue #2906
2019-09-27 08:07:37 +10:00
amaitland 294c0b2f63 IBinder/DefaultBinder - Rename modelType to targetParamType
Hopefully param names makes the intent clearer
2019-09-27 08:00:25 +10:00
amaitland 8717167b76 JavascriptObjectRepository - Pass all params into IBinder.Bind not just dictionary/list
Previously only IDictionary<string, object>, IList<object> were passed, now all params are passed to allow for type conversion (Issue #2906)

Binding now occurs before missing params are added (they weren't passed to the binder previously, so this doesn't change the behaviour

This is a breaking change.

Resolves #2908
2019-09-27 08:00:06 +10:00
amaitland 518b4d286d WPF - Update Buffer xml doc
Buffer should only be used within the scope of the relevant event/method
2019-09-24 19:24:42 +10:00
amaitland 6da0e9ca74 Example - Demo loading Png
https://cefsharp.example/logo.png
2019-09-20 20:38:06 +10:00
amaitland 8eb43e8557 Merge branch 'master' of https://github.com/cefsharp/CefSharp 2019-09-20 14:55:23 +10:00
Chris Araman d40a7e8c62 build.ps1 - escape commas for PowerShell (#2902) 2019-09-12 19:47:09 +10:00
amaitland 1b0e89e75c OffScreen Example - CachePath values must be children of RootCachePath 2019-09-11 12:18:45 +10:00
amaitland 1d2fb9531f WinForms Example - Add ChromiumContainerControl to host docked DevTools
Required for arrow/tab key presses to be forwarded correctly to DevTools
Only required when CefSettings.MultiThreadedMessageLoop = false
2019-09-10 19:41:21 +10:00
amaitland 55c825efdc WPF - Add new DirectWritableBitmapRenderHandler implementation
Use as default when MultiThreadedMessageLoop = false
2019-09-07 15:41:13 +10:00
amaitland 6d438d6504 WPF - Add lock to AbstractRenderHandler Dispose
Was trying to avoid adding a lock, unfortunately it's still possible for the CopyMemory function to be called
after the MemoryMappedFile has been Disposed.
2019-09-07 15:12:59 +10:00
amaitland b65719f3e6 WPF - Add Resize Hack Test Code
- Add test code from https://github.com/mol/CefSharp/blob/reworkedhack2779/CefSharp.Wpf.Example/MainWindow.xaml.cs#L181
2019-09-07 14:02:30 +10:00
amaitland ea714b327c WPF - Additional RenderHandler Dispose Improvements
- Hide Browser when Disposing, reduce changes of RenderHandler being called
- Add additional IsDisposed check
- Set RenderHandler to null before Disposing
2019-09-07 14:02:10 +10:00
amaitland 00732e154b WPF - Improve ChromiumWebBrowser Dispose
- RenderHandler wasn't being disposed at all
- Used newer syntax for null Dispose calls
2019-09-07 12:52:14 +10:00
amaitland b1bd7499e5 WPF - Interop/WritableBitmapRenderHandler memory allocation improvement
If the MemoryMappedFile is smaller than we need then create a larger one
2019-09-07 12:15:49 +10:00
amaitland b1b930605c WPF - Replace RtlCopyMemory p/invoke with NativeMethodWrapper.MemoryCopy
- RtlCopyMemory only works on x64, we could use the slower RtlMoveMemory, going with a native wrapper around RtlCopyMemory
- Renamed CopyMemoryUsingHandle to MemoryCopy (cannot be CopyMemory or RtlCopyMemory as macro with that name already exists)

https://github.com/cefsharp/CefSharp/pull/2885#issuecomment-529033351

Issue #2885
2019-09-07 09:02:30 +10:00
Konstantin Preißer ce7021226d Add a ".NETCoreApp3.0" dependency to the .nuspec files. (#2894)
This ensures the transitive dependencies (CefSharp.Common) are correctly resolved in .NET Core 3.0 projects.

Contributes to #2796
2019-09-07 05:38:27 +10:00
amaitland 2d20309aa6 WPF Example - Disable Stylus and Touch Support 2019-09-06 15:48:28 +10:00
Konstantin Preißer c311a581e6 WPF - Modify CopyMemory EntryPoint to work with .Net Core (#2885)
* Fix the entrypoint declaration for CopyMemory.

Contributes to #2796

* Follow-Up: Switch to RtlCopyMemory which is faster, but requires that the buffers do not overlap.
2019-09-06 13:15:47 +10:00
amaitland f088a7c169 CefSettings - Add custom dictionary to allow setting of command line args with no value
- Updated CefExample to remove "1" values from the command line arg examples

Issue #2858
2019-09-06 13:05:50 +10:00