Commit Graph

2231 Commits

Author SHA1 Message Date
Peter Rekdal Sunde 65b74684dd nuked 2014-10-07 21:20:55 +02:00
jankurianski a339cbac4a x86 release build now generates CefSharp.XML 2014-10-07 18:06:49 +11:00
amaitland 72517f17f6 Merge remote-tracking branch 'remotes/upstream/master' into JsBinding_WIP 2014-10-07 11:07:19 +10:00
jornh 311cb9c9dd Generate XML documentation for x64/Release builds 2014-10-05 09:38:56 +02:00
amaitland 6022c22fe6 Merge remote-tracking branch 'remotes/upstream/master' into JsBinding_WIP 2014-10-03 18:31:59 +10:00
amaitland 79ed1f9dfb Remove DevToolsUrl property (no longer used in 1750) 2014-10-03 18:24:13 +10:00
amaitland 6e767c02fe Merge remote-tracking branch 'remotes/upstream/master' into JsBinding_WIP 2014-10-03 18:22:43 +10:00
amaitland a58b6086c7 First 1750 feature - ShowDevTools/CloseDevTools 2014-10-03 16:41:17 +10:00
jornh 21e9dfa801 Merge pull request #471 from amaitland/fix/wpf-loadurl
Fix/Implement WPF Load(url) Method
2014-10-03 07:08:04 +02:00
jornh 12f9c297e8 Merge pull request #492 from amaitland/upgrade/1750
Upgrade to Cef 1750
2014-10-03 06:50:55 +02:00
amaitland 70e776e94d Split BeginEvaluateScriptAsync call into two lines, makes more readable and also meets Max columns of 132 style 2014-10-01 22:48:07 +10:00
Alex Maitland 9c6a1dcb15 Merge pull request #491 from bjarteskogoy/JsBinding_WIP
Use Begin/End pattern to not break .Net 4 compatibility.
2014-10-01 22:46:19 +10:00
amaitland c02c63cd1f Merge remote-tracking branch 'remotes/upstream/master' into JsBinding_WIP 2014-10-01 14:54:28 +10:00
amaitland 88072a477d Remove Address getter from IWebBrowser
Make Address private on ChromiumWebBrowser

