Commit Graph

104 Commits

Author SHA1 Message Date
amaitland 6f2e316cee Improve EvaluateScriptAsync error handling 2014-09-17 13:53:03 +10:00
amaitland 00b6fc683b Pass a delegate to Create the WCF proxy through the layers of JS binding objects 2014-09-16 13:21:04 +10:00
amaitland e74f48a46b When Browser is popup then use the parent browser Id to connect to the WCF endpoint 2014-09-16 12:23:15 +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 0c4ef2099c Move TaskFactory into CefAppWrapper(RenderProcess) so it can be reused rather than recreating for every browser object 2014-09-16 11:42:18 +10:00
amaitland a7c2b8bac8 Revert to previous debugging method as change wasn't working correctly. 2014-09-15 22:08:45 +10:00
amaitland a5dc5ebea2 Another debugging option for render process, can be passed in from user code, so could be handy for 3rd party debugging 2014-09-15 21:44:03 +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 fdb8af9a45 Keep reference to parentBrowserId so can connect to WCF channel, the subsiquent browsers created for the popups still need to reference the Parent Browser Id 2014-09-15 11:38:14 +10:00
amaitland 74ee6637c2 Add some error handling for opening the WCF Proxy 2014-09-15 00:07:00 +10:00
amaitland 903a56ad80 Close ChannelFactory when Browser destroyed 2014-09-12 14:52:54 +10:00
amaitland dc2ce6c998 Add OnBrowserDestroyed Action and invoke when Cef triggers OnBrowserDestroyed 2014-09-12 14:52:01 +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 8da833891c Only display MessageBox for CefRenderProcess (little crude, though stops having two message boxes appear when predominantly interested in the RenderProcess, not the GPU process) 2014-09-11 23:43:26 +10:00
amaitland 9b4c877a50 Remove unused property getter 2014-09-11 23:39:07 +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 4e1a9ece35 Remove debugging code 2014-08-29 12:56:15 +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 5faa2a2e5a Import CefTaskScheduler from @JanEggers TaskPattern branch 2014-08-29 11:57: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 ab21e24211 Create static method for init of NetNamedPipeBinding so can set MaxReceivedMessageSize (to 16MB) 2014-08-29 09:37:13 +10:00
amaitland 0fd5d0ac03 Comment out debugging code 2014-08-28 22:48:53 +10:00
amaitland ce46eb12a6 Split code onto multiple lines for debugging purposes 2014-08-27 14:54:04 +10:00
amaitland 308c9dcff3 Remove commented out code 2014-08-27 14:29:04 +10:00
amaitland 68cf269af0 Move serviceName to variable - makes for easier debugging 2014-08-27 14:25:18 +10:00
amaitland a559fa169a Move Create method to where it's actually used and remove an unused instance variable 2014-08-27 14:24:11 +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 e8f3a5e8cf Merge remote-tracking branch 'remotes/upstream/master' into JsBinding_WIP 2014-07-01 14:08:16 +10:00
amaitland d48bf5fbd9 Add license disclaimer to rest of solution files (hopefully got them all now) 2014-06-25 16:00:28 +10:00
Per Lundberg b60de42153 And again, similar. :) 2014-06-12 02:48:17 +03:00
Per Lundberg de4c95f6e0 Whitespace fix. 2014-06-02 12:21:25 +01:00
Per Lundberg 73f477295c Cleaned up usings a little. 2014-06-02 12:20:10 +01:00
Per Lundberg 7b94e8a4f9 Use FooProcess notation rather than Fooprocess, since it looks slightly better. 2014-06-02 12:15:29 +01:00
JanEggers f8fd0b9556 method calls finally work 2014-05-25 21:04:25 +02:00
JanEggers 731ebf67a9 reversed subprocess communication now Browser is host and renderer is client 2014-05-24 19:43:34 +02:00
JanEggers ef36077f16 added specialized subprocess types and moved render process specific code in that class 2014-05-24 15:34:23 +02:00
JanEggers 5bff9ea37e fixed another warning related to member overloading 2014-05-20 22:02:23 +02:00
JanEggers e72548680e fixed uninteded revert because of tree conflict during merge and fixed App class hierachie so we have only one app instance in the subprocess 2014-05-20 21:57:00 +02:00
JanEggers 0ef76dca05 wire calls from the renderprocess with the objects in the browserprocess 2014-05-10 20:01:35 +02:00
JanEggers ebb910221d wire wcf host with app 2014-05-10 19:12:31 +02:00
JanEggers 363734e0aa next step: metadata can be transported via wcf and is automatically converted to wrapper objects so we have fields to store native stuff 2014-05-10 17:26:57 +02:00
JanEggers d7f8c8961b wired method calls to reach the BrowserProcess 2014-05-08 22:21:06 +02:00
JanEggers a040cba420 implement callbackfunctions 2014-05-08 20:16:18 +02:00
Per Lundberg 81e28fcdd8 More changes to the Subprocess after all my "interesting" refactorings. It now compiles and runs - only tested on VS2012 though, will do a minor change to ensure it works w/ other VS versions in a minute. 2014-04-08 20:42:08 +01:00