Move Bind code from header to cpp file

This commit is contained in:
amaitland
2014-08-28 20:37:57 +10:00
parent 9686584a84
commit 0ba4f95194
2 changed files with 9 additions and 8 deletions
@@ -12,6 +12,14 @@ using namespace System;
namespace CefSharp
{
void JavascriptMethodWrapper::Bind()
{
auto methodName = StringUtils::ToNative(_javascriptMethod->JavascriptName);
auto v8Function = CefV8Value::CreateFunction(methodName, _javascriptMethodHandler.get());
V8Value->SetValue(methodName, v8Function, V8_PROPERTY_ATTRIBUTE_NONE);
};
Object^ JavascriptMethodWrapper::Execute(array<Object^>^ parameters)
{
auto browserProxy = CefAppWrapper::Instance->CreateBrowserProxy();