// 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 stylesheet metainformation. /// [System.Runtime.Serialization.DataContractAttribute] public class CSSStyleSheetHeader : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The stylesheet identifier. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (true))] public string StyleSheetId { get; set; } /// /// Owner frame identifier. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; set; } /// /// Stylesheet resource URL. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceURL"), IsRequired = (true))] public string SourceURL { get; set; } /// /// URL of source map associated with the stylesheet (if any). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceMapURL"), IsRequired = (false))] public string SourceMapURL { get; set; } /// /// Stylesheet origin. /// public CefSharp.DevTools.CSS.StyleSheetOrigin Origin { get { return (CefSharp.DevTools.CSS.StyleSheetOrigin)(StringToEnum(typeof(CefSharp.DevTools.CSS.StyleSheetOrigin), origin)); } set { origin = (EnumToString(value)); } } /// /// Stylesheet origin. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] internal string origin { get; set; } /// /// Stylesheet title. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("title"), IsRequired = (true))] public string Title { get; set; } /// /// The backend id for the owner node of the stylesheet. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("ownerNode"), IsRequired = (false))] public int? OwnerNode { get; set; } /// /// Denotes whether the stylesheet is disabled. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("disabled"), IsRequired = (true))] public bool Disabled { get; set; } /// /// Whether the sourceURL field value comes from the sourceURL comment. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasSourceURL"), IsRequired = (false))] public bool? HasSourceURL { get; set; } /// /// Whether this stylesheet is created for STYLE tag by parser. This flag is not set for /// document.written STYLE tags. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("isInline"), IsRequired = (true))] public bool IsInline { get; set; } /// /// Whether this stylesheet is mutable. Inline stylesheets become mutable /// after they have been modified via CSSOM API. /// element's stylesheets are never mutable. Constructed stylesheets /// (new CSSStyleSheet()) are mutable immediately after creation. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("isMutable"), IsRequired = (true))] public bool IsMutable { get; set; } /// /// Line offset of the stylesheet within the resource (zero based). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("startLine"), IsRequired = (true))] public long StartLine { get; set; } /// /// Column offset of the stylesheet within the resource (zero based). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("startColumn"), IsRequired = (true))] public long StartColumn { get; set; } /// /// Size of the content (in characters). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("length"), IsRequired = (true))] public long Length { get; set; } /// /// Line offset of the end of the stylesheet within the resource (zero based). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("endLine"), IsRequired = (true))] public long EndLine { get; set; } /// /// Column offset of the end of the stylesheet within the resource (zero based). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("endColumn"), IsRequired = (true))] public long EndColumn { get; set; } } }