Commit Graph

6179 Commits

Author SHA1 Message Date
amaitland 750fc9f22e Javascript Binding - Add support for JsonString
JsonString is parsed into CefValue using the CefParseJson function
If your data is already stored in JSON then it can be parsed directly
or you can use a serializer of your choosing to turn a object into JSON
2019-07-20 12:11:43 +10:00
amaitland 6233925efd Upgrade version number to 75.1.40 2019-07-18 21:23:41 +10:00
amaitland 256e7275d5 IRequestHandler.GetAuthCredentials - Replace frame param with sourceUrl
https://bitbucket.org/chromiumembedded/cef/commits/5e9ca096e0bbdbd6661df5d882082e3324237993
2019-07-18 21:18:56 +10:00
amaitland 51b21f7fca Upgrade to CEF 75.1.4+g4210896+chromium-75.0.3770.100 / Chromium 75.0.3770.100 2019-07-18 20:14:09 +10:00
amaitland cdca99c548 CefExample - Remove disable-direct-write
No longer supported by Chromium.
2019-07-18 19:59:47 +10:00
amaitland a02d510abc InternalWebBrowserExtensions.SetHandlersToNullExceptLifeSpan - Add missing handlers 2019-07-17 22:01:35 +10:00
amaitland 2a8d8ec42e .editorconfig - Add javascript formatting section 2019-07-17 15:46:27 +10:00
amaitland 6c002f8cfe HtmlString - Add FromFile static helper method 2019-07-17 15:46:26 +10:00
Alex Maitland e3fcc90c2d Update README.md
Update financial support section with details about upcoming version 75 release
2019-07-12 10:03:54 +10:00
amaitland f8972c6c45 WinForms - Add new constructor overload (HtmlString html, RequestContext context = null)
- New HtmlString class can be used to create a DataUri encoded string for use with the WinForms
ChromiumWebBrowser constructor
- Remove duplication in WebBrowserExtensions extensions, use new HtmlString class

