Files
cefsharp/CefSharp.BrowserSubprocess.Core/JavascriptPropertyWrapper.cpp
T
2014-07-11 16:30:28 +10:00

28 lines
755 B
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 "JavascriptMethodWrapper.h"
#include "CefAppWrapper.h"
using namespace System;
namespace CefSharp
{
void JavascriptPropertyWrapper::SetProperty(Object^ value)
{
auto browserProxy = CefAppWrapper::Instance->CreateBrowserProxy();
return browserProxy->SetProperty(_owner->Id, ManagedName, value);
};
Object^ JavascriptPropertyWrapper::GetProperty()
{
auto browserProxy = CefAppWrapper::Instance->CreateBrowserProxy();
return browserProxy->GetProperty(_owner->Id, ManagedName);
};
}