Commit Graph

211 Commits

Author SHA1 Message Date
Bodekaer 99040f9a1a Fixed #482 WCF timeout issue 2014-09-19 09:59:40 +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 460c5f5c08 Remove ManagedCefApp base class and move methods into CefAppWrapper 2014-09-12 00:37:36 +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 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 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 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 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
amaitland 05db513251 Amend IsComplexType check to include string as special case 2014-07-16 17:14:36 +10:00
amaitland 962fc5ec09 Return top level bound object 2014-07-16 16:33:19 +10:00
amaitland 8db02a1445 Merge branch 'JsBinding_WIP' into JsBinding/Wip2 2014-07-16 16:13:25 +10:00
amaitland f55060a947 Get property get method calling - still problems that need to be resolved 2014-07-16 15:58:15 +10:00
amaitland 0c535b1423 Now invokes TryGetProperty as expected, still got some problems and this doesn't allow for a tree hierarchy, so it's rather limited at the moment. 2014-07-11 17:00:17 +10:00
amaitland d82232241f Remove Description classes - simplify code 2014-07-11 16:30:28 +10:00
amaitland f55d218798 Remove Handlers from IWebBrowserInternal (minor issue created when merging in master) 2014-07-11 12:45:06 +10:00
amaitland e8f3a5e8cf Merge remote-tracking branch 'remotes/upstream/master' into JsBinding_WIP 2014-07-01 14:08:16 +10:00
amaitland 68edca8d35 Add license disclaimer to all files in CefSharp project 2014-06-25 16:00:08 +10:00