Related issue is #2668
2019-07-11 12:44:57 +10:00
amaitland 4183b464d1 WPF/WinForms Example - Allow mailto to trigger OnProtocolExecution
- When Url starts with mailto then use our ExampleResourceRequestHandler
- Ignore unknown scheme errors when it's mailto, we expect that it's unknown
- WPF Example remove duplicate OnLoadError in BrowserTabViewModel
2019-07-10 20:47:55 +10:00
amaitland c50b495458 IResourceHandler - Update Obsolete attribute as methods will be removed next version 2019-07-09 07:33:50 +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
amaitland ec21d01182 WebBrowserExtensions - Reenable CanExecuteJavascriptInMainFrame checks 2019-07-08 20:14:51 +10:00
Matthew Thomas e6f854f8ca PdfPrintSettings - Update xml doc as margins are measured in points, not mm (#2822) 2019-07-08 08:51:39 +10:00
Shaojun Li d70d3155f1 WPF - Fix and improve touch and stylus (#2817)
WPF - Improve Experimental Touch and stylus

- Send all points from stylus event instead of single, which can make handwriting smoother.
- Only send mouse events when stylus is null as WPF uses mouse emulation for stylus
2019-07-08 08:47:27 +10:00
amaitland 1dc9023df2 RegisterBoundObjectHandler - Slightly reduce notifyIfAlreadyBound and ignoreCache code duplication 2019-07-08 08:33:40 +10:00
amaitland 3bb2175919 CefExample - Disable LegacyBindingEnabled
Accidentally enabled it previously
2019-07-08 08:33:39 +10:00
Eklavya df680aec3c Add Shift+Tab as inputs to browser when MultiThreadedMessage loop is disabled. (#2814)
When MultiThreaded message loop is disabled, we use the winform message loop. We want to ensure that Shift+Tab (cycle selection back) is recognized as a valid input in this case or it breaks keyboard accessibility.
2019-07-08 08:32:06 +10:00
amaitland 9eec7229a7 WPF - Disable GPU Compositing by default 2019-07-04 21:21:25 +10:00
amaitland e0268a3e2a Network Service - Register custom scheme in all process types
The network services requires that custom schemes be registered, previously we only registered them in render processes.

Add SubProcessApp to handle scheme registration
CefAppUnmanagedWrapper inherits SubProcessApp now

#2743
2019-07-04 20:47:42 +10:00
amaitland 7e084f7439 WPF Example - Register cefsharp.example scheme handler factory
Example is commented out
2019-07-04 10:43:38 +10:00
amaitland 581c4e8aee WinForms Example - Add Javascript binding stress test
Port of the WPF example
2019-07-03 20:40:25 +10:00
amaitland cabf363061 CefSharpSettings.LegacyJavascriptBindingEnabled - Change xml doc
Also change comment in CefExample
2019-07-03 20:31:21 +10:00
amaitland d9ff48e754 appveyor.yml - update expired myget api key 2019-07-03 13:31:41 +10:00
amaitland 517779b91c Upgrade to CEF 75.0.13+g2c92fcd+chromium-75.0.3770.100 / Chromium 75.0.3770.100 2019-07-03 13:18:39 +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
Alex Maitland aca7cad9a0 Update README.md
GitHub network graph works again
2019-06-30 20:11:14 +10:00
amaitland f77c6d2cb4 IRequest - Add code example to Headers property
Also updated the xml doc, there's new GetHeaderByName and SetHeaderByName methods that should be used where possible.

Resolves #2671
2019-06-26 16:30:02 +10:00
amaitland aa238b2f9d RequestEventHandler - Inherit from RequestHandler
- Remove commented out code
- Remove event args for methods that now don't exist in RequestHandler
- Basic code cleanup.
2019-06-25 19:24:57 +10:00
amaitland e64b3afa5d DefaultRequestHandler - Revert changes and just mark Obsolete 2019-06-25 19:24:57 +10:00
amaitland b68d8d7a8f RequestHandler - Change interface implementation to be explicit
- Make members protected virtual (BREAKING CHANGE)
- Remove Default from name of DefaultResourceRequestHandlerFactory/DefaultResourceRequestHandlerFactoryItem
2019-06-25 19:24:57 +10:00
amaitland 8942b68336 ResourceRequestHandler - Move commented out methods in ExampleResourceRequestHandler 2019-06-25 19:24:57 +10:00
amaitland 68326c938f Add DefaultRequestHandler (marked as Obsolete) for backwards compatibility
Ditching Default from naming convention.
2019-06-25 19:24:57 +10:00
amaitland 7e731b0fa9 Code Cleanup - Rename DefaultRequestHandler to RequestHandler
Also renamed CefSharp.Example.Handlers.RequestHandler to CefSharp.Example.Handlers.ExampleRequestHandler

Will Add in Obsolete DefaultRequestHandler
2019-06-25 19:24:57 +10:00
amaitland 8e8ba467df Wpf Example - Add Google Service Worker demo to tests menu 2019-06-25 19:24:57 +10:00
amaitland 7e31a9523e DefaultResourceRequestHandler - Add default implementation for users to override only the methods they require 2019-06-25 19:24:57 +10:00
amaitland 998c5a280f ClientAdapter - Add ResourceRequestHandlerFactory->HasHandlers check to GetResourceRequestHandler 2019-06-25 19:24:57 +10:00
amaitland 07d8862c96 IResourceHandler - Improve xml doc 2019-06-25 19:24:57 +10:00
amaitland 5ec1dbfe78 ResourceHandler - Rename CharSet to CharSet 2019-06-25 19:24:57 +10:00
amaitland 74d6ae1c0e Update version number to 75.0.110 2019-06-25 19:24:57 +10:00
amaitland 7eff7d17c0 ResourceHandler - Add new methods and callbacks
Now uses IResourceHandler.Open to call IResourceHandler.ProcessRequestAsync
IResourceHandler.ProcessRequestAsync now returns CefReturnValue instead of bool as there are three states
2019-06-25 19:24:57 +10:00
amaitland 4bf29cf358 IJavascriptCallback - Add ExecuteWithTimeoutAsync 2019-06-25 19:24:57 +10:00
amaitland 17d8767045 Revert "JavascriptCallback - Hack to work around upstream issue"
This reverts commit 9d47c2ed0f.
2019-06-25 19:24:57 +10:00
amaitland 4e5aac413f Upgrade to CEF 75.0.11+gf50b3c2+chromium-75.0.3770.100 / Chromium 75.0.3770.100 2019-06-25 19:24:57 +10:00