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