added wcf operations to do javascript callbacks

This commit is contained in:
David Serfozo
2015-03-08 13:22:56 +01:00
parent 754bf3f913
commit 98ba30bf5d
5 changed files with 109 additions and 9 deletions
@@ -77,6 +77,16 @@ namespace CefSharp
return nullptr;
}
JavascriptResponse^ CefBrowserWrapper::DoCallback(System::Int64 callbackId, array<Object^>^ parameters)
{
return _callbackRegistry->Execute(callbackId, parameters);
}
void CefBrowserWrapper::DestroyJavascriptCallback(Int64 id)
{
_callbackRegistry->RemoveWrapper(id);
}
CefBrowserWrapper::~CefBrowserWrapper()
{
_cefBrowser = nullptr;