mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
22 lines
687 B
C++
22 lines
687 B
C++
#include "stdafx.h"
|
|
#pragma once
|
|
|
|
namespace CefSharp
|
|
{
|
|
ref class BrowserControl;
|
|
|
|
class JsResultHandler : public CefThreadSafeBase<CefV8Handler>
|
|
{
|
|
const static char* DONE_FUNC_NAME;
|
|
const static char* ERR_FUNC_NAME;
|
|
|
|
gcroot<BrowserControl^> _browserControl;
|
|
|
|
JsResultHandler(BrowserControl^ browserControl) : _browserControl(browserControl) {}
|
|
|
|
public:
|
|
virtual bool Execute(const CefString& name, CefRefPtr<CefV8Value> object, const CefV8ValueList& arguments, CefRefPtr<CefV8Value>& retval, CefString& exception);
|
|
|
|
static void Bind(BrowserControl^ browserControl, CefRefPtr<CefV8Value> domWindow);
|
|
};
|
|
} |