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
amaitland
f238b2bf50
Add Filter test url to WPF Example
2016-02-11 11:33:44 +10:00
amaitland
d5d31afadb
Progress towards a working version
2016-02-11 11:25:28 +10:00
amaitland
ede3370cfd
Roughly port FindReplaceResponseFilter - compiles, not yet functional
...
https://bitbucket.org/chromiumembedded/cef/src/456ea5a19800a4cc05d0ce7f0c38111a7e73e18b/tests/cefclient/browser/response_filter_test.cc?fileviewer=file-view-default#response_filter_test.cc-31
2016-02-11 11:18:00 +10:00
amaitland
940a55a521
Rename to PassThruResponseFilter
...
Add example html file from https://bitbucket.org/chromiumembedded/cef/raw/456ea5a19800a4cc05d0ce7f0c38111a7e73e18b/tests/cefclient/resources/response_filter.html
2016-02-11 10:47:15 +10:00
amaitland
59edbf9ca5
Move filter into it's own folder
2016-02-11 10:44:29 +10:00
amaitland
8d00a3dd26
Add a rough implementation of IRequestHandler.GetResourceResponseFilter
...
Looks like the basic pass through implementation is working - have yet to append any data
2016-02-11 10:40:11 +10:00
Alex Maitland
69ffd4370b
Merge pull request #1542 from amaitland/cleanup/duplicatecode
...
Cleanup ManagedCefBrowserAdapater + Remove Duplicate Code
2016-02-01 16:16:07 +10:00
amaitland
96e5900558
Add example of how to disable extensions
...
Add example of how to disable internal PDF viewer
2016-01-29 18:15:11 +10:00
amaitland
b388e13ecb
Remove unused using statement
2016-01-18 18:32:53 +10:00
amaitland
072ca4cc97
Add IResourceHandlerFactory and IResourceHandler example - downloads a specific swf file using the .Net WebRequest class and returns the response
2016-01-18 18:32:44 +10:00