mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
Move bind code from header to cpp file
This commit is contained in:
@@ -12,6 +12,23 @@ using namespace System;
|
||||
|
||||
namespace CefSharp
|
||||
{
|
||||
void JavascriptPropertyWrapper::Bind()
|
||||
{
|
||||
auto methodName = StringUtils::ToNative(_javascriptProperty->JavascriptName);
|
||||
auto clrMethodName = _javascriptProperty->JavascriptName;
|
||||
|
||||
if (_javascriptProperty->IsComplexType)
|
||||
{
|
||||
//auto wrapperObject = gcnew JavascriptObjectWrapper(_javascriptProperty->Value);
|
||||
//wrapperObject->V8Value = V8Value.get();
|
||||
//wrapperObject->Bind();
|
||||
}
|
||||
else
|
||||
{
|
||||
V8Value->SetValue(methodName, V8_ACCESS_CONTROL_DEFAULT, V8_PROPERTY_ATTRIBUTE_NONE);
|
||||
}
|
||||
};
|
||||
|
||||
void JavascriptPropertyWrapper::SetProperty(String^ memberName, Object^ value)
|
||||
{
|
||||
auto browserProxy = CefAppWrapper::Instance->CreateBrowserProxy();
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include "Stdafx.h"
|
||||
#include "include/cef_v8.h"
|
||||
|
||||
//#include "JavascriptObjectWrapper.h"
|
||||
#include "JavascriptPropertyHandler.h"
|
||||
|
||||
using namespace CefSharp::Internals;
|
||||
@@ -35,23 +34,7 @@ namespace CefSharp
|
||||
);
|
||||
}
|
||||
|
||||
void Bind()
|
||||
{
|
||||
auto methodName = StringUtils::ToNative(_javascriptProperty->JavascriptName);
|
||||
auto clrMethodName = _javascriptProperty->JavascriptName;
|
||||
|
||||
if(_javascriptProperty->IsComplexType)
|
||||
{
|
||||
//auto wrapperObject = gcnew JavascriptObjectWrapper(_javascriptProperty->Value);
|
||||
//wrapperObject->V8Value = V8Value.get();
|
||||
//wrapperObject->Bind();
|
||||
}
|
||||
else
|
||||
{
|
||||
V8Value->SetValue(methodName, V8_ACCESS_CONTROL_DEFAULT, V8_PROPERTY_ATTRIBUTE_NONE);
|
||||
}
|
||||
};
|
||||
|
||||
void Bind();
|
||||
void SetProperty(String^ memberName, Object^ value);
|
||||
Object^ GetProperty(String^ memberName);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user