mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
58 lines
1.7 KiB
C#
58 lines
1.7 KiB
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace CefSharp.Internals
|
|
{
|
|
[DataContract]
|
|
public class JavascriptProperty
|
|
{
|
|
[DataMember]
|
|
public JavascriptObject Value { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a delegate which is used to set the property / field value in the managed object.
|
|
/// </summary>
|
|
public Action<object, object> SetValue { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a delegate which is used to get the property / field value from the managed object.
|
|
/// </summary>
|
|
public Func<object, object> GetValue { get; set; }
|
|
|
|
/// <summary>
|
|
/// Identifies the <see cref="JavascriptProperty" /> for BrowserProcess to RenderProcess communication
|
|
/// </summary>
|
|
[DataMember]
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the name of the managed property.
|
|
/// </summary>
|
|
[DataMember]
|
|
public string ManagedName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the name of the property in the JavaScript runtime.
|
|
/// </summary>
|
|
[DataMember]
|
|
public string JavascriptName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets if this property represents a complex type
|
|
/// </summary>
|
|
[DataMember]
|
|
public bool IsComplexType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets if this property is read-only
|
|
/// </summary>
|
|
[DataMember]
|
|
public bool IsReadOnly { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return ManagedName ?? base.ToString();
|
|
}
|
|
}
|
|
}
|