amaitland
9b4c877a50
Remove unused property getter
2014-09-11 23:39:07 +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
8f093dc95d
Register sample JS BoundObject after Handle is created (Handle creates managedCefBrowserAdapter)
2014-09-11 17:49:30 +10:00
amaitland
bdbb8c3f45
Register sample JS BoundObject after Handle is created (Handle creates managedCefBrowserAdapter)
2014-09-11 17:45:47 +10:00
amaitland
9eac3dbb27
Remove redundant CefSettingsBase class - merged functionality into CefSettings.h
2014-09-11 17:37:41 +10:00
amaitland
4e2973b2a1
Extract Loading of Url from OnAddressChanged and put in Load(url) method so can be called directly if required.
2014-09-11 16:33:51 +10:00
amaitland
057d7f813d
OnAddressChanged now loads "newValue", allows for more consistent overriding.
2014-09-11 16:26:22 +10:00
amaitland
631b8956ca
Merge remote-tracking branch 'remotes/upstream/master' into JsBinding/Wip2
2014-09-11 15:58:10 +10:00
amaitland
fe6b88d055
Merge remote-tracking branch 'remotes/upstream/master' into JsBinding_WIP
2014-09-11 15:55:58 +10:00
Alex Maitland
60f8d3ff3a
Merge pull request #469 from amaitland/fix/dipose-managedcef-null
...
Call RemoveSourceHook before dispose of managedCefBrowserAdapter
2014-09-11 15:32:20 +10:00
amaitland
ecafbe9ef3
Call RemoveSourceHook before dispose of managedCefBrowserAdapter
2014-09-11 15:27:10 +10:00
amaitland
b0bc9573f5
Merge remote-tracking branch 'remotes/upstream/master' into enhancement/minor-api-changes
2014-09-11 14:22:55 +10:00
amaitland
10c939e004
Merge branch 'JsBinding/Wip2' into JsBinding_WIP
2014-09-11 14:09:09 +10:00
amaitland
efc4b79552
Merge remote-tracking branch 'remotes/upstream/master' into JsBinding/Wip2
...
Conflicts:
CefSharp.Core/CefAppWrapper.cpp
CefSharp.Core/Wrappers/CefAppWrapper.h
CefSharp.Core/Wrappers/CefSubprocessWrapper.h
2014-09-11 14:04:24 +10:00
amaitland
6fef20aba7
Merge remote-tracking branch 'remotes/upstream/master' into JsBinding_WIP
2014-09-11 13:46:48 +10:00
Alex Maitland
7ee3e85d86
Merge pull request #465 from amaitland/bug-fix/dispatcher-null-pointer
...
Remove call to Application.Current.Dispatcher.CheckAccess() - Fix null pointer when Application.Current is null
2014-09-11 13:19:09 +10:00
amaitland
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)
2014-09-08 18:21:07 +10:00
amaitland
34f27d60e7
Fix compiler warning (amend xml comment)
2014-09-02 21:28:43 +10:00
amaitland
e032025019
Fix long data type compiler warnings
2014-09-02 21:28:43 +10:00
amaitland
2c159ee1b6
Changed frameId to long as frame->GetIdentifier() returns long
2014-09-02 21:28:43 +10:00
amaitland
38d399d321
Add DateTime support to TypeUtils
2014-09-02 13:46:22 +10:00
amaitland
08d557ca46
Fix whitespace
2014-09-02 12:04:39 +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
e33c7552dc
Return false when an exception is thrown
2014-09-02 11:27:39 +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
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
df5cecb1d0
Expand BindingTest to output sub properties and functions of a complex property (isn't fully recursive)
2014-08-29 19:13:13 +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
4e1a9ece35
Remove debugging code
2014-08-29 12:56:15 +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
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
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
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
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