added message to transmit async bound jsrootobject to render process

This commit is contained in:
cefsharp-ms
2015-07-13 16:35:22 +02:00
committed by cefsharp-ms cefsharp-github@morganstanley.com
parent a99e020138
commit 0e073bcd0a
8 changed files with 36 additions and 6 deletions
@@ -26,14 +26,15 @@ namespace CefSharp
auto methodList = objList->GetList(3);
auto methodCount = methodList->GetInt(0);
auto k = 1;
for (auto j = 0; j < methodCount; j++)
{
auto jsMethod = gcnew JavascriptMethod();
jsMethod->Id = GetInt64(methodList, j);
jsMethod->ManagedName = StringUtils::ToClr(methodList->GetString(j + 1));
jsMethod->JavascriptName = StringUtils::ToClr(methodList->GetString(j + 2));
jsMethod->ParameterCount = methodList->GetInt(j + 3);
jsMethod->Id = GetInt64(methodList, k++);
jsMethod->ManagedName = StringUtils::ToClr(methodList->GetString(k++));
jsMethod->JavascriptName = StringUtils::ToClr(methodList->GetString(k++));
jsMethod->ParameterCount = methodList->GetInt(k++);
jsObject->Methods->Add(jsMethod);
}