Files
cefsharp/CefSharp.BrowserSubprocess.Core/JavascriptPropertyWrapper.h
T
amaitland b9ee476e8e Fix up some of the vc++ include mess that we had going
Cleanup using namespace statements as well
2015-09-29 16:26:06 +10:00

39 lines
1.2 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 "Stdafx.h"
#include "include/cef_v8.h"
#include "JavascriptCallbackRegistry.h"
namespace CefSharp
{
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;
public:
JavascriptPropertyWrapper(int64 ownerId, IBrowserProcess^ browserProcess)
{
_ownerId = ownerId;
_browserProcess = browserProcess;
}
~JavascriptPropertyWrapper()
{
if (_javascriptObjectWrapper != nullptr)
{
delete _javascriptObjectWrapper;
_javascriptObjectWrapper = nullptr;
}
}
void Bind(JavascriptProperty^ javascriptProperty, const CefRefPtr<CefV8Value>& v8Value, JavascriptCallbackRegistry^ callbackRegistry);
};
}