mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 19:54:53 +00:00
added wcf operations to do javascript callbacks
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -49,5 +49,9 @@ namespace CefSharp
|
||||
virtual void DoDispose(bool disposing) override;
|
||||
|
||||
virtual JavascriptResponse^ DoEvaluateScript(System::Int64 frameId, String^ script);
|
||||
|
||||
JavascriptResponse^ DoCallback(System::Int64 callbackId, array<Object^>^ parameters);
|
||||
|
||||
void DestroyJavascriptCallback(Int64 id);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user