mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
async method bindings added
This commit is contained in:
committed by
cefsharp-ms cefsharp-github@morganstanley.com
parent
0e073bcd0a
commit
4ec6d1ca6e
@@ -0,0 +1,26 @@
|
||||
#include "stdafx.h"
|
||||
#include "JavascriptAsyncRootObjectWrapper.h"
|
||||
|
||||
using namespace System::Linq;
|
||||
|
||||
namespace CefSharp
|
||||
{
|
||||
namespace Internals
|
||||
{
|
||||
namespace Async
|
||||
{
|
||||
void JavascriptAsyncRootObjectWrapper::Bind()
|
||||
{
|
||||
auto memberObjects = _rootObject->MemberObjects;
|
||||
for each (JavascriptObject^ obj in Enumerable::OfType<JavascriptObject^>(memberObjects))
|
||||
{
|
||||
auto wrapperObject = gcnew JavascriptAsyncObjectWrapper(_browser, obj);
|
||||
wrapperObject->CallbackRegistry = CallbackRegistry;
|
||||
wrapperObject->Bind(V8Value.get());
|
||||
|
||||
_wrappedObjects->Add(wrapperObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user