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
amaitland
d394124b3a
Move public facing CefBrowserHost methods into extension methods that use the IBrowserHost wrapper
2015-05-29 11:23:25 +10:00
amaitland
e715c37910
Don't dispose of cefBrowser now that it's a single reference per ChromiumWebBrowser instance - API may still need a few tweaks
2015-05-28 21:00:26 +10:00
amaitland
1163e59aae
Dispose of frame when finished (releases the reference to the unmanaged class).
...
Whilst not strictly required, it's nice to know the frame is explicitly released and for those copying the code, give them a clue that they need to call dispose
2015-05-28 20:28:46 +10:00
amaitland
bd3fddddbc
Throw exception if null (ThrowExceptionIfBrowserNull)
...
Dispose of IBrowser once finished (just releases the reference)
2015-05-28 20:26:12 +10:00
amaitland
3038b820ec
Slightly better param naming - internalBrowser -> cefBrowser
2015-05-28 20:24:04 +10:00
amaitland
6cd3c67abb
Make Reload + ReloadIgnoreCache into one method with a property - makes consistent with the rest of API
2015-05-28 20:23:13 +10:00
amaitland
67d57c96a0
Move Stop/Back/Forward methods into WebBrowserExtensions
2015-05-28 20:20:32 +10:00
amaitland
507fbf0704
Add null check for LoadHtml - add better error message to say that it's only usable with DefaultResourceHandlerFactory
2015-05-28 19:55:45 +10:00
amaitland
3908a6212a
Rather than fail silently throw and exception if the frame is null, this is a drastic change in behaviour. Though it provides a much more transparent behaviour though.
...
Just need to make sure it's easy to check IsBrowserInitialized in all instances to see if it's safe to call methods (should only be called when IsBrowserInitialized is true, only problem with this is in WPF where it's a dependency property)
2015-05-28 19:54:22 +10:00
amaitland
d0d409a8fd
Rename LoadHtml to LoadStringForUrl (Internal method is LoadString, for some reason that causes the compiler a problem as there is a define already aliasing LoadString).
...
LoadHtml was a somewhat conflicting name with the LoadHtml extension methods that use a ResourceHandler to load the html
2015-05-27 17:44:03 +10:00
amaitland
8579a6a210
Remove RegisterHandler/UnRegisterHandler methods from the IResourceHandlerFactory interface
2015-05-27 16:21:48 +10:00
amaitland
d37dd2d2ef
Move LoadHtml into an extension method
2015-05-27 16:18:28 +10:00
amaitland
1ce10ea53f
Move LoadHtml (LoadString) to extension
2015-05-21 20:25:02 +10:00
amaitland
1a1fcb9f2e
Make the next set of frame related methods into extension methods
2015-05-21 19:12:14 +10:00
amaitland
024a80396e
Move the first set of frame related method (Cut/Copy/Paste, etc) into a set of Extension methods
2015-05-21 18:49:58 +10:00
amaitland
46808752da
Copy WebBrowserExtensions to InternalWebBrowserExtensions
...
Create empty WebBrowserExtensions to house common methods
2015-05-21 18:20:44 +10:00
amaitland
22146e33ca
Untabify
2015-05-21 13:57:17 +10:00
amaitland
e43befe9fa
Start to extract some duplicate code out into extension methods - saves repeating the same block three times
2015-05-21 13:51:14 +10:00