Commit Graph

835 Commits

Author SHA1 Message Date
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
amaitland a18a64d70a Add basic ReadOnly property support 2014-08-28 22:43:56 +10:00
amaitland 44ad743355 For consistency always match on JavascriptName 2014-08-28 20:42:49 +10:00
amaitland da3412969d Revery name change for TryGetMethod - seems slightly inconsistent so will need to be fixed. 2014-08-28 19:40:01 +10:00
amaitland 2aa87c2034 Change to use JavascriptName instead of Managed name 2014-08-28 19:35:04 +10:00
amaitland 55119d501a Init list in JavascriptRootObject 2014-08-28 18:29:36 +10:00
amaitland 0130fa427d Make wrapper objects contain references to the Properties/Methods they represent 2014-08-28 15:48:16 +10:00
amaitland 5caa457210 Start of restructure of JavascriptObject hierarchy 2014-08-28 14:47:11 +10:00
amaitland 1b1f40c99f Separate Methods and Properties into two distinct types (stored differently) 2014-08-28 13:45:23 +10:00
amaitland 0a7e264914 Create a basic RootMemberWrapper wrapper - still needs work 2014-08-28 13:28:52 +10:00
amaitland 68494b91b4 Move object analysis into JavascriptObjectRepository - start of converting JavascriptObject to more like a DTO 2014-08-28 13:01:45 +10:00
amaitland 901a6358cb Change BrowserProcessService to reference JavascriptObjectRepository directly - simplifies code
Also had to fix up int to long conversion as Id must have changed types at some point
2014-08-28 12:53:36 +10:00
amaitland 6ddd2d07f0 Fix whitespace 2014-08-28 12:11:59 +10:00
amaitland a8435f3e57 Remove unused JavascriptObjectRepository Clone method 2014-08-27 15:01:07 +10:00
amaitland e10f79cca2 Merge remote-tracking branch 'remotes/upstream/JsBinding_WIP' into JsBinding/Wip2 2014-08-27 14:21:04 +10:00
amaitland 5672ffc166 Fix mistake in previous master merge where no longer files were re-added to project file 2014-08-27 10:38:42 +10:00
amaitland 024620cd78 Merge remote-tracking branch 'remotes/upstream/master' into JsBinding_WIP 2014-08-21 20:17:47 +10:00
Adrian Phinney d5d3077735 Implemented OnStatusMessage and event for WPF and WinForms. 2014-08-12 08:57:06 -04:00