mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-03 23:12:42 +00:00
35 lines
1.1 KiB
C++
35 lines
1.1 KiB
C++
// Copyright © 2010-2015 The CefSharp Project. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
#pragma once
|
|
|
|
#include "JavascriptAsyncMethodHandler.h"
|
|
#include "JavascriptCallbackRegistry.h"
|
|
|
|
namespace CefSharp
|
|
{
|
|
ref class CefBrowserWrapper;
|
|
|
|
namespace Internals
|
|
{
|
|
namespace Async
|
|
{
|
|
private ref class JavascriptAsyncMethodWrapper
|
|
{
|
|
private:
|
|
MCefRefPtr<JavascriptAsyncMethodHandler> _javascriptMethodHandler;
|
|
JavascriptMethod^ _method;
|
|
|
|
public:
|
|
JavascriptAsyncMethodWrapper(JavascriptMethod^ method, int64 ownerId, JavascriptCallbackRegistry^ callbackRegistry, CefRefPtr<CefV8Value> promiseCreator, Func<JavascriptAsyncMethodCallback^, int64>^ methodCallbackSave)
|
|
:_method(method), _javascriptMethodHandler(new JavascriptAsyncMethodHandler(ownerId, callbackRegistry, promiseCreator, methodCallbackSave))
|
|
{
|
|
|
|
}
|
|
|
|
void Bind(const CefRefPtr<CefV8Value>& value);
|
|
};
|
|
}
|
|
}
|
|
} |