1735 Commits

Author SHA1 Message Date
amaitland f04648ef11 Xml Doc - Add some more xml doc
Some of it's just placeholder doc to keep sandcastle happy
2018-09-05 09:51:22 +10:00
Igor efdf9aa8d4 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-23 19:36:37 +10:00
amaitland 64aec8f5b3 FrameLoadStartEventArgs/FrameLoadEndEventArgs - Only set Url param if frame.IsValid
Should resolve #2486
2018-08-16 11:55:14 +10:00
amaitland a9a3d52b33 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:16:03 +10:00
amaitland fe26853a57 WPF/OffScreen - Add missing ScreenInfo values
Change to using Rect struct

Follow up to #2474
2018-08-05 20:00:06 +10:00
alfein 1913ca7787 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-05 20:00:04 +10:00
amaitland 366d3a898c 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:48:42 +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
amaitland ccc549ba1f IRenderWebBrowser - Add StartDragging xml doc 2018-04-16 17:26:23 +10:00
amaitland a17150c40d IDragData - Add Clone method 2018-04-16 17:26:22 +10:00
amaitland 82630ec396 CefDrawData - Add Image
Add IImage interface and supporting structs/enums
2018-04-16 17:26:21 +10:00
amaitland d99d6d87fe Set event handlers to null in Dispose
Not all event handlers were set to null on Dispose in ChromiumWebBrowser instances and JavascriptObjectRepository

Resolves #2307
2018-04-13 16:18:57 +10:00
amaitland 2fbc0bb5a1 WebBrowserExtensions - Rename ExecuteScriptAsyncEncodeString to EncodeScriptParam
Method is used by both eval and execute so make name more generic. Improve xmldoc slightly
2018-04-03 14:22:32 +10:00
amaitland 431fe76a39 WebBrowserExtensions - Add ExecuteScriptAsyncEncodeString to allow for custom encoding of string params used with ExecuteScriptAsync overload
Also rename test case and add comment

Follow up to #2340
2018-04-03 14:12:10 +10:00
Garr Godfrey 7e30861bc2 Encode string parameters to pass unchanged.
enter the commit message for your changes. Lines starting
2018-03-28 22:28:01 -07:00
amaitland a87d834409 Add Cef.GetBlockingCookieManager, IRequestHandler.CanGetCookies and IRequestHandler.CanSetCookie
RequestEventHandler example implementation is incomplete
2018-03-28 14:28:38 +10:00
amaitland c37dbcd06a Remove Geolocation API and Upgrade version numbers to 65 2018-03-17 21:31:25 +10:00
João Neves 5a713fdf7d Support uncaught exception handling (#2244)
* Added support for uncaught javascript exception in Render Process Message Handler
* Fixed typo
* Added stack frame column numbers
* Code review
* Code review
* Update JavascriptException.cs
2018-03-07 10:21:31 +10:00
amaitland 5e6addc0c9 CefTime.GetDoubleT returns invalid .Net date
Issue #2283
2018-03-05 16:55:11 +10:00
amaitland 7d720c6f80 ResourceHandler.FromFilePath - Remove Obsolete attribute
Update to use File.OpenRead and FromStream method instead
2018-03-05 16:36:22 +10:00
amaitland f67ff89e44 Geolocation - Mark as obsolete/deprecated
See #2293 for details
2018-03-05 16:34:35 +10:00