// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp.DevTools.CSS
{
///
/// CSS rule representation.
///
[System.Runtime.Serialization.DataContractAttribute]
public class CSSRule : CefSharp.DevTools.DevToolsDomainEntityBase
{
///
/// The css style sheet identifier (absent for user agent stylesheet and user-specified
/// stylesheet rules) this rule came from.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (false))]
public string StyleSheetId
{
get;
set;
}
///
/// Rule selector data.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("selectorList"), IsRequired = (true))]
public CefSharp.DevTools.CSS.SelectorList SelectorList
{
get;
set;
}
///
/// Parent stylesheet's origin.
///
public CefSharp.DevTools.CSS.StyleSheetOrigin Origin
{
get
{
return (CefSharp.DevTools.CSS.StyleSheetOrigin)(StringToEnum(typeof(CefSharp.DevTools.CSS.StyleSheetOrigin), origin));
}
set
{
origin = (EnumToString(value));
}
}
///
/// Parent stylesheet's origin.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))]
internal string origin
{
get;
set;
}
///
/// Associated style declaration.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("style"), IsRequired = (true))]
public CefSharp.DevTools.CSS.CSSStyle Style
{
get;
set;
}
///
/// Media list array (for rules involving media queries). The array enumerates media queries
/// starting with the innermost one, going outwards.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("media"), IsRequired = (false))]
public System.Collections.Generic.IList Media
{
get;
set;
}
}
}