implemented Property Getter / Setter

This commit is contained in:
JanEggers
2014-06-07 09:52:45 +02:00
parent 52b52cead9
commit 36ed4dbdc0
7 changed files with 67 additions and 7 deletions
@@ -0,0 +1,28 @@
// 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, Description->ManagedName, value);
};
Object^ JavascriptPropertyWrapper::GetProperty()
{
auto browserProxy = CefAppWrapper::Instance->CreateBrowserProxy();
return browserProxy->GetProperty(_owner->Id, Description->ManagedName);
};
}