Commit Graph

662 Commits

Author SHA1 Message Date
amaitland 2b4840fc90 Add CssAnimation example for testing purposes 2017-02-01 09:37:08 +10:00
amaitland 1228f992d0 FindReplaceResponseFilter - Remove debugging code that was outputting the count as part of the response
AppendResponseFilter - Improve comment
2017-01-30 09:38:36 +10:00
Smaran Harihar fa41529853 Add IRequestHandler.OnSelectClientCertificate (#1878)
* wip create hooks for onSelectClientCertificate

* create interface and wrapper for callback

* get certificate from CefCertificateList, convert to X509Certificate2, add them to X509CertificateCollection and return this to ClientAdapter

* code review changes. Certificate selection in wrapper requires recreation of certificate in iteration

* added certificate dialog selection to WinFormsRequestHandler. Used VS untabify to remove all the tabs and replaced it with spaces

* missed updating a summary on ISelectClientCertificateCallback

* code review changes
2016-12-13 09:48:15 +10:00
Philip Beber b47731de5e Added DownloadItem .OriginalUrl (#1877)
* Added "OriginalUrl" property to DownloadItem which wraps "GetOriginalUrl" in CEF.

Added a sidebar to the example app which shows the DownloadItems as received by CefSharp.Core/Internals/TypeConversion.h

Added a View menu for hiding/showing the regular sidebar and the new download info sidebar.

* Pull request feedback
2016-12-04 22:26:49 +10:00
amaitland cecc8b14f7 Update RequestHandler.OnResourceRedirect example - redirect google to github 2016-12-01 22:22:04 +10:00
amaitland cce8cd825d Upgrade to 3.2840.1493 (Chromium 54.0.2840.59)
Add IResponse to IRequestHandler::OnResourceRedirect
2016-10-19 08:17:50 +10:00
amaitland 895932d05e Remove EnableInternalPdfViewerOffScreen() as disable-surfaces has been removed from Chromium.
This leaves the original https://bitbucket.org/chromiumembedded/cef/issues/1689 issue as being a problem, for now just disable GPU acceleration

Conversation about disable surfaces is http://magpcss.org/ceforum/viewtopic.php?f=6&t=14520&p=32346#p32345
2016-09-23 09:16:05 +10:00
amaitland 9fbde82ef0 Experimental implementation of IBrowserProcessHandler.OnScheduleMessagePumpWork
NOT READY FOR PRODUCTION USE
2016-09-01 16:51:20 +10:00
amaitland a8ef40fe8a Add command line option to test #1634 2016-08-20 08:24:12 +10:00
Alex Maitland d4feffb554 Feature - Add IBinder (#1749)
* Add basic ModelBinding which was imported from NancyFx framework - more can be stripped out that's unused

* Add IBinder as a param when registering an object for binding
Binding is disabled by default

* Add license and remove unused using statements

* Make bind method virtual to allow for overriding
Make methods protected

* Add very basic collection support - only primitive types supported for now.
Remove unused exceptions

* Support binding a list of sub objects

* Add null check for null params

* Add BindingOptions class - remove binder and CamelCaseJavascriptNames properties - allow for additional options in the future
Breaking change.

* Add support for List<object> binding type
2016-07-20 13:38:24 +10:00
amaitland 63ef6beb5f Refactor OnContextInitialized out as part of IBrowserProcessHandler interface
Add OnScheduleMessagePumpWork for use with integrating into existing message loop - probably better for WinForms integration, will look at providing an example later
2016-07-20 13:08:47 +10:00
amaitland c8f6017fa5 Change TestCallbackFromObject to use new DynamicDictionary helper class 2016-07-06 11:06:00 +10:00
tuxan 6a2ee2cd5b Overload of ConvertFromCef method removed and do some formatting corrections. 2016-07-01 11:00:57 -04:00
tuxan 2f89c530ba Added support to use object parameters with anonymous function callback inside as parameter of bound functions. 2016-06-30 18:17:39 -04:00
hathor 995776d232 This lets you do multiple search-and-replaces (#1725)
Add FindReplaceMultiResponseFilter Example
2016-06-30 08:07:34 +10:00
amaitland 6f6ecd3090 Add TooltipTestUrl to WPF Example menu 2016-06-29 12:05:19 +10:00
amaitland ca2085ef05 Add FolderSchemeHandlerFactory - maps request urls to files on disk within a specified folder.
Resolve #1717
2016-06-22 12:23:50 +10:00
amaitland 04d2a8ede8 Add ResourceHandler.FromFilePath method that takes in a MimeType
Make ResourceHandler.FromFileName obsolete
2016-06-16 15:16:30 +10:00
amaitland ec0a10095c Disable GPU for windows 7 as it appears to still be a problem with #1634 2016-06-16 08:05:21 +10:00
amaitland 0a5bb1f837 Re-enable GPU in OffScreen and WPF examples 2016-05-30 08:09:18 +10:00
amaitland 62292e4211 NPAPI Plugin methods removed from API
cef_runnable.h has been removed
Update IJsDialogHandler.OnJSDialog - acceptLang removed from API
2016-05-30 07:57:48 +10:00
amaitland 3061becb3f IResourceHandler now implements IDisposable - you can cleanup and resources when the handler is disposed 2016-05-26 07:28:19 +10:00
amaitland 397ffb5158 Update AppendResponseFilter to allow for larger chunked files
Change example to append comment to jquery.js file as it's larger
2016-05-25 19:01:20 +10:00
amaitland 9262d731d5 IResponseFilter now implements IDisposable
Call delete in CefResponseFilterAdapter destructor
2016-05-20 08:13:14 +10:00
amaitland 54f7fccdaa Upgrade to .Net 4.5.2
Resolve #1572
2016-05-10 20:28:21 +10:00
amaitland d4513a88b5 Update SetReferrer example
Add example of setting user-agent in OnBeforeResourceLoad
2016-05-04 18:05:47 +10:00
amaitland c9944c981a Split paramArray and missing arg logic out into two if statements. Previously null was being replaced by Type.Missing.
Two seperate if statement branches allows for a method that has options params and a param array

Resolve #1673
2016-04-29 18:10:43 +10:00
amaitland 1e18b55116 Comment out the enable-begin-frame-scheduling command line flag from OSR examples - DevTools wasn't working 2016-04-19 15:06:11 +10:00
amaitland 560fa2b867 Improve ResourceHandler documentation, add a minor simplification and update the FlashResourceHandler example to demo how simple it is to use a ResourceHandler when extending FlashResourceHandler 2016-04-15 16:25:06 +10:00
amaitland e2a690dca9 Change PluginVisitor to set the TaskCompletionSource to an empty list when Visit is never called
Slightly nicer behaviour than timing out
Update the example
2016-04-15 15:44:35 +10:00
amaitland 0833f147e1 Even more complicated example of draggable regions - it works fine until the browser scrolls, for which there is no region change, probably a bug in CEF 2016-04-13 11:42:03 +10:00
amaitland 165cc1f88a Add a more complex example of using a non draggable region within a draggable one
Switched to using System.Drawing.Region for proper region handle
2016-04-13 11:35:40 +10:00
amaitland 4c4eb210f4 Add WPF Draggable Regions Test
Remove old generic DragHandler - maybe someone will write a WinForms specific one?
Remove some unused references from CefSharp.csproj
2016-04-12 16:57:47 +10:00
amaitland c90d67c14d Add enable-logging command line argument example 2016-04-11 07:52:11 +10:00
amaitland 669404f74c Change new paramAray test methods in BindingTest.html to execute immediately (same as all the majority)
Revert changes to NuGet.config
Remove unused using statement from ScriptedMethodsBoundObject
Rename JavascriptMethod.Parameters to just JavascriptMethod.Parameters (it's in the context of the method so naming was redundant)
Pre compute HasParamArray for minor (very minor) performance improvement - relevant when executing method many times in a tight loop
2016-04-05 17:03:33 +10:00
Alex Maitland 7cf5f17565 Merge pull request #1644 from ChrisBardsley/master
Add paramArray support to Javascript Binding
2016-04-05 01:06:54 -05:00
Chris Bardsley d3d6907dac Refactored changes from build#1644 to account for discussed changes. 2016-04-04 21:44:22 -07:00
amaitland c3f3331148 Add InMemorySchemeAndResourceHandlerFactory to demo how easy it is to implement a IResourceHandlerFactory/ISchemeHandlerFactory
Both implementations are included in the single file so it's easy to compare the two, the implementation is almost identical for the method body.
2016-03-29 13:04:06 +10:00
Chris Bardsley b628199ee9 Fix for C# paramArray and refactor on arguments mismatch 2016-03-23 21:17:47 -07:00
amaitland b1b38ac62c Disable GPU in WPF and Offscreen examples until #1634 has been resolved 2016-03-21 06:46:20 +10:00
amaitland 599ad179fb Update OnContextInitialized example to dispose of requestcontext via a using statement 2016-03-19 07:32:47 +10:00
amaitland f18fe9d4ae Add Cef.CurrentlyOnThread method for checking if your on a particular CEF thread
Add Cef.GetGlobalRequestContext, can be used to set preferences and other related features
Update IRequestContext.SetPreference documentation, preferences set via the command line are read only
2016-03-19 07:30:03 +10:00
amaitland 651a288a8f Add example of --allow-running-insecure-content (only valid in 47 and above) 2016-03-06 22:28:27 +10:00
amaitland 12f42331dc Resolves #1592 - Expose all methods of CefResourceHandler
Previously we were passing in the frame, request wrappers which hadn't been used, so just keep things simple and remove the code.
Current users should extend ResourceHandler instead of IResourceHandler and add the override keyword
TODO: Deal with setting bytesRead property - currently using Stream.Length which won't work for every stream type
2016-02-18 16:44:51 +10:00
amaitland 231d6d8143 Allow for FindReplaceResponseFilter dataIn to be null 2016-02-18 16:31:09 +10:00
amaitland 679fad6a89 Add AppendResponseFilter filter implementation
In the examples open custom://cefsharp/assets/js/application.js to see some data appended to a javascript file
2016-02-11 16:33:52 +10:00
amaitland 0288ee353e It's possible for the dataIn stream to be null, allow for it being optional. 2016-02-11 15:45:14 +10:00
amaitland 0962e6c46b Add an EmptyResponseFilterTest example - cannot seem to trigger the response filter just yet 2016-02-11 15:33:14 +10:00
amaitland e2fe457b7e Update copyright year (few other files that needed updates as well, so they're coming along for the ride) 2016-02-11 14:40:47 +10:00
amaitland d84caa8646 Pass in find and replace strings as params
Code cleanup and simplifications - make things a little clearer
Remove dataInSize and dataOutSize - can be obtained from Stream.Length
Simplify writing overflow on second pass
Remove unused code
Should be working now
2016-02-11 14:36:23 +10:00