mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
41 lines
1.0 KiB
C++
41 lines
1.0 KiB
C++
// Copyright © 2010-2014 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 "Stdafx.h"
|
|
#include "include/cef_v8.h"
|
|
|
|
#include "JavascriptPropertyHandler.h"
|
|
|
|
using namespace CefSharp::Internals;
|
|
|
|
namespace CefSharp
|
|
{
|
|
public ref class JavascriptPropertyWrapper
|
|
{
|
|
private:
|
|
JavascriptProperty^ _javascriptProperty;
|
|
int64 _ownerId;
|
|
Func<IBrowserProcess^>^ _createBrowserProxyDelegate;
|
|
|
|
internal:
|
|
MCefRefPtr<CefV8Value> V8Value;
|
|
|
|
public:
|
|
JavascriptPropertyWrapper(JavascriptProperty^ javascriptProperty, int64 ownerId, Func<IBrowserProcess^>^ createBrowserProxyDelegate)
|
|
{
|
|
_javascriptProperty = javascriptProperty;
|
|
_ownerId = ownerId;
|
|
_createBrowserProxyDelegate = createBrowserProxyDelegate;
|
|
}
|
|
|
|
~JavascriptPropertyWrapper()
|
|
{
|
|
V8Value = nullptr;
|
|
}
|
|
|
|
void Bind();
|
|
};
|
|
} |