Commit Graph

311 Commits

Author SHA1 Message Date
amaitland a88ca171c9 Add IBrowser param to OnFaviconUrlChange
Add IBrowser param to OnResourceRedirect
Update comment so hopefully it's clearer that the browserControl param is the ChromiumWebBrowser instance
2015-07-22 14:53:34 +10:00
amaitland 1aba3b59e6 Add Request param to OnResourceRedirect 2015-07-22 14:47:28 +10:00
amaitland 17df6f8153 Add PostDataElementType enum 2015-07-07 20:37:09 +10:00
amaitland 133a88b644 Add sample of how to use the new post data implementation 2015-07-07 20:35:08 +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 b92cdfd958 Add additional comment and revise CefExample comment 2015-06-25 11:15:57 +10:00
Alex Maitland 0a197a7701 Merge pull request #1094 from arsher/switchablewcf
Add Ability to Disable WCF
2015-06-25 10:33:56 +10:00
David Serfozo b1c7a2b791 CefWcfRenderProcess removed;;examples updated;;added exceptions 2015-06-24 21:38:51 +02:00
amaitland 996cb9a44c Revert to using embedded home page - added .html extension so the mimeType mapping picks up the correct type.
Fix the StatusCode to 200 to represent success (minor type fix as was 300 before)
2015-06-24 17:19:57 +10:00
amaitland 864f9ea7a2 Rename GetResponseHeaders to GetResponse 2015-06-15 23:07:02 +10:00
amaitland 018598171a Add first draft of CefResponseWrapper 2015-06-15 21:20:02 +10:00
amaitland afbed86524 First draft of what is hopefully the final rewrite of ResourceHandler/SchemeHandler
This will built but won't run as CefResponseWrapper has not yet been implemented.
2015-06-15 21:03:25 +10:00
rassilon 431cb511c3 * Move unmanged objects into finalizer and call finalizer from Dispose.
* Remove DisposableResources from ManagedCefBrowserAdapter
* Improve disposing of CefRequestWrapper
* Have callbacks dispose themselves.
* Allow the Application exit handler shutdown CEF from the Winforms example application.
2015-06-13 10:42:33 -04:00
amaitland 60be64f67b Add IBrowser to IRequestHandler.OnBeforeBrowse - reorder params to match CEF API
Need to look at loading the cached browser instance
2015-06-11 11:06:19 +10:00
amaitland 801bebbbd0 Merge branch 'MorePopupHandlerWork' of https://github.com/rassilon/CefSharp 2015-06-11 10:04:43 +10:00
Bill Tutt a7ba17fbc2 The changes continue... 2015-06-08 22:48:29 -04:00
amaitland bbaa58faed Expand ISchemeHandlerFactory to pass in browser, frame, schemeName and request 2015-06-05 13:40:27 +10:00
amaitland c193020c72 Change public API to use Continue and Cancel methods - callback is then somewhat more consistent with other callback wrappers 2015-06-05 12:17:12 +10:00
amaitland c8d73574da Add cancel param to ProcessRequestCallback - previously only able to call the Continue() method on the callback 2015-06-05 12:12:33 +10:00
Bill Tutt 3a330f4352 Here's some more, and the missing return stmt. GetResourceHandler of course doesn't go on PopupHandler. 2015-06-03 00:14:43 -04:00
amaitland 6bda7b20aa Add CefAuthCallbackWrapper 2015-06-01 16:46:28 +10:00
amaitland 4b6af9448a Add CefFileDialogCallbackWrapper 2015-06-01 16:27:42 +10:00
amaitland 64379bc193 Start updating examples to Dispose() the callbacks
Untabify IRequestCallback
2015-06-01 12:05:53 +10:00
amaitland e6e39e773a Add CefBeforeDownloadCallbackWrapper 2015-06-01 11:48:12 +10:00
amaitland 6daff6e780 Update OnBeforeUnloadDialog to expose IJsDialogCallback
Add a Continue overload to IJsDialogCallback to simplify use (just passes in an empty CefString)
2015-06-01 11:31:57 +10:00
amaitland 3fb959f7ed Add CefDownloadItemCallback Wrapper - Can now Pause and Resume a download 2015-06-01 11:12:56 +10:00
Bill Tutt 668738ed58 Add some more methods on IPopupHandler and call them.
Don't put the following handlers on IPopupHandler due to the underlying security related purpose, but add IBrowser parameters:

