mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
implemented Property Getter / Setter
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user