// 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 media rule descriptor. /// [System.Runtime.Serialization.DataContractAttribute] public class CSSMedia : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Media query text. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] public string Text { get; set; } /// /// Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if /// specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked /// stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline /// stylesheet's STYLE tag. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("source"), IsRequired = (true))] public string Source { get; set; } /// /// URL of the document containing the media query description. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceURL"), IsRequired = (false))] public string SourceURL { get; set; } /// /// The associated rule (@media or @import) header range in the enclosing stylesheet (if /// available). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("range"), IsRequired = (false))] public CefSharp.DevTools.CSS.SourceRange Range { get; set; } /// /// Identifier of the stylesheet containing this object (if exists). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (false))] public string StyleSheetId { get; set; } /// /// Array of media queries. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("mediaList"), IsRequired = (false))] public System.Collections.Generic.IList MediaList { get; set; } } }