Commit Graph

128 Commits

Author SHA1 Message Date
Sylvain Hamel 29e5e61160 Fix: js bindings must be kept by browser, not by process 2014-10-29 08:10:40 -04:00
amaitland 2fdaa35f44 Upgrade to Cef 1750 2014-10-03 18:30:44 +10:00
amaitland 71fd554351 Change TypeUtils to return a basic array rather than a dictionary (seems like code was copied from IsObject code) 2014-09-17 12:29:00 +10:00
amaitland 3e925993fc Add 64bit support for CefSharp.BrowserSubprocess.Core 2014-09-16 21:02:20 +10:00
amaitland 3276c352a2 Consistent variable naming 2014-09-16 16:35:41 +10:00
amaitland d90cf0af3f Continue to implement object cleanup 2014-09-16 16:34:07 +10:00
amaitland c8ba05c688 Remove unused instance variable 2014-09-16 13:21:53 +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 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 047cac5fbf Store reference to JavascriptRootObject and create a new JavascriptRootObjectWrapper every time - in future can dispose of the root wrapper 2014-09-15 16:38:35 +10:00
amaitland c0a6bac36b Remove unused include 2014-09-15 14:36:14 +10:00
amaitland 9db69fa555 Move browser wrapper Dictionary into CefAppUnmanagedWrapper 2014-09-15 12:05:01 +10:00
amaitland e937c33d2d Change from List to Dictionary to simplify code (key on the browser id) 2014-09-15 12:02:58 +10:00
amaitland d84d7689f8 Revert previous change when code to manage cleanup of multiple CefBrowserWrapper classes was removed - it appears multiple can be created when using popups (and potentially other circumstances) 2014-09-15 00:21:22 +10:00
amaitland a424d6775b Rename Value property to JsObject - more meaningful name 2014-09-14 22:50:31 +10:00
amaitland c923286431 Improve cleanup of CefAppUnmanagedWrapper 2014-09-12 16:38:46 +10:00
amaitland ee45819cc5 Remove redundant nullptr check and just call delete 2014-09-12 16:35:56 +10:00
amaitland cd8b1d8100 Add OnContextReleased and reorder methods to group together 2014-09-12 16:27:47 +10:00
amaitland 5e6fb330f4 Fix whitespace 2014-09-12 15:32:22 +10:00
amaitland c706915b22 Fix compiler warnings, no need to override now there is no longer a base class
Calling DoDispose on it's self would have caused recursion
2014-09-12 15:02:43 +10:00
amaitland dc2ce6c998 Add OnBrowserDestroyed Action and invoke when Cef triggers OnBrowserDestroyed 2014-09-12 14:52:01 +10:00
amaitland 058e21fce5 No need to keep list of CefBrowserWrapper's as new RenderProcess is created every time, hence only one browser wrapper 2014-09-12 13:03:25 +10:00
amaitland ee565757a4 Reorder methods - logical grouping (cef methods kept together) 2014-09-12 12:48:10 +10:00
amaitland bd88d4feaa Fix variable naming - was method, should be property 2014-09-12 12:28:40 +10:00
amaitland c5f1034109 Remove CefBrowserBase and Merge code into CefBrowserWrapper - More code simplification 2014-09-12 12:05:20 +10:00
amaitland d8851689d8 Remove CefBrowserUnmanagedWrapper and merge code into CefBrowserWrapper - code simplification 2014-09-12 11:12:25 +10:00
amaitland 8acec46f64 Rename CefSubprocessWrapper.h to CefBrowserWrapper.h 2014-09-12 00:45:29 +10:00
amaitland 460c5f5c08 Remove ManagedCefApp base class and move methods into CefAppWrapper 2014-09-12 00:37:36 +10:00
amaitland 71c2b5748a Remove managed point to CefBrowser - is stored, then later set to nullptr, not used for anything 2014-09-12 00:05:31 +10:00
amaitland e032025019 Fix long data type compiler warnings 2014-09-02 21:28:43 +10:00
amaitland 38d399d321 Add DateTime support to TypeUtils 2014-09-02 13:46:22 +10:00
amaitland 8151136e70 Remove unused code (WaitHandle is no longer required) 2014-09-02 12:03:30 +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 d15c4d746a Pass BrowserProcessResponse through to JavascriptMethodHandler and JavascriptPropertyHandler so errors can be conveyed back to CEF 2014-09-02 11:25: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 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 085c6d5531 Move CefAppUnmanagedWrapper into it's own class (.cpp and .h) 2014-08-29 10:53:50 +10:00
amaitland 85d3b87ed9 Move CefBrowserUnmanagedWrapper into it's own .h file 2014-08-29 10:42:54 +10:00
amaitland 0fd5d0ac03 Comment out debugging code 2014-08-28 22:48:53 +10:00
amaitland a18a64d70a Add basic ReadOnly property support 2014-08-28 22:43:56 +10:00
amaitland 87f874f2c9 Store reference to JsPropertyHandler 2014-08-28 22:36:42 +10:00
amaitland 0105c778a5 Improve comment and variable name 2014-08-28 22:34:02 +10:00
amaitland 21b145ee6d Rename variable to better reflect it's purpose 2014-08-28 22:30:29 +10:00
amaitland fdca1ef7b6 Whitespace fix 2014-08-28 21:01:02 +10:00
amaitland 75f3e48e22 Move propertyHandler calls to JavascriptObjectWrapper 2014-08-28 21:00:55 +10:00
amaitland fc6b68a374 Fix bug - was passing in incorrect v8value 2014-08-28 20:46:10 +10:00