* OnCertificateError
* OnQuotaError
* OnPluginCrashed
* OnRenderProcessTerminated
* OnProtocolExecution
* OnBeforePluginLoad
* GetAuthCredentials
2015-05-29 01:33:44 -04:00
Bill Tutt 1df0d648a8 Don't create a task for MemoryStreams, and some more Resharper Cleanups. 2015-05-28 22:14:34 -04:00
amaitland 8579a6a210 Remove RegisterHandler/UnRegisterHandler methods from the IResourceHandlerFactory interface 2015-05-27 16:21:48 +10:00
amaitland 771158af28 Pass CefSharpBrowserWrapper instance (IBrowser) into IDownloadHandler - for now not populating the IBrowserAdapter property as there's currently no way to grantee when the resource would be released/disposed.
Maybe need to look at WeakReference or a layer of indirection (which I was hoping to avoid)
2015-05-21 14:25:32 +10:00
amaitland 5f3d4abf69 Fix json test error (<= should have just been <)
Change a few `==` checks to `===` to make visual studio happy (just comparing strings, so no fancy type conversion necessary)
2015-05-19 19:48:18 +10:00
amaitland 0413c0bc6c Merge remote-tracking branch 'remotes/upstream/master' into cef/2272 2015-05-13 09:29:07 +10:00
amaitland 59ded0957d Add disable-plugins-discovery example 2015-05-13 09:25:55 +10:00
amaitland d90b30dbae Specify cache path for CefExample, so data is persisted (outputs to a cache folder in the current app directory path).
Add debug-plugin-loading command line argument example
2015-05-13 09:20:15 +10:00
Harald van Dijk 3043b4192b Automatically detect Windows XP. 2015-05-08 20:09:46 +02:00
amaitland 679e5e70c7 Undate embedded jQuery to v1.11.3 2015-05-08 11:40:17 +10:00
amaitland 95470df8ee Merge remote-tracking branch 'remotes/upstream/cef/2272' into enhancement/onjsdialog 2015-05-07 15:27:44 +10:00
Alex Maitland 16ba0ab6a5 Merge pull request #1008 from amaitland/enhancement/requestcallback
Implement CefRequestCallback wrapper
2015-05-07 15:24:44 +10:00
amaitland fb87cab4f4 Add OnFaviconURLChange implementation - there is no IDisplayHandler interface so added the method to IRequestHandler as that seemed the next best place. 2015-05-07 13:52:19 +10:00
amaitland fc9e6dc9ad Rewrite OnJSDialog so now matches the Cef API, whilst I understand that the ideal of having the types split into different methods was nice from a user point of view, I think we kept functionality from users that was exposed.
So the callback wrapper has been added so can now be executed async. SuppressMessage is now possible.

Fixes #999
2015-05-07 12:53:36 +10:00
amaitland dc986b3b06 Implement CefRequestCallback wrapper and expose for relevant CefRequestHandler interfaces
Resolves #982
2015-05-07 11:33:33 +10:00
amaitland d9a3f3dd31 Remove duplicate using 2015-05-04 14:38:20 +10:00
amaitland f8691fdee6 Merge remote-tracking branch 'remotes/upstream/cef/2272' into cleanup/resourcehandler 2015-05-04 14:34:31 +10:00
Bill Tutt af412b623a Merge remote-tracking branch 'origin/cef/2272' into cleanup/resourcehandler
Conflicts:
	CefSharp.Core/Cef.h
2015-05-02 05:04:21 -04:00
Bill Tutt de7b6b4240 More IFrame usages, take special note of the chaneges in the EventArgs types. 2015-05-02 01:15:47 -04:00
Bill Tutt afcb11c7c2 Merge remote-tracking branch 'origin/cef/2272' into CefFrameWrapper 2015-05-02 00:03:02 -04:00
Bill Tutt e1e58a5da6 Add IFrame interface as the public face of CefFrameWrapper.
IRequestHandler: Pass IFrame instances instead of isMainFrame.
Support EvaluateJavaScriptAsync from a frame.
IBrowserAdapter, IBrowserAdapterNative: Dependency breaking between CefFrameWrapper and ManagedCefBrowserAdapter.
Add IBrowserAdapter.BrowserAdapter to IWebBrowserInternal and implment for all controls.

This builds, but hasn't been tested yet. Thoughts?
2015-05-02 00:01:31 -04:00
amaitland 88355c3da9 Update WPF example to use Mvvm Light (replace our basic MVVM implementation)
Makes sense to use an established framework for this sort of thing.
2015-04-30 12:21:38 +10:00
amaitland 6abfb8c054 API changed for OnBeforeResourceLoad, OnCertificateError, OnQuotaRequest.
For OnCertificateError, OnQuotaRequest the callback was changed to be a generic one, so no outward facing API change.
With OnBeforeResourceLoad there is now a async callback which isn't used, the only two options that will work are Cancel or Continue
2015-04-28 14:04:35 +10:00
rassilon 56b68f865f Merge remote-tracking branch 'origin/master' into cef/2272 2015-04-27 19:34:23 -04:00