1748 Commits

Author SHA1 Message Date
amaitland 5396f70232 WebBrowserExtensions.LoadUrlWithPostData - Update xml doc comment
Follow up to #2451
2018-10-17 07:07:52 +10:00
Igor e81eb2e217 FolderSchemeHandlerFactory - change resource file share mode. (#2535)
* FolderSchemeHandlerFactory - change resource file share mode to ReadWrite.

* FolderSchemeHandlerFactory - add FileShare to controller parameters; make fields readonly.
2018-10-13 12:10:38 +10:00
Chris cde90a34b9 WebBrowserExtensions::GetScript - Added support for all numerical types (#2526)
* WebBrowserExtensions::GetScript - Added support for all numerical types

* Removed leftover using
2018-09-29 16:11:38 +10:00
amaitland 63a569c807 WebBrowserExtensions - Add ExecuteScriptAsyncWhenPageLoaded
Extensions method that attempts to execute javascript immediately if the page is loaded or wire up the LoadingStateChanged
event handler.
2018-09-28 14:15:43 +10:00
amaitland 1b39c2a70a WinForms/WPF/OffScreen - Cleanup some xml doc around BrowserInitialized event
Probably still needs some work, would be nice if the event was the same in all three instances, difficult with the WPF version being a DependencyPropertyChangedEventHandler
2018-09-27 22:02:00 +10:00
amaitland 246dad90a1 WebBrowserExtensions - Fix naming private static variable naming
.editorconfig consistency
2018-09-27 17:24:21 +10:00
amaitland dcff3d0094 IJsDialogHandler - Rename OnJSBeforeUnload to OnBeforeUnloadDialog
Also fix xml doc

Resolves #2523
2018-09-25 20:56:31 +10:00
Chris 30ee538ce0 Added EditorConfig (#2514) 2018-09-17 00:46:21 +02:00
amaitland 6602977496 Upgrade version number to 69 2018-09-10 13:27:10 +10:00
Chris bef5dd37c4 Maintenance - Fixed formatting, file encoding, and copyright year (#2504)
* Applied formatting

* Fixed file encoding + Updated copyright year

* Updated License

* Fixed more file encoding

* Copyright notice now shows the year the file was created
2018-09-10 10:41:13 +10:00
amaitland 8ed2681619 Xml Doc - Add some more xml doc
Some of it's just placeholder doc to keep sandcastle happy
2018-09-05 13:01:41 +10:00
Igor 0ede12e7ba Add OSR AccessiblityHandler. (#2480)
* Add AccessibilityHander.

Implement CefAccessibilityHandler. Add IAccessibilityHandler interface. Add AccessibilityHandler field to IWebBrowser.

* Pull request fixes.

Replaces tabs with spaces; move CefAccessibilityHandler implementation to RenderClientAdapter; add missing comments.

* Add CefValueWrapper.

Add ICefValue interface; pass ICefValue to IAccessibilityHandler.

* Pull request fixes.

Rename CefValue to Value and CefValueType to ValueType; add CefValueWrapper::GetObject() method; remove stub code in AccessibilityHandler; fix comment on IAccessibilityHandler.

* Pull request fixes.

Fix comments for IValue; remove redundant global namespace reference for CefValueType.
2018-08-16 19:33:02 +10:00
amaitland 14daf0a746 FrameLoadStartEventArgs/FrameLoadEndEventArgs - Only set Url param if frame.IsValid
Should resolve #2486
2018-08-16 11:54:21 +10:00
amaitland f6088f33d2 DefaultResourceHandlerFactory - Rewrite so it stores byte[] instead of storing IResourceHandler
It's not actually a factory and will handle multiple requests to the same url

Only API change is for DefaultResourceHandlerFactory directly, the LoadHtml and RegisterResourceHandler extension methods
stay unchanged
2018-08-13 12:39:04 +10:00
amaitland d14c26a892 IResponse.ResponseHeaders - Make obsolete
Use IResponse.Headers instead
2018-08-07 19:33:51 +10:00
amaitland e5a7ed75ec Upgrade version numbers to 68.0.0 2018-08-07 19:15:00 +10:00
amaitland a9f249e835 ClientAdapter::OnSetFocus - When DevTools is opened, OnSetFocus is called before OnAfterCreated
The causes GetBrowserWrapper to return null when DevTools is opened, for now we'll just create the wrapper
and pass it directly (wrapper is disposed when it goes out of scope).
2018-08-07 19:10:58 +10:00
amaitland a7c738456c WPF/OffScreen - Add missing ScreenInfo values
Change to using Rect struct

Follow up to #2474
2018-08-02 13:22:41 +10:00
alfein 391fe825d4 GetScreenInfo - Allow setting of Rect/AvaliableRect (#2474)
* added some code to send monitor information back to the cef

* reverted framework target change

* small cleanup.  Handling location changed of the window to force refresh screeninfo

* Fixed formatting of C++ code, added comments, removed code from samples

* removed extra white space
2018-08-02 13:21:02 +10:00
amaitland d87e795000 WinForms/Wpf/OffScreen - Create specific CefSettings class for each version
- This is a breaking change as there is no common `CefSharp.CefSettings`, there is no `CefSharp.Wpf.CefSettings`, `CefSharp.WinForms.CefSettings` and `CefSharp.OffScreen.CefSettings`
 - Cef.Initialize has been removed, the `ChromiumWebBrowser` constructor will call the `Cef.Initialize` with the defaults for your flavour
 - CefSettings.FocusedNodeChangedEnabled has been moved to CefSharpSettings.FocusedNodeChangedEnabled

Resolves #2477
2018-08-02 10:47:12 +10:00
amaitland 9d4504db99 IDownloadHandler - Add IWebBrowser param to methods
Resolves #2470
2018-07-24 12:38:45 +10:00
amaitland 430c439690 IFocusHandler - Add IWebBrowser and IBrowser Params
IFocusHandler methods are now called for popups, use browser.IsPopup to differentiate
DefaultFocusHandler has been updated accordingly

Resolves #2468
2018-07-24 12:26:04 +10:00
amaitland d28ce081ed Handler Xml Doc Cleanup - Rename webBrowser to chromiumWebBrowser 2018-07-24 12:13:37 +10:00
amaitland 4c3b0652b0 JavascriptObjectRepository - Throw exception if trying to Register .Net built in type
Also Simplify some code as per VS suggestion

Resolves #2466
2018-07-23 09:52:30 +10:00
amaitland 7275d2c611 WebBrowserExtensions - Add GetCookieManager extension method to simplify getting the
cookie manager associated with the IWebBrowser instance
2018-07-21 21:08:21 +10:00
amaitland 9c79dfeb2c IFrame.LoadRequest - Update xml doc
LoadRequest can only be called when a render process has already been created, suggest loading a data uri initially

http://magpcss.org/ceforum/viewtopic.php?f=6&t=16058&p=38563&hilit=LoadRequest#p38559

Resolves #2451
2018-07-13 10:28:25 +10:00
amaitland 5b15ed01bd Add IJavascriptObjectRepository.UnRegisterAll
UnRegisterAll all bound objects - does not unbind them from the JS context
2018-07-13 10:13:08 +10:00
amaitland 37a364c0ad Add IJavascriptObjectRepository.UnRegister
Allows for an object to be removed from the repository, doesn't unbind the object from javascript though
2018-07-12 20:31:31 +10:00
amaitland 48bd8d5590 Add IRequestContextHandler.OnRequestContextInitialized
- Rename RequestContextHandler to CefRequestContextHandlerAdapter and move to internals
- Add missing RequestContextSettings.EnableNetSecurityExpiration
- Minor code cleanup
2018-07-10 20:21:46 +10:00
amaitland 8301090afe Merge branch 'split_ceffiledialogmode_enum' of https://github.com/fuzzykiller/CefSharp 2018-07-02 18:24:44 +10:00
amaitland 90c5e71aeb WPF/OffScreen - Removed ViewRect and replaced with existing Rect (struct)
IRenderWebBrowser.GetViewRect didn't allow you to return the x and y coordinates

This is a breaking change
2018-06-27 19:54:41 +10:00
amaitland 72c1babab9 Upgrade version numbers to 67 2018-06-25 21:33:57 +10:00
amaitland d09c3e8b03 CefSharpArguments.ExitIfParentProcessClosed - Change to lowercase
Chromium changes the args to lowercase, so we switch to lowercase for compare.
2018-06-25 21:31:17 +10:00
amaitland e4535ab9df CefSharpSettings.SubprocessExitIfParentProcessClosed - only spawn task to monitor parent if command line arg present
Follow up to #2375
2018-06-11 22:18:51 +10:00
João Neves 274e841f35 Close CefSharp.BrowserSubprocess.exe if parent process exits (#2375)
* Close cefsharp subprocess if main process dies

* Code review

* Await before exiting

* Update Program.cs
2018-06-09 21:39:23 +10:00
Philipp Feigl 2f49ba6852 Update DependencyChecker with now required "v8_context_snapshot.bin" file (#2399) (#2400) 2018-05-25 10:27:25 +10:00
amaitland 5adff7014b ResourceHandler - Expose AutoDisposeStream for ResourceHandler.FromStream and ResourceHandler.FromFilePath
Also add OneTime param to WebBrowserExtensions.RegisterResourceHandler which translates to AutoDisposeStream
2018-05-17 16:43:14 +10:00
amaitland e6c909b282 JavascriptBindingExtensions - Remove unnecessary async keyword from script 2018-05-15 15:52:29 +10:00
amaitland 35b795075c Untabify JavascriptBindingExtensions 2018-05-15 15:52:28 +10:00
amaitland 11cfb7d434 Review Callback classes and implement the simplest possible fix until a long term solution for #2349 is devised
- Add OnComplete check to all the TaskCompletionSource based callbacks that could potentially have executed TrySetResultAsync twice, which could on rare occasions
execute in a non deterministic fashion (The Disposed execution of TrySetResultAsync called before the OnComplete one). See #2349 for a more detailed
proposal and one potential long term solution (upgrading to .Net 4.6 is the best option, though not practical now, will update the example projects shortly).
- Update callbacks for consistency, all now implement IDisposable and have an IsDisposed
2018-05-13 13:07:13 +10:00
amaitland 0a849a8976 JSB - Add EnsureObjectBoundAsync method
To support this use case added IJavascriptObjectRepository.ObjectsBoundInJavascript (called a single time with names of all objects bound)

Implements the idea put forward in #2362
2018-05-09 13:16:07 +10:00
amaitland 56ce91fa9d Upgrade version numbers to 66 and update README.md 2018-05-03 12:20:45 +10:00
amaitland 552962ba77 IRequestHandler.OnBeforeBrowse - Add userGesture param
The userGesture value will be true if the browser
navigated via explicit user gesture (e.g. clicking a link) or false if it
navigated automatically (e.g. via the DomContentLoaded event).
2018-05-03 12:11:52 +10:00
amaitland 43c1ff3ed0 Task Callbacks - only call TrySetResultAsync if the callback was never called
Add IsDisposed property to ICompletionCallback, IPrintToPdfCallback, IRegisterCdmCallback, IResolveCallback
Should resolve #2349 until the code review can be finished
2018-04-30 13:58:47 +10:00
amaitland f2fcbf0add Always pass through Process Id to subprocess
Improve command line parsing

Partial import of changes from #2375
2018-04-30 12:45:15 +10:00
amaitland 8f7692ae6e JSB - Add JavascriptBindingCompleteEventArgs and config options to CefSharp.BindObjectAsync
CefSharp.BindObjectAsync can now take an optional config object as first param
Include additional information when binding complete
Add option for cefSharp.bindObjectAsync (starting with lowercase latters)
Add new syntax options - not entirely complete, no variant for the options object
Add ignore cache option
2018-04-27 16:40:39 +10:00
amaitland c1b89c62e9 WPF/OffScreen - Code cleanup and minor refactor
IRenderWebBrowser - Method naming now matches CEF, xmldoc updated to be more accurate

CefSharp.Wpf.ChromiumWebBrowser and CefSharp.OffScreen.ChromiumWebBrowser both updated as a result of IRenderWebBrowser changes
Should be minimal public API changes, should only require changes for those that are implementing their own rendering, who will have a major rewrite on their hands regardless of this.
2018-04-20 14:49:25 +10:00
amaitland b492905cea Code cleanup - Move some structs and enums into separate namespace
- Move the less likely to be used structs/enums into the relevant namespaces, would ideally like to move them all, would likely cause a few issues
for some when upgrading though, so deferring for now.
- Remove Geoposition as it's no longer used (Geolocation API was removed in CEF)
2018-04-20 12:56:32 +10:00
amaitland 7490b53490 IDragData.GetFileContents - update to properly closer represent the CEF API
Pass in null to get the stream size, pass in a valid stream (typically MemoryStream) to get the actual contents
2018-04-19 17:39:21 +10:00
James Coyle 4c555d7223 Handle URL escaped paths correctly (#2364)
Allows for the FolderSchemeHandler to correctly parse encoded URLs such as URLs containing spaces in requests from the currently loaded page.
2018-04-19 14:20:54 +10:00