SIGN IN SIGN UP
cefsharp / CefSharp UNCLAIMED

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework

0 0 1 C#
// Copyright © 2014 The CefSharp Authors. 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 "JavascriptCallbackRegistry.h"
using namespace CefSharp::Internals::Wcf;
namespace CefSharp
{
namespace BrowserSubprocess
2014-06-12 06:01:27 +03:00
{
private ref class JavascriptPropertyWrapper
{
private:
int64 _ownerId;
IBrowserProcess^ _browserProcess;
//TODO: Strongly type this variable - currently trying to include JavascriptObjectWrapper.h creates a circular reference, so won't compile
Object^ _javascriptObjectWrapper;
2014-05-10 15:44:00 +02:00
public:
JavascriptPropertyWrapper(int64 ownerId, IBrowserProcess^ browserProcess)
2014-11-25 09:34:15 -05:00
{
_ownerId = ownerId;
_browserProcess = browserProcess;
2014-11-25 09:34:15 -05:00
_javascriptObjectWrapper = nullptr;
}
2014-09-16 16:34:07 +10:00
~JavascriptPropertyWrapper()
{
if (_javascriptObjectWrapper != nullptr)
{
delete _javascriptObjectWrapper;
_javascriptObjectWrapper = nullptr;
}
}
void Bind(JavascriptProperty^ javascriptProperty, const CefRefPtr<CefV8Value>& v8Value, JavascriptCallbackRegistry^ callbackRegistry);
};
}
}