mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
message handling added for js callback execution through cef ipc
This commit is contained in:
@@ -5,11 +5,14 @@
|
||||
#include "stdafx.h"
|
||||
#include "TypeUtils.h"
|
||||
#include "JavascriptCallbackWrapper.h"
|
||||
#include "Serialization/V8Serialization.h"
|
||||
|
||||
namespace CefSharp
|
||||
{
|
||||
namespace Internals
|
||||
{
|
||||
using namespace Serialization;
|
||||
|
||||
JavascriptCallbackWrapper::!JavascriptCallbackWrapper()
|
||||
{
|
||||
value = nullptr;
|
||||
@@ -58,5 +61,15 @@ namespace CefSharp
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> JavascriptCallbackWrapper::GetValue()
|
||||
{
|
||||
return value.get();
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Context> JavascriptCallbackWrapper::GetContext()
|
||||
{
|
||||
return context.get();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user