429 Commits

Author SHA1 Message Date
amaitland 16df485ffe 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-05-03 20:09:02 +10:00
amaitland 63ff0168a0 Comment out the enable-begin-frame-scheduling command line flag from OSR examples - DevTools wasn't working 2016-04-19 15:05:33 +10:00
amaitland 8ada754c01 Add enable-logging command line argument example 2016-04-11 08:00:41 +10:00
amaitland 8b5d0df37b 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-11 08:00:41 +10:00
Chris Bardsley a078eaeb39 Refactored changes from build#1644 to account for discussed changes. 2016-04-11 08:00:40 +10:00
Chris Bardsley f08e05a98d Fix for C# paramArray and refactor on arguments mismatch 2016-04-11 08:00:28 +10: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
amaitland a38b0d065b Tidy up the SchemeTest.html example a little more - still ajax posts requests are broken 2016-01-11 15:27:02 +10:00
amaitland bae3c28e92 Update copyright to 2016 2016-01-11 14:11:30 +10:00
amaitland 009fa9b7de Fix JavaScript error in SchemeTest.html - wasn't showing the output correctly 2016-01-11 13:22:37 +10:00
Alex Maitland c57d69b6be Merge pull request #1531 from rlmcneary2/rename-enable-focus
Rename EnableFocusedNodeChanged to FocusedNodeChangedEnabled
2016-01-06 11:17:53 +10:00
Rich McNeary a27a097df6 Change from EnableFocusedNodeChanged to FocusedNodeChangedEnabled to match the existing WindowlessRenderingEnabled setting property. 2016-01-05 07:30:23 -05:00
amaitland af05e56c12 Reformat inline js (use @ notation so much of the string encapsulation can be removed)
Make ScriptedMethods class static and convert the methods into extension methods (really just for the hell of it)
Make some of the comments a little less verbose in terms of number of lines
Some Resharper inspired simplifications
Other code reformatting to make consistent with other parts of the project (switch case statements should have braces, ContinueWith blocks reformatted to match others)
Untabify ScriptedMethodsTest.html
Remove unused usings from ScriptedMethods
Add a few comments about camelCaseJavascriptNames
2015-12-30 09:57:34 +10:00
amaitland 3008241de9 Merge branch 'example-script' of https://github.com/rlmcneary2/CefSharp 2015-12-30 09:24:43 +10:00
amaitland 6abfe427b1 Add demo that loads the pepper flash plugin that comes with Google Chrome 2015-12-29 11:07:04 +10:00
Rich McNeary f1197acc78 Add menu to demonstrate javascript evaluation / execution. 2015-12-28 14:29:25 -05:00
Rich McNeary a168cadbad Add javascript syntax highlighting. Include demo page. 2015-12-28 14:28:15 -05:00
Rich McNeary 8e548d9c31 Add javascript syntax highlighting. New page to evaluate / execute js code. 2015-12-28 14:27:02 -05:00
Rich McNeary 5691669df3 Initial script examples. 2015-12-14 14:54:04 -05:00
amaitland c18f951a97 Move OnContextCreated from IRequestHandler to IRenderProcessMessageHandler
Manually resolve some merge conflicts
2015-12-09 11:32:24 +10:00
amaitland af02212217 Merge branch 'feature/oncontextcreated' of https://github.com/amaitland/CefSharp 2015-12-09 11:26:07 +10:00
amaitland d33c41ec5d Remove unused include
No need to wrap bool in gcroot
Move command line parsing into c# land - can be reused in a few places.
Reduce code duplication in OnProcessMessageReceived - kOnFocusedNodeChanged handler
Minor changes for code consistency/formatting
2015-12-09 11:23:06 +10:00
Rich McNeary 5784444f43 Merge remote-tracking branch 'refs/remotes/cefsharp/master' into focus-changed-1256
# Conflicts:
#	CefSharp/IRequestHandler.cs
2015-12-08 09:36:44 -05:00
Rich McNeary 7d4e074ef4 Move OnFocusedNodeChanged into new IRenderProcessMessageHandler. 2015-12-08 09:32:54 -05:00
Rich McNeary 443804084e Changed to specifically request FocusNodeChanged messages. 2015-12-08 09:04:22 -05:00
amaitland 7782490513 Add IRequestHandler.OnResourceLoadComplete
https://bitbucket.org/chromiumembedded/cef/commits/ced449a0efbb39e7ff36af844a4d067935dc324b
2015-12-08 10:46:27 +10:00
Rich McNeary 1fb54241f7 Add the OptionalMessages property to CefSettings. 2015-12-07 16:27:17 -05:00
Rich McNeary ae49a5385b Fix: tabs to spaces, if and for braces, use frame ID. 2015-12-07 09:48:57 -05:00
Rich McNeary 1ecf2d57b0 Initial implementation complete.
Add support for when an element node in the DOM gets focus. Also invoked
when focus passes from an element node to an non-element node or
nothing.
2015-12-04 16:01:26 -05:00
Rich McNeary 34f7554023 Added initial implementation to IRequestHandler. 2015-12-03 16:08:34 -05:00