Commit Graph

  • 003a857412 Simplify if statement amaitland 2014-09-15 12:12:34 +10:00
  • 6505f43b15 EvaluateScript now accepts a nullable timespan and only executes a timeout if a value is specified amaitland 2014-09-15 12:11:31 +10:00
  • 9db69fa555 Move browser wrapper Dictionary into CefAppUnmanagedWrapper amaitland 2014-09-15 12:05:01 +10:00
  • e937c33d2d Change from List to Dictionary to simplify code (key on the browser id) amaitland 2014-09-15 12:02:58 +10:00
  • 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 amaitland 2014-09-15 11:38:14 +10:00
  • 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) amaitland 2014-09-15 00:21:22 +10:00
  • 74ee6637c2 Add some error handling for opening the WCF Proxy amaitland 2014-09-15 00:07:00 +10:00
  • 78ddea334a Only perform recursive Analysis if property is a Complex Type amaitland 2014-09-14 22:52:31 +10:00
  • a424d6775b Rename Value property to JsObject - more meaningful name amaitland 2014-09-14 22:50:31 +10:00
  • c923286431 Improve cleanup of CefAppUnmanagedWrapper amaitland 2014-09-12 16:38:46 +10:00
  • ee45819cc5 Remove redundant nullptr check and just call delete amaitland 2014-09-12 16:35:56 +10:00
  • cd8b1d8100 Add OnContextReleased and reorder methods to group together amaitland 2014-09-12 16:27:47 +10:00
  • 5e6fb330f4 Fix whitespace amaitland 2014-09-12 15:32:22 +10:00
  • 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 amaitland 2014-09-12 15:02:43 +10:00
  • 903a56ad80 Close ChannelFactory when Browser destroyed amaitland 2014-09-12 14:52:54 +10:00
  • dc2ce6c998 Add OnBrowserDestroyed Action and invoke when Cef triggers OnBrowserDestroyed amaitland 2014-09-12 14:52:01 +10:00
  • 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 amaitland 2014-09-12 14:47:08 +10:00
  • 058e21fce5 No need to keep list of CefBrowserWrapper's as new RenderProcess is created every time, hence only one browser wrapper amaitland 2014-09-12 13:03:25 +10:00
  • ee565757a4 Reorder methods - logical grouping (cef methods kept together) amaitland 2014-09-12 12:48:10 +10:00
  • 605f237998 Remove CefRenderProcessHandler, not relevant for CefClient (in Cef3) amaitland 2014-09-12 12:36:11 +10:00
  • bd88d4feaa Fix variable naming - was method, should be property amaitland 2014-09-12 12:28:40 +10:00
  • c5f1034109 Remove CefBrowserBase and Merge code into CefBrowserWrapper - More code simplification amaitland 2014-09-12 12:05:20 +10:00
  • d8851689d8 Remove CefBrowserUnmanagedWrapper and merge code into CefBrowserWrapper - code simplification amaitland 2014-09-12 11:12:25 +10:00
  • 8acec46f64 Rename CefSubprocessWrapper.h to CefBrowserWrapper.h amaitland 2014-09-12 00:40:33 +10:00
  • 460c5f5c08 Remove ManagedCefApp base class and move methods into CefAppWrapper amaitland 2014-09-12 00:37:36 +10:00
  • 71c2b5748a Remove managed point to CefBrowser - is stored, then later set to nullptr, not used for anything amaitland 2014-09-12 00:05:31 +10:00
  • 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) amaitland 2014-09-11 23:43:26 +10:00
  • 9b4c877a50 Remove unused property getter amaitland 2014-09-11 23:39:07 +10:00
  • 8b85497cd8 Merge branch 'JsBinding_WIP' into JsBinding/Wip2 amaitland 2014-09-11 22:58:31 +10:00
  • 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 amaitland 2014-09-11 22:55:19 +10:00
  • 8f093dc95d Register sample JS BoundObject after Handle is created (Handle creates managedCefBrowserAdapter) amaitland 2014-09-11 17:45:47 +10:00
  • bdbb8c3f45 Register sample JS BoundObject after Handle is created (Handle creates managedCefBrowserAdapter) amaitland 2014-09-11 17:45:47 +10:00
  • 9eac3dbb27 Remove redundant CefSettingsBase class - merged functionality into CefSettings.h amaitland 2014-09-11 17:37:41 +10:00
  • 4e2973b2a1 Extract Loading of Url from OnAddressChanged and put in Load(url) method so can be called directly if required. amaitland 2014-09-11 16:33:51 +10:00
  • 057d7f813d OnAddressChanged now loads "newValue", allows for more consistent overriding. amaitland 2014-06-25 12:11:08 +10:00
  • 631b8956ca Merge remote-tracking branch 'remotes/upstream/master' into JsBinding/Wip2 amaitland 2014-09-11 15:58:10 +10:00
  • fe6b88d055 Merge remote-tracking branch 'remotes/upstream/master' into JsBinding_WIP amaitland 2014-09-11 15:55:58 +10:00
  • 60f8d3ff3a Merge pull request #469 from amaitland/fix/dipose-managedcef-null Alex Maitland 2014-09-11 15:32:20 +10:00
  • ecafbe9ef3 Call RemoveSourceHook before dispose of managedCefBrowserAdapter amaitland 2014-09-11 15:27:10 +10:00
  • b0bc9573f5 Merge remote-tracking branch 'remotes/upstream/master' into enhancement/minor-api-changes amaitland 2014-09-11 14:22:55 +10:00
  • 10c939e004 Merge branch 'JsBinding/Wip2' into JsBinding_WIP amaitland 2014-09-11 14:09:09 +10:00
  • efc4b79552 Merge remote-tracking branch 'remotes/upstream/master' into JsBinding/Wip2 amaitland 2014-09-11 14:04:24 +10:00
  • 6fef20aba7 Merge remote-tracking branch 'remotes/upstream/master' into JsBinding_WIP amaitland 2014-09-11 13:46:48 +10:00
  • 7ee3e85d86 Merge pull request #465 from amaitland/bug-fix/dispatcher-null-pointer Alex Maitland 2014-09-11 13:19:09 +10:00
  • 318c00b2be Remove call to Application.Current.Dispatcher.CheckAccess() - seems there's a null point happening on a rare instance when Application.Current.Dispatcher is null Rely on parent calling code to execute on the correct thread (which it was already executing on the UI Thread) amaitland 2014-09-08 18:21:07 +10:00
  • 34f27d60e7 Fix compiler warning (amend xml comment) amaitland 2014-08-29 20:41:31 +10:00
  • e032025019 Fix long data type compiler warnings amaitland 2014-08-29 20:41:16 +10:00
  • 2c159ee1b6 Changed frameId to long as frame->GetIdentifier() returns long amaitland 2014-08-29 20:27:05 +10:00
  • 38d399d321 Add DateTime support to TypeUtils amaitland 2014-09-02 13:46:22 +10:00
  • 08d557ca46 Fix whitespace amaitland 2014-09-02 12:04:39 +10:00
  • 8151136e70 Remove unused code (WaitHandle is no longer required) amaitland 2014-09-02 12:03:30 +10:00
  • 2c4d179c5d Change ExecuteScriptAsync to return JavascriptResponse so error messages and result can be returned amaitland 2014-09-02 12:02:32 +10:00
  • e33c7552dc Return false when an exception is thrown amaitland 2014-09-02 11:27:39 +10:00
  • d15c4d746a Pass BrowserProcessResponse through to JavascriptMethodHandler and JavascriptPropertyHandler so errors can be conveyed back to CEF amaitland 2014-09-02 11:25:39 +10:00
  • f6d6b0fe4e Create BrowserProcessResponse to represent the response from the WCF calls amaitland 2014-09-02 11:05:31 +10:00
  • 3e5a3ae0cb Catch and return Exception for TryCallMethod, TryGetProperty, TrySetProperty methods, passed back to the browsersubprocess though currently not displayed in the UI amaitland 2014-09-02 10:57:47 +10:00
  • ac28397797 Change IBrowserProcess methods to return bool with out param for result to indicate error amaitland 2014-09-02 10:45:14 +10:00
  • 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) amaitland 2014-09-01 15:29:22 +10:00
  • df5cecb1d0 Expand BindingTest to output sub properties and functions of a complex property (isn't fully recursive) amaitland 2014-08-29 19:13:13 +10:00
  • 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" amaitland 2014-08-29 16:50:16 +10:00
  • 4e1a9ece35 Remove debugging code amaitland 2014-08-29 12:56:15 +10:00
  • 4a3f459956 Add Task Timeout and change default timeout value to 60 seconds amaitland 2014-08-29 12:55:22 +10:00
  • 0b4d80a460 Add License disclaimer amaitland 2014-08-29 12:39:53 +10:00
  • b714cf759e Change timeout to timespan amaitland 2014-08-29 12:37:33 +10:00
  • ca4cd6b9a5 Finish importing #289, script is now executed as a task using CefTaskScheduler amaitland 2014-08-29 12:32:52 +10:00
  • 5faa2a2e5a Import CefTaskScheduler from @JanEggers TaskPattern branch amaitland 2014-08-29 11:57:33 +10:00
  • e9fdeceb63 Change IRenderProcess to return Task<object> - moving towards having proper WCF async amaitland 2014-08-29 11:15:54 +10:00
  • 085c6d5531 Move CefAppUnmanagedWrapper into it's own class (.cpp and .h) amaitland 2014-08-29 10:53:50 +10:00
  • 85d3b87ed9 Move CefBrowserUnmanagedWrapper into it's own .h file amaitland 2014-08-29 10:42:54 +10:00
  • ef5ef1a704 Remove unused BoundObjects dictionary amaitland 2014-08-29 10:04:24 +10:00
  • 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 amaitland 2014-08-29 10:00:41 +10:00
  • ab21e24211 Create static method for init of NetNamedPipeBinding so can set MaxReceivedMessageSize (to 16MB) amaitland 2014-08-29 09:36:53 +10:00
  • 777f2fe746 Remove unused class amaitland 2014-08-28 23:26:12 +10:00
  • 0fd5d0ac03 Comment out debugging code amaitland 2014-08-28 22:48:53 +10:00
  • a18a64d70a Add basic ReadOnly property support amaitland 2014-08-28 22:43:56 +10:00
  • 87f874f2c9 Store reference to JsPropertyHandler amaitland 2014-08-28 22:36:42 +10:00
  • 0105c778a5 Improve comment and variable name amaitland 2014-08-28 22:34:02 +10:00
  • 21b145ee6d Rename variable to better reflect it's purpose amaitland 2014-08-28 22:30:29 +10:00
  • fdca1ef7b6 Whitespace fix amaitland 2014-08-28 21:01:02 +10:00
  • 75f3e48e22 Move propertyHandler calls to JavascriptObjectWrapper amaitland 2014-08-28 21:00:55 +10:00
  • fc6b68a374 Fix bug - was passing in incorrect v8value amaitland 2014-08-28 20:46:10 +10:00
  • 44ad743355 For consistency always match on JavascriptName amaitland 2014-08-28 20:42:49 +10:00
  • cdd8e661ff Change to javascript case amaitland 2014-08-28 20:40:21 +10:00
  • 252c561347 Move bind code from header to cpp file amaitland 2014-08-28 20:38:45 +10:00
  • 0ba4f95194 Move Bind code from header to cpp file amaitland 2014-08-28 20:37:57 +10:00
  • 9686584a84 Get complex object support code to compile! amaitland 2014-08-28 20:37:10 +10:00
  • dbc90a6712 Move bind code from header to cpp file amaitland 2014-08-28 20:36:41 +10:00
  • 96230e1c0b Remove unused virtual modifier amaitland 2014-08-28 20:35:04 +10:00
  • 549ae4b9d9 Add commented out code for handling complex types to JavascriptPropertyWrapper amaitland 2014-08-28 20:34:41 +10:00
  • 7e512c9429 Change Id from Long to int amaitland 2014-08-28 20:29:02 +10:00
  • 20ca50036f Move GetProperty into JavascriptObjectWrapper.cpp amaitland 2014-08-28 20:26:15 +10:00
  • 0dd085a770 Remove unused includes amaitland 2014-08-28 20:25:53 +10:00
  • c5176d1bd1 Move creation of V8Object from JavascriptRootObjectWrapper to JavascriptObjectWrapper Not working yet as having some c++ include issues amaitland 2014-08-28 19:54:23 +10:00
  • da3412969d Revery name change for TryGetMethod - seems slightly inconsistent so will need to be fixed. amaitland 2014-08-28 19:40:01 +10:00
  • 2aa87c2034 Change to use JavascriptName instead of Managed name amaitland 2014-08-28 19:35:04 +10:00
  • ccc4cb3c99 Add property name to Setter amaitland 2014-08-28 19:32:04 +10:00
  • 96c512eeb8 Pass through property name to Getter amaitland 2014-08-28 19:30:26 +10:00
  • e6b26a07ac Create a property for each member object amaitland 2014-08-28 19:22:06 +10:00
  • 5b135e32d8 Add in some debugging code amaitland 2014-08-28 19:21:54 +10:00
  • ff1c849559 Create missing root v8object amaitland 2014-08-28 19:02:03 +10:00