Still allows for full data binding under MVVM as users will directly access the control in xaml, from a view model they're likely to bind through a Property that is data bound to address
and everywhere there's a reference to IWebBrowser then Load(string url) can be called in code
2014-09-30 15:43:55 +10:00
amaitland a80efc0a74 Update AssemblyInfo version from 31 to 33 2014-09-26 15:42:12 +10:00
Bjarte Skogøy 17b56e694a brackets and removing commented code 2014-09-25 13:49:39 +02:00
Bjarte Skogøy 717c0eedbf Use Begin/End pattern to not break .Net 4 compatibility. 2014-09-24 14:13:09 +02:00
Bodekaer 99040f9a1a Fixed #482 WCF timeout issue 2014-09-19 09:59:40 +10:00
amaitland 56ccc1086f Add [KnownType(typeof(Dictionary<string,object>))] to allow for Object mapping to be passed over WCF channel 2014-09-17 12:40:09 +10:00
amaitland 6b246338a9 Add KnownType to JavascriptResponse allowing for object[] to be returned (was previously causing the WCF channel to enter a faulted state) 2014-09-17 12:30:01 +10:00
amaitland d8b9afebf2 Add DevToolsUrl to IWebBrowser 2014-09-16 20:48:14 +10:00
amaitland 1c41c051c4 Keep track of all open browsers in Render process for JS execution and later disposal 2014-09-16 12:16:31 +10:00
amaitland be73858233 Include BrowserId in EvaluateScriptAsync WCF call - needed for when there are multiple browser instances created in the one render process 2014-09-16 11:53:07 +10:00
amaitland 286b590960 Rename EvaluateScript to EvaluateScriptAsync for consistency 2014-09-15 12:15:48 +10:00
amaitland 6505f43b15 EvaluateScript now accepts a nullable timespan and only executes a timeout if a value is specified 2014-09-15 12:11:31 +10:00
amaitland 78ddea334a Only perform recursive Analysis if property is a Complex Type 2014-09-14 22:52:31 +10:00
amaitland a424d6775b Rename Value property to JsObject - more meaningful name 2014-09-14 22:50:31 +10:00
amaitland a17b49596e Add Connect() method to IBrowserProcess so it's clearly understood when a new render process is created
Update OperationContext every time Connect() is called
2014-09-12 14:47:08 +10:00
amaitland c5f1034109 Remove CefBrowserBase and Merge code into CefBrowserWrapper - More code simplification 2014-09-12 12:05:20 +10:00
amaitland 460c5f5c08 Remove ManagedCefApp base class and move methods into CefAppWrapper 2014-09-12 00:37:36 +10:00
amaitland 8b85497cd8 Merge branch 'JsBinding_WIP' into JsBinding/Wip2 2014-09-11 22:58:31 +10:00
amaitland 0cf75435eb Cef appears to create a new SubProcess for every web page viewed, so as a short term fix check if TaskCompletionSource has already been completed 2014-09-11 22:55:19 +10:00
amaitland 9eac3dbb27 Remove redundant CefSettingsBase class - merged functionality into CefSettings.h 2014-09-11 17:37:41 +10:00
amaitland 2c159ee1b6 Changed frameId to long as frame->GetIdentifier() returns long 2014-09-02 21:28:43 +10:00
amaitland 2c4d179c5d Change ExecuteScriptAsync to return JavascriptResponse so error messages and result can be returned 2014-09-02 12:02:32 +10:00
amaitland e33c7552dc Return false when an exception is thrown 2014-09-02 11:27:39 +10:00
amaitland f6d6b0fe4e Create BrowserProcessResponse to represent the response from the WCF calls 2014-09-02 11:05:31 +10:00
amaitland 3e5a3ae0cb Catch and return Exception for TryCallMethod, TryGetProperty, TrySetProperty methods, passed back to the browsersubprocess though currently not displayed in the UI 2014-09-02 10:57:47 +10:00
amaitland ac28397797 Change IBrowserProcess methods to return bool with out param for result to indicate error 2014-09-02 10:45:14 +10:00
amaitland 779f29fe1b Tinkering with WCF and service callbacks
Add TaskCompletionSource so that script task will execute after a reference to the OperationContext has been obtained (Can then call GetCallbackChannel)
2014-09-01 15:29:22 +10:00
amaitland f40c1d2f9f Fix bug where JavascriptName wasn't being set for Complex Property types
Added example called SubBoundObject can be tested from the WPF example using code like "bound.subObject.simpleProperty"
2014-08-29 16:50:16 +10:00
amaitland 4a3f459956 Add Task Timeout and change default timeout value to 60 seconds 2014-08-29 12:55:22 +10:00
amaitland 0b4d80a460 Add License disclaimer 2014-08-29 12:39:53 +10:00
amaitland b714cf759e Change timeout to timespan 2014-08-29 12:37:33 +10:00
amaitland ca4cd6b9a5 Finish importing #289, script is now executed as a task using CefTaskScheduler 2014-08-29 12:32:52 +10:00
amaitland e9fdeceb63 Change IRenderProcess to return Task<object> - moving towards having proper WCF async 2014-08-29 11:15:54 +10:00
amaitland ef5ef1a704 Remove unused BoundObjects dictionary 2014-08-29 10:09:02 +10:00
amaitland 0ed7555ba0 Change ExecuteScript to ExecuteScriptAsync and return a Task, changed IWebBrowser interface and simply wrapped the backend call.
This at least gets the API inline with what I'd expect in the future, still need to change WCF to use Async, this is a start.
Ideally would like to port @JanEggers PR #289 and have a Cef driven TaskScheduler
2014-08-29 10:00:41 +10:00
amaitland ab21e24211 Create static method for init of NetNamedPipeBinding so can set MaxReceivedMessageSize (to 16MB) 2014-08-29 09:37:13 +10:00
amaitland 777f2fe746 Remove unused class 2014-08-28 23:26:12 +10:00