campersau
6e82717f3f
add spaces in exception messages ( #2620 )
2019-01-12 08:00:07 +10:00
amaitland
5396f70232
WebBrowserExtensions.LoadUrlWithPostData - Update xml doc comment
...
Follow up to #2451
2018-10-17 07:07:52 +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
246dad90a1
WebBrowserExtensions - Fix naming private static variable naming
...
.editorconfig consistency
2018-09-27 17:24:21 +10:00
Chris
30ee538ce0
Added EditorConfig ( #2514 )
2018-09-17 00:46:21 +02: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
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
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
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
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
68c9a6418c
Disable CanExecuteJavascriptInMainFrame checks for ExecuteScriptAsync/EvaluateScriptAsync
...
See #2250 for details (appears to be bug in `CEF`)
2018-01-24 10:16:01 +10:00
amaitland
9f874807d5
WebBrowserExtensions.GetHost renamed to GetBrowserHost
...
Add missing this keyboard to make it an extensions method
2018-01-18 10:25:53 +10:00
amaitland
fe026a8f9e
Add IWebBrowser.GetHost() extension method - make it easier to directly get the IBrowserHost reference
2017-05-29 13:49:23 +10:00
amaitland
b2143f60d1
Add IWebBrowser.LoadUrlWithPostData extension method (in WebBrowserExtensions) - simplifies calling LoadRequest
...
Add IPostData.AddData extension method (in PostDataExtensions)
WPF Example change from calling LoadRequest to using new LoadUrlWithPostData extension method
2017-05-26 11:24:45 +10:00
amaitland
16dbb10c61
Add ThrowExceptionIfCanExecuteJavascriptInMainFrameFalse method to reduce duplication.
...
Improve error message, add info about V8Context not being created for pages with no javascript
2017-05-08 13:16:24 +10:00
amaitland
a683eade99
Follow up to #2010
...
ResourceFactoryItem renamed to DefaultResourceHandlerFactory - it's only used in the context of that class
Change persist to OneTimeUse and invert logic (false is the default)
Remove unnecessary RegisterHandler overload - user default value instead
2017-04-10 12:08:05 +10:00
Chris
d03e4a44bd
Made LoadHtml register a "one-time use" handler
2017-04-07 14:22:47 +02:00
amaitland
d60d1b73c8
SetCanExecuteJavascriptOnMainFrame was only being set when there was a RenderProcessMessageHandler assigned, change so it's always set
...
Improve the formatting of the exception thrown
2017-03-28 10:03:21 +10:00
amaitland
eecf3aded9
Add IWebBrowser.CanExecuteJavascriptInMainFrame property, set to true/false when V8Context is created/released
...
Added checks in the execute/eval javscript methods in WebBrowserExtensions
Made possibly by the addition of OnContextReleased IPC message being added
2017-03-28 09:43:59 +10:00
amaitland
b432d5aa38
Change IBrowserHost.SendMouse* to use the MouseEvent struct (added some extension methods to maintain API compatibility)
...
Review classes and structs
Added constructor to structs where all fields were required
Made some classes sealed, mostly those that are passed into the framework where subclassing and adding methods/properties wouldn't make sense
2017-03-27 15:46:34 +10:00
amaitland
43aa8a35ea
Remove IBrowserHost.PrintToPdfAsync - code is now implemented in the PrintToPdfAsync extension method
2017-03-10 14:43:35 +10:00
Chris
cd934267c6
Updated copyright year and made sure it used same format everywhere ( #1966 )
2017-03-06 08:44:37 +10:00
Chris
55f2c82ac7
Fixed LoadHtml loading the Url even if RegisterHandler returns false ( #1943 )
2017-02-15 10:01:35 +10:00
amaitland
01e7e6f3d7
Add LoadHtml extensions method - use data uri to load the html
2017-02-02 11:21:14 +10:00
Chris
08bc409047
Added a missing space and made two letters lowercase ( #1909 )
2017-01-07 07:23:41 +10:00
amaitland
9df1bc132c
Add RegisterResourceHandler and UnRegisterResourceHandler to simplify using the DefaultResourceHandlerFactory
2016-12-08 22:14:09 +10:00
amaitland
f2050a0861
Add scriptUrl and startLine to EvaluateScriptAsync
2016-12-02 06:10:40 +10:00
PrinceOfEgypt
652a09bf6a
Add overloads for EvaluateScriptAsync to support methodName and args ( #1738 )
...
* Add overloads for EvaluateScriptAsync to support passing in methodName and args
* Fixing typo (teh => the)
2016-07-13 09:11:32 +10:00
chylex
2532c80971
Fix bool, number culture, and string escaping in ExecuteScriptAsync with parameters ( #1731 )
2016-07-05 11:23:01 +10:00
amaitland
bae3c28e92
Update copyright to 2016
2016-01-11 14:11:30 +10:00
Atvaark
b04ccbb269
Add missing comments
2015-11-04 13:10:00 +10:00
amaitland
ab894a4ff4
Handle case where args.Length == 0
...
Previously would have stripped off the last two chars of the script
2015-10-29 11:13:53 +10:00
amaitland
e4db664801
Add override to ExecuteScriptAsync extension that takes in a method name and array of params, then generates the relevant script and executes
2015-10-26 12:43:35 +10:00
amaitland
1843486050
Rename CefSharpPdfPrintSettings to PdfPrintSettings (inconsistent naming)
...
Add xml documentation to PdfPrintSettings
Change return type from Task to Task<bool> (exceptions are expensive and unnecessary)
Fix small bug in assigning HeaderFooterTitle and HeaderFooterUrl (values were switched)
Allow PrintToPdfAsync to accept nullptr for settings (use defaults)
Update xml documentation in various instances for PrintToPdfAsync
2015-09-20 18:43:06 +10:00
David Serfozo
6ecb0fc129
PrintToPdf API changed to use Tasks instead of callbacks
2015-09-19 13:28:52 +02:00
David Serfozo
ebd4cb26ab
added PrintToPdf extension methods
2015-09-19 12:26:26 +02:00
amaitland
326aaf70f8
Move handlers to their own namespace and create an implementation of LifeSpanHandler to deal with custom popups
2015-08-03 17:57:01 +10:00
amaitland
118182f537
Add modifiers param to SendMouseWheelEvent
...
Add SendKeyEvent to IBrowserHost including mapping struct classes
2015-07-24 12:23:29 +10:00
amaitland
df94d54a61
Remove duplicate GetMainFrame and GetFocusedFrame methods - turned them into extensions
2015-07-01 19:49:27 +10:00
amaitland
f239503bb3
Move SendMouseWheelEvent to IBrowserHost
2015-07-01 19:38:14 +10:00
amaitland
091339de25
OffScreen control - update to throw exception if Browser has not been initialized
...
It's quite common for users to attempt to execute a browser function before it's initialized and for it to silently fail if it's not been initialized
2015-07-01 19:24:49 +10:00
amaitland
2129c1907e
Remove IBrowserAdapter from Frame and Browser wrappers - now directly cast CefClient to ClientAdapter so can execute js
2015-06-29 14:03:10 +10:00
amaitland
819dfd54f9
Move WcfEnabled option into CefSharpSettings class
...
Reduce code duplication - move EvaluateScriptAsync in WebBrowserExtensions
2015-06-29 13:20:47 +10:00
amaitland
124cf84142
Wrap frame calls in using statements (Dispose will be ignored if frame null)
2015-06-15 12:21:22 +10:00
Bill Tutt
3ac316c3c6
Add IBrowser extension methods for IBrowserHost methods, and call from IWebBrowser extensions.
2015-05-28 23:01:30 -04:00
amaitland
16ac917f49
Add some more xml comments to WebBrowserExtensions
2015-05-29 12:08:24 +10:00