mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
Move Bind code from header to cpp file
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user