Files
cefsharp/CefSharp.BrowserSubprocess.Core/JavascriptObjectWrapper.h
T

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_app.h"
#include "include/cef_base.h"
using namespace System::Runtime::Serialization;
using namespace System::Linq;
using namespace CefSharp::Internals;
namespace CefSharp
{
[DataContract]
public ref class JavascriptObjectWrapper : public JavascriptObject
{
internal:
MCefRefPtr<CefV8Value> V8Value;
public:
void Bind()
{
//TODO: Simplify this
for each (IBindableJavascriptMember^ method in Enumerable::OfType<IBindableJavascriptMember^>(Methods))
{
method->Bind(this);
}
for each (IBindableJavascriptMember^ prop in Enumerable::OfType<IBindableJavascriptMember^>(Properties))
{
prop->Bind(this);
}
};
void Clone(JavascriptObject^ obj);
};
}