message handling added for js callback execution through cef ipc

This commit is contained in:
David Serfozo
2015-07-07 08:12:04 +02:00
parent e270455352
commit 5f573c8563
8 changed files with 142 additions and 44 deletions
@@ -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();
}
}
}