Commit Graph

6179 Commits

Author SHA1 Message Date
amaitland a4cdd5b04a Merge branch 'master' of https://github.com/daveaton/UpStream_CefSharp 2015-01-11 13:17:22 +10:00
BinSys 5af020afcc change c++ file copyright symbol (©) from 0xa9(cp1252) to 0xc2 0xa9(cp65001 with bom) ,
now work on non-english system().
2015-01-10 02:40:23 +08:00
BinSys 3f954dfb0b Revert "change c++ file copyright symbol (©) from 0xa9(cp1252) to 0xc2 0xa9(cp65001 without bom) ,"
This reverts commit defd040dcc.
2015-01-10 02:22:19 +08:00
amaitland c0cdae9ee3 Improve LoadHtml comment, include a valid example of the url param 2015-01-09 20:59:31 +10:00
amaitland ff678b5ae2 Remove duplicate JavascriptObject analysis code - add additional params 2015-01-09 13:33:24 +10:00
amaitland 8d3ae5e663 Move JavascriptObject to V8Value mapping from TypeUtils into JavascriptMethodHandler - may be possible to add support for function calls 2015-01-09 13:28:55 +10:00
amaitland e68b11a5db Add simple test case of bound.getSubObject().simpleProperty to BindingTest.html 2015-01-09 12:35:03 +10:00
amaitland 6f5730e5c8 Rename Analyse method to AnalyseObjectForBinding
Add additional comment about it's functionality
2015-01-09 12:26:27 +10:00
amaitland 94eff90411 Revert JavascriptKnownTypesRegistra changes - go back to using just knowntype attribute as it's no longer required. 2015-01-09 12:22:10 +10:00
amaitland 224cbcda9f First step towards getting JSB functions to return complex types - uses JavascriptOjbect/JavascriptProperty classes to represent the metadata transferred over WCF
(Sending the complex type it's self is difficult as the type is not known by both client and server)
2015-01-09 12:18:56 +10:00
amaitland 901a70ac00 Automatically register function return types with WCF (only solves have the equation as the subprocess has no idea during deserialization) 2015-01-08 15:43:56 +10:00
amaitland 44d00d79a0 Cleanup some of the Cookie code in Cef.h - remove redundant casts, simplify if statements 2015-01-08 13:34:32 +10:00
amaitland ff634e299b Replace IWebPluginInfo with WebPluginInfo
Instead of wrapping the Cef object, just read it's properties through a helper method
2015-01-08 13:00:49 +10:00
amaitland 57dad250f7 Add TypeConversion class as a common place for simple static methods used to convert to/from cef objects 2015-01-08 11:22:54 +10:00
amaitland 6ef03d4cc5 Simplify CefWebPluginInfoWrapper - no need to keep reference, simply read values into properties (Reduces risk of memory leaks if user keeps reference to IWebPluginInfo for some reason) 2015-01-08 10:44:11 +10:00
amaitland c3aff2f803 Resharper inspired cleanup - remove redundant using 2015-01-08 10:39:40 +10:00
Bodekaer 03ed74c021 Added build.bat script for slightly more convenient NuGet compiling 2015-01-07 16:13:49 +01:00
Bodekaer 3407a91d1d Added drag-drop support, to allow dragging files, text and links into the browser (WPF-only currently) 2015-01-07 16:10:56 +01:00
BinSys defd040dcc change c++ file copyright symbol (©) from 0xa9(cp1252) to 0xc2 0xa9(cp65001 without bom) ,
now work on non-english system().
2015-01-06 22:23:30 +08:00
daveaton 82affbebb6 Changed Small case and spaces changes 2015-01-06 05:12:19 -06:00
daveaton 3202167a61 Revert "Small case and space changes"
This reverts commit 74a2f1a13a.
2015-01-06 05:08:19 -06:00
amaitland be5d3db546 Add ComplexParamObject method to BoundObject - test for passing a complex object from javascript (which is converted into a dictionary)
Example usage
bound.complexParamObject({ 'color': 'purple' });
2015-01-06 20:47:30 +10:00
amaitland fc4cde6e78 Improve JavascriptMethodHandler error handling - return clr exception to Cef 2015-01-06 20:44:19 +10:00
amaitland 0a3ef1d0e2 Add service ServiceKnownTypes for object[] and Dictionary<string, object> so that basic arrays can be passed two and from functions 2015-01-06 20:42:52 +10:00
daveaton 74a2f1a13a Small case and space changes 2015-01-06 04:39:58 -06:00
Alex Maitland 8a0ca202d9 Merge pull request #707 from amaitland/improvements/2171
2171 Cleanup/Improvements
2015-01-06 17:04:39 +10:00
amaitland 7aa1c262b1 Update two methods in the WPF and WinForms examples to use async/await 2015-01-06 16:50:32 +10:00
amaitland fc65192e42 Upgrade example projects to .Net 4.5 (as discussed in #381) 2015-01-06 16:46:09 +10:00
amaitland 742ef8ee32 Add Alt->F shortcut key to WinForms example 2015-01-06 16:21:26 +10:00
amaitland ba7dcdc1a6 Merge remote-tracking branch 'remotes/upstream/master' into improvements/2171 2015-01-06 16:14:21 +10:00
amaitland 5ee13cc54f Make MainBitmapInfo and PopupBitmapInfo private
Make DisposeBitmapInfo private
2015-01-06 16:10:38 +10:00
amaitland 82d202e831 Merge SetBuffer method into OnPaint 2015-01-06 16:07:16 +10:00
amaitland 18837ae5e8 Move variable to inner scope
Remove TODO comment
2015-01-06 12:06:23 +10:00
amaitland 1ba06eddad Remove redundant stdToString and replace with StringUtils call
Minor code cleanup to TypeUtils
2015-01-06 12:04:49 +10:00
amaitland 251ae9a8ec IntPtr is a struct so pass by value rather than reference 2014-12-30 16:29:07 +10:00
amaitland 584baa2170 Remove User32.cs and implement Focused methods in NativeMethodWrapper 2014-12-30 16:23:36 +10:00
amaitland 592149ea21 Simplified OffScreen InvokeRenderAsync again - create bitmap using the BackBufferHandle directly rather than copying the memory 2014-12-30 12:46:15 +10:00
amaitland 22f70bbb9e Copy the buffer directly into the bitmap rather than converting to InteropBitmap then back again
Bitmap property was unused, so change to IsCleared property for now
2014-12-30 12:37:00 +10:00
amaitland 99eceb77d3 Slight code simplification in OffScreen.Example 2014-12-30 11:04:00 +10:00
amaitland 8b92441fec Remove the second lock in InvokeRenderAsync - now using the same lock object for GdiBitmap 2014-12-30 10:56:51 +10:00
amaitland 2684725c11 Expand OffScreen Example to include an example of capturing the first offscreen image (currently the first image is blank, though I'm thinking that's probably expected)
This allows for testing of the updated ScreenshotAsync method
2014-12-30 10:44:31 +10:00
amaitland 16905e02a7 Simplify ScreenshotAsync, now just uses a TaskCompletionSource 2014-12-30 10:27:07 +10:00
amaitland 794114c53e Fix comment formatting
Remove `this.` - no need
2014-12-30 09:59:48 +10:00
amaitland 7daff28e68 Switch back to tabbed winforms example being the default (maybe one day create a method to switch between the two) 2014-12-30 09:17:57 +10:00
amaitland f1ddf6f61f Remove TryGetCefHost method - similar cleanup to previous commit, brings code more inline with cefclient example
(It would appear that having an instance of the browser then there will always to be a host)
2014-12-30 09:16:28 +10:00
amaitland 3cf7b0159a Remove TryGetCefMainFrame method - now just using calls directly to GetMainFrame() (brings code more inline with cefclient example) 2014-12-30 09:10:56 +10:00
amaitland 995974d3df Rename _renderClientAdapter to _clientAdapter 2014-12-30 08:55:27 +10:00
amaitland f9821ae549 Add offScreenRendering param to ManagedCefBrowserAdapter and create the relevant Client Adapter as required. 2014-12-30 08:53:16 +10:00
amaitland b70a309d35 Move methods from RenderClientAdapter to ClientAdapter
RenderClientAdapter should really only contains methods that relate to `OSR` (not relevant to the WinForms implementation)
2014-12-30 08:48:07 +10:00
amaitland 8b8d97e350 Pass in WPF Window handle when creating offscreeen browser 2014-12-30 08:42:29 +10:00