css

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CommandCSSAddRule                          = "CSS.addRule"
	CommandCSSCollectClassNames                = "CSS.collectClassNames"
	CommandCSSCreateStyleSheet                 = "CSS.createStyleSheet"
	CommandCSSDisable                          = "CSS.disable"
	CommandCSSEnable                           = "CSS.enable"
	CommandCSSForcePseudoState                 = "CSS.forcePseudoState"
	CommandCSSGetBackgroundColors              = "CSS.getBackgroundColors"
	CommandCSSGetComputedStyleForNode          = "CSS.getComputedStyleForNode"
	CommandCSSGetInlineStylesForNode           = "CSS.getInlineStylesForNode"
	CommandCSSGetMatchedStylesForNode          = "CSS.getMatchedStylesForNode"
	CommandCSSGetMediaQueries                  = "CSS.getMediaQueries"
	CommandCSSGetPlatformFontsForNode          = "CSS.getPlatformFontsForNode"
	CommandCSSGetStyleSheetText                = "CSS.getStyleSheetText"
	CommandCSSSetEffectivePropertyValueForNode = "CSS.setEffectivePropertyValueForNode"
	CommandCSSSetKeyframeKey                   = "CSS.setKeyframeKey"
	CommandCSSSetMediaText                     = "CSS.setMediaText"
	CommandCSSSetRuleSelector                  = "CSS.setRuleSelector"
	CommandCSSSetStyleSheetText                = "CSS.setStyleSheetText"
	CommandCSSSetStyleTexts                    = "CSS.setStyleTexts"
	CommandCSSStartRuleUsageTracking           = "CSS.startRuleUsageTracking"
	CommandCSSStopRuleUsageTracking            = "CSS.stopRuleUsageTracking"
	CommandCSSTakeCoverageDelta                = "CSS.takeCoverageDelta"
)
View Source
const (
	EventCSSFontsUpdated            = "CSS.fontsUpdated"
	EventCSSMediaQueryResultChanged = "CSS.mediaQueryResultChanged"
	EventCSSStyleSheetAdded         = "CSS.styleSheetAdded"
	EventCSSStyleSheetChanged       = "CSS.styleSheetChanged"
	EventCSSStyleSheetRemoved       = "CSS.styleSheetRemoved"
)

Variables

Functions

func GetEventReply

func GetEventReply(event string) (json.Unmarshaler, bool)

Types

type AddRuleArgs

type AddRuleArgs struct {
	StyleSheetID StyleSheetID `json:"styleSheetId"` // The css style sheet identifier where a new rule should be inserted.
	RuleText     string       `json:"ruleText"`     // The text of a new rule.
	Location     SourceRange  `json:"location"`     // Text position of a new rule in the target style sheet.
}

AddRuleArgs represents the arguments for AddRule in the CSS domain.

func (*AddRuleArgs) MarshalJSON

func (a *AddRuleArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for AddRule in the CSS domain.

func (*AddRuleArgs) UnmarshalJSON

func (a *AddRuleArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for AddRule in the CSS domain.

type AddRuleReply

type AddRuleReply struct {
	Rule Rule `json:"rule"` // The newly created rule.
}

AddRuleReply represents the return values for AddRule in the CSS domain.

func (*AddRuleReply) GetFrameID

func (a *AddRuleReply) GetFrameID() string

AddRuleReply returns the FrameID value for AddRule in the CSS domain.

func (*AddRuleReply) MatchFrameID

func (a *AddRuleReply) MatchFrameID(frameID string, m []byte) (bool, error)

AddRuleReply returns whether or not the FrameID matches the reply value for AddRule in the CSS domain.

func (*AddRuleReply) UnmarshalJSON

func (a *AddRuleReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for AddRule in the CSS domain.

type CollectClassNamesArgs

type CollectClassNamesArgs struct {
	StyleSheetID StyleSheetID `json:"styleSheetId"` // No description.
}

CollectClassNamesArgs represents the arguments for CollectClassNames in the CSS domain.

func (*CollectClassNamesArgs) MarshalJSON

func (a *CollectClassNamesArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for CollectClassNames in the CSS domain.

func (*CollectClassNamesArgs) UnmarshalJSON

func (a *CollectClassNamesArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for CollectClassNames in the CSS domain.

type CollectClassNamesReply

type CollectClassNamesReply struct {
	ClassNames []string `json:"classNames"` // Class name list.
}

CollectClassNamesReply represents the return values for CollectClassNames in the CSS domain.

func (*CollectClassNamesReply) GetFrameID

func (a *CollectClassNamesReply) GetFrameID() string

CollectClassNamesReply returns the FrameID value for CollectClassNames in the CSS domain.

func (*CollectClassNamesReply) MatchFrameID

func (a *CollectClassNamesReply) MatchFrameID(frameID string, m []byte) (bool, error)

CollectClassNamesReply returns whether or not the FrameID matches the reply value for CollectClassNames in the CSS domain.

func (*CollectClassNamesReply) UnmarshalJSON

func (a *CollectClassNamesReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for CollectClassNames in the CSS domain.

type ComputedStyleProperty

type ComputedStyleProperty struct {
	Name  string `json:"name"`  // Computed style property name.
	Value string `json:"value"` // Computed style property value.
}

ComputedStyleProperty

type CreateStyleSheetArgs

type CreateStyleSheetArgs struct {
	FrameID shared.FrameID `json:"frameId"` // Identifier of the frame where "via-inspector" stylesheet should be created.
}

CreateStyleSheetArgs represents the arguments for CreateStyleSheet in the CSS domain.

func (*CreateStyleSheetArgs) MarshalJSON

func (a *CreateStyleSheetArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for CreateStyleSheet in the CSS domain.

func (*CreateStyleSheetArgs) UnmarshalJSON

func (a *CreateStyleSheetArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for CreateStyleSheet in the CSS domain.

type CreateStyleSheetReply

type CreateStyleSheetReply struct {
	StyleSheetID StyleSheetID `json:"styleSheetId"` // Identifier of the created "via-inspector" stylesheet.
}

CreateStyleSheetReply represents the return values for CreateStyleSheet in the CSS domain.

func (*CreateStyleSheetReply) GetFrameID

func (a *CreateStyleSheetReply) GetFrameID() string

CreateStyleSheetReply returns the FrameID value for CreateStyleSheet in the CSS domain.

func (*CreateStyleSheetReply) MatchFrameID

func (a *CreateStyleSheetReply) MatchFrameID(frameID string, m []byte) (bool, error)

CreateStyleSheetReply returns whether or not the FrameID matches the reply value for CreateStyleSheet in the CSS domain.

func (*CreateStyleSheetReply) UnmarshalJSON

func (a *CreateStyleSheetReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for CreateStyleSheet in the CSS domain.

type DisableArgs

type DisableArgs struct {
}

DisableArgs represents the arguments for Disable in the CSS domain.

func (*DisableArgs) MarshalJSON

func (a *DisableArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for Disable in the CSS domain.

func (*DisableArgs) UnmarshalJSON

func (a *DisableArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Disable in the CSS domain.

type DisableReply

type DisableReply struct {
}

DisableReply represents the return values for Disable in the CSS domain.

func (*DisableReply) GetFrameID

func (a *DisableReply) GetFrameID() string

DisableReply returns the FrameID value for Disable in the CSS domain.

func (*DisableReply) MatchFrameID

func (a *DisableReply) MatchFrameID(frameID string, m []byte) (bool, error)

DisableReply returns whether or not the FrameID matches the reply value for Disable in the CSS domain.

func (*DisableReply) UnmarshalJSON

func (a *DisableReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Disable in the CSS domain.

type EnableArgs

type EnableArgs struct {
}

EnableArgs represents the arguments for Enable in the CSS domain.

func (*EnableArgs) MarshalJSON

func (a *EnableArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for Enable in the CSS domain.

func (*EnableArgs) UnmarshalJSON

func (a *EnableArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Enable in the CSS domain.

type EnableReply

type EnableReply struct {
}

EnableReply represents the return values for Enable in the CSS domain.

func (*EnableReply) GetFrameID

func (a *EnableReply) GetFrameID() string

EnableReply returns the FrameID value for Enable in the CSS domain.

func (*EnableReply) MatchFrameID

func (a *EnableReply) MatchFrameID(frameID string, m []byte) (bool, error)

EnableReply returns whether or not the FrameID matches the reply value for Enable in the CSS domain.

func (*EnableReply) UnmarshalJSON

func (a *EnableReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Enable in the CSS domain.

type FontFace

type FontFace struct {
	FontFamily         string `json:"fontFamily"`         // The font-family.
	FontStyle          string `json:"fontStyle"`          // The font-style.
	FontVariant        string `json:"fontVariant"`        // The font-variant.
	FontWeight         string `json:"fontWeight"`         // The font-weight.
	FontStretch        string `json:"fontStretch"`        // The font-stretch.
	UnicodeRange       string `json:"unicodeRange"`       // The unicode-range.
	Src                string `json:"src"`                // The src.
	PlatformFontFamily string `json:"platformFontFamily"` // The resolved platform font family
}

FontFace Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions

type FontsUpdatedReply

type FontsUpdatedReply struct {
	Font *FontFace `json:"font,omitempty"` // The web font that has loaded.
}

FontsUpdatedReply is the reply for FontsUpdated events.

func (*FontsUpdatedReply) GetFrameID

func (a *FontsUpdatedReply) GetFrameID() string

FontsUpdatedReply returns the FrameID for FontsUpdated in the CSS domain.

func (*FontsUpdatedReply) MatchFrameID

func (a *FontsUpdatedReply) MatchFrameID(frameID string, m []byte) (bool, error)

FontsUpdatedReply returns whether or not the FrameID matches the reply value for FontsUpdated in the CSS domain.

func (*FontsUpdatedReply) UnmarshalJSON

func (a *FontsUpdatedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for FontsUpdated in the CSS domain.

type ForcePseudoStateArgs

type ForcePseudoStateArgs struct {
	NodeID              dom.NodeID `json:"nodeId"`              // The element id for which to force the pseudo state.
	ForcedPseudoClasses []string   `json:"forcedPseudoClasses"` // Element pseudo classes to force when computing the element's style.
}

ForcePseudoStateArgs represents the arguments for ForcePseudoState in the CSS domain.

func (*ForcePseudoStateArgs) MarshalJSON

func (a *ForcePseudoStateArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for ForcePseudoState in the CSS domain.

func (*ForcePseudoStateArgs) UnmarshalJSON

func (a *ForcePseudoStateArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ForcePseudoState in the CSS domain.

type ForcePseudoStateReply

type ForcePseudoStateReply struct {
}

ForcePseudoStateReply represents the return values for ForcePseudoState in the CSS domain.

func (*ForcePseudoStateReply) GetFrameID

func (a *ForcePseudoStateReply) GetFrameID() string

ForcePseudoStateReply returns the FrameID value for ForcePseudoState in the CSS domain.

func (*ForcePseudoStateReply) MatchFrameID

func (a *ForcePseudoStateReply) MatchFrameID(frameID string, m []byte) (bool, error)

ForcePseudoStateReply returns whether or not the FrameID matches the reply value for ForcePseudoState in the CSS domain.

func (*ForcePseudoStateReply) UnmarshalJSON

func (a *ForcePseudoStateReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ForcePseudoState in the CSS domain.

type GetBackgroundColorsArgs

type GetBackgroundColorsArgs struct {
	NodeID dom.NodeID `json:"nodeId"` // Id of the node to get background colors for.
}

GetBackgroundColorsArgs represents the arguments for GetBackgroundColors in the CSS domain.

func (*GetBackgroundColorsArgs) MarshalJSON

func (a *GetBackgroundColorsArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetBackgroundColors in the CSS domain.

func (*GetBackgroundColorsArgs) UnmarshalJSON

func (a *GetBackgroundColorsArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetBackgroundColors in the CSS domain.

type GetBackgroundColorsReply

type GetBackgroundColorsReply struct {
	BackgroundColors   *[]string `json:"backgroundColors,omitempty"`   // The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load).
	ComputedFontSize   string    `json:"computedFontSize,omitempty"`   // The computed font size for this node, as a CSS computed value string (e.g. '12px').
	ComputedFontWeight string    `json:"computedFontWeight,omitempty"` // The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100').
}

GetBackgroundColorsReply represents the return values for GetBackgroundColors in the CSS domain.

func (*GetBackgroundColorsReply) GetFrameID

func (a *GetBackgroundColorsReply) GetFrameID() string

GetBackgroundColorsReply returns the FrameID value for GetBackgroundColors in the CSS domain.

func (*GetBackgroundColorsReply) MatchFrameID

func (a *GetBackgroundColorsReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetBackgroundColorsReply returns whether or not the FrameID matches the reply value for GetBackgroundColors in the CSS domain.

func (*GetBackgroundColorsReply) UnmarshalJSON

func (a *GetBackgroundColorsReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetBackgroundColors in the CSS domain.

type GetComputedStyleForNodeArgs

type GetComputedStyleForNodeArgs struct {
	NodeID dom.NodeID `json:"nodeId"` // No description.
}

GetComputedStyleForNodeArgs represents the arguments for GetComputedStyleForNode in the CSS domain.

func (*GetComputedStyleForNodeArgs) MarshalJSON

func (a *GetComputedStyleForNodeArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetComputedStyleForNode in the CSS domain.

func (*GetComputedStyleForNodeArgs) UnmarshalJSON

func (a *GetComputedStyleForNodeArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetComputedStyleForNode in the CSS domain.

type GetComputedStyleForNodeReply

type GetComputedStyleForNodeReply struct {
	ComputedStyle []ComputedStyleProperty `json:"computedStyle"` // Computed style for the specified DOM node.
}

GetComputedStyleForNodeReply represents the return values for GetComputedStyleForNode in the CSS domain.

func (*GetComputedStyleForNodeReply) GetFrameID

func (a *GetComputedStyleForNodeReply) GetFrameID() string

GetComputedStyleForNodeReply returns the FrameID value for GetComputedStyleForNode in the CSS domain.

func (*GetComputedStyleForNodeReply) MatchFrameID

func (a *GetComputedStyleForNodeReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetComputedStyleForNodeReply returns whether or not the FrameID matches the reply value for GetComputedStyleForNode in the CSS domain.

func (*GetComputedStyleForNodeReply) UnmarshalJSON

func (a *GetComputedStyleForNodeReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetComputedStyleForNode in the CSS domain.

type GetInlineStylesForNodeArgs

type GetInlineStylesForNodeArgs struct {
	NodeID dom.NodeID `json:"nodeId"` // No description.
}

GetInlineStylesForNodeArgs represents the arguments for GetInlineStylesForNode in the CSS domain.

func (*GetInlineStylesForNodeArgs) MarshalJSON

func (a *GetInlineStylesForNodeArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetInlineStylesForNode in the CSS domain.

func (*GetInlineStylesForNodeArgs) UnmarshalJSON

func (a *GetInlineStylesForNodeArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetInlineStylesForNode in the CSS domain.

type GetInlineStylesForNodeReply

type GetInlineStylesForNodeReply struct {
	InlineStyle     *Style `json:"inlineStyle,omitempty"`     // Inline style for the specified DOM node.
	AttributesStyle *Style `json:"attributesStyle,omitempty"` // Attribute-defined element style (e.g. resulting from "width=20 height=100%").
}

GetInlineStylesForNodeReply represents the return values for GetInlineStylesForNode in the CSS domain.

func (*GetInlineStylesForNodeReply) GetFrameID

func (a *GetInlineStylesForNodeReply) GetFrameID() string

GetInlineStylesForNodeReply returns the FrameID value for GetInlineStylesForNode in the CSS domain.

func (*GetInlineStylesForNodeReply) MatchFrameID

func (a *GetInlineStylesForNodeReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetInlineStylesForNodeReply returns whether or not the FrameID matches the reply value for GetInlineStylesForNode in the CSS domain.

func (*GetInlineStylesForNodeReply) UnmarshalJSON

func (a *GetInlineStylesForNodeReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetInlineStylesForNode in the CSS domain.

type GetMatchedStylesForNodeArgs

type GetMatchedStylesForNodeArgs struct {
	NodeID dom.NodeID `json:"nodeId"` // No description.
}

GetMatchedStylesForNodeArgs represents the arguments for GetMatchedStylesForNode in the CSS domain.

func (*GetMatchedStylesForNodeArgs) MarshalJSON

func (a *GetMatchedStylesForNodeArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetMatchedStylesForNode in the CSS domain.

func (*GetMatchedStylesForNodeArgs) UnmarshalJSON

func (a *GetMatchedStylesForNodeArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetMatchedStylesForNode in the CSS domain.

type GetMatchedStylesForNodeReply

type GetMatchedStylesForNodeReply struct {
	InlineStyle       *Style                  `json:"inlineStyle,omitempty"`       // Inline style for the specified DOM node.
	AttributesStyle   *Style                  `json:"attributesStyle,omitempty"`   // Attribute-defined element style (e.g. resulting from "width=20 height=100%").
	MatchedCSSRules   *[]RuleMatch            `json:"matchedCSSRules,omitempty"`   // CSS rules matching this node, from all applicable stylesheets.
	PseudoElements    *[]PseudoElementMatches `json:"pseudoElements,omitempty"`    // Pseudo style matches for this node.
	Inherited         *[]InheritedStyleEntry  `json:"inherited,omitempty"`         // A chain of inherited styles (from the immediate node parent up to the DOM tree root).
	CSSKeyframesRules *[]KeyframesRule        `json:"cssKeyframesRules,omitempty"` // A list of CSS keyframed animations matching this node.
}

GetMatchedStylesForNodeReply represents the return values for GetMatchedStylesForNode in the CSS domain.

func (*GetMatchedStylesForNodeReply) GetFrameID

func (a *GetMatchedStylesForNodeReply) GetFrameID() string

GetMatchedStylesForNodeReply returns the FrameID value for GetMatchedStylesForNode in the CSS domain.

func (*GetMatchedStylesForNodeReply) MatchFrameID

func (a *GetMatchedStylesForNodeReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetMatchedStylesForNodeReply returns whether or not the FrameID matches the reply value for GetMatchedStylesForNode in the CSS domain.

func (*GetMatchedStylesForNodeReply) UnmarshalJSON

func (a *GetMatchedStylesForNodeReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetMatchedStylesForNode in the CSS domain.

type GetMediaQueriesArgs

type GetMediaQueriesArgs struct {
}

GetMediaQueriesArgs represents the arguments for GetMediaQueries in the CSS domain.

func (*GetMediaQueriesArgs) MarshalJSON

func (a *GetMediaQueriesArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetMediaQueries in the CSS domain.

func (*GetMediaQueriesArgs) UnmarshalJSON

func (a *GetMediaQueriesArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetMediaQueries in the CSS domain.

type GetMediaQueriesReply

type GetMediaQueriesReply struct {
	Medias []Media `json:"medias"` // No description.
}

GetMediaQueriesReply represents the return values for GetMediaQueries in the CSS domain.

func (*GetMediaQueriesReply) GetFrameID

func (a *GetMediaQueriesReply) GetFrameID() string

GetMediaQueriesReply returns the FrameID value for GetMediaQueries in the CSS domain.

func (*GetMediaQueriesReply) MatchFrameID

func (a *GetMediaQueriesReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetMediaQueriesReply returns whether or not the FrameID matches the reply value for GetMediaQueries in the CSS domain.

func (*GetMediaQueriesReply) UnmarshalJSON

func (a *GetMediaQueriesReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetMediaQueries in the CSS domain.

type GetPlatformFontsForNodeArgs

type GetPlatformFontsForNodeArgs struct {
	NodeID dom.NodeID `json:"nodeId"` // No description.
}

GetPlatformFontsForNodeArgs represents the arguments for GetPlatformFontsForNode in the CSS domain.

func (*GetPlatformFontsForNodeArgs) MarshalJSON

func (a *GetPlatformFontsForNodeArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetPlatformFontsForNode in the CSS domain.

func (*GetPlatformFontsForNodeArgs) UnmarshalJSON

func (a *GetPlatformFontsForNodeArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetPlatformFontsForNode in the CSS domain.

type GetPlatformFontsForNodeReply

type GetPlatformFontsForNodeReply struct {
	Fonts []PlatformFontUsage `json:"fonts"` // Usage statistics for every employed platform font.
}

GetPlatformFontsForNodeReply represents the return values for GetPlatformFontsForNode in the CSS domain.

func (*GetPlatformFontsForNodeReply) GetFrameID

func (a *GetPlatformFontsForNodeReply) GetFrameID() string

GetPlatformFontsForNodeReply returns the FrameID value for GetPlatformFontsForNode in the CSS domain.

func (*GetPlatformFontsForNodeReply) MatchFrameID

func (a *GetPlatformFontsForNodeReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetPlatformFontsForNodeReply returns whether or not the FrameID matches the reply value for GetPlatformFontsForNode in the CSS domain.

func (*GetPlatformFontsForNodeReply) UnmarshalJSON

func (a *GetPlatformFontsForNodeReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetPlatformFontsForNode in the CSS domain.

type GetStyleSheetTextArgs

type GetStyleSheetTextArgs struct {
	StyleSheetID StyleSheetID `json:"styleSheetId"` // No description.
}

GetStyleSheetTextArgs represents the arguments for GetStyleSheetText in the CSS domain.

func (*GetStyleSheetTextArgs) MarshalJSON

func (a *GetStyleSheetTextArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetStyleSheetText in the CSS domain.

func (*GetStyleSheetTextArgs) UnmarshalJSON

func (a *GetStyleSheetTextArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetStyleSheetText in the CSS domain.

type GetStyleSheetTextReply

type GetStyleSheetTextReply struct {
	Text string `json:"text"` // The stylesheet text.
}

GetStyleSheetTextReply represents the return values for GetStyleSheetText in the CSS domain.

func (*GetStyleSheetTextReply) GetFrameID

func (a *GetStyleSheetTextReply) GetFrameID() string

GetStyleSheetTextReply returns the FrameID value for GetStyleSheetText in the CSS domain.

func (*GetStyleSheetTextReply) MatchFrameID

func (a *GetStyleSheetTextReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetStyleSheetTextReply returns whether or not the FrameID matches the reply value for GetStyleSheetText in the CSS domain.

func (*GetStyleSheetTextReply) UnmarshalJSON

func (a *GetStyleSheetTextReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetStyleSheetText in the CSS domain.

type InheritedStyleEntry

type InheritedStyleEntry struct {
	InlineStyle     *Style      `json:"inlineStyle,omitempty"` // The ancestor node's inline style, if any, in the style inheritance chain.
	MatchedCSSRules []RuleMatch `json:"matchedCSSRules"`       // Matches of CSS rules matching the ancestor node in the style inheritance chain.
}

InheritedStyleEntry Inherited CSS rule collection from ancestor node.

type KeyframeRule

type KeyframeRule struct {
	StyleSheetID StyleSheetID     `json:"styleSheetId,omitempty"` // The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
	Origin       StyleSheetOrigin `json:"origin"`                 // Parent stylesheet's origin.
	KeyText      Value            `json:"keyText"`                // Associated key text.
	Style        Style            `json:"style"`                  // Associated style declaration.
}

KeyframeRule CSS keyframe rule representation.

type KeyframesRule

type KeyframesRule struct {
	AnimationName Value          `json:"animationName"` // Animation name.
	Keyframes     []KeyframeRule `json:"keyframes"`     // List of keyframes.
}

KeyframesRule CSS keyframes rule representation.

type Media

type Media struct {
	Text string `json:"text"` // Media query text.
	// Source 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.
	//
	// Values: "mediaRule", "importRule", "linkedSheet", "inlineSheet".
	Source       string        `json:"source"`
	SourceURL    string        `json:"sourceURL,omitempty"`    // URL of the document containing the media query description.
	Range        *SourceRange  `json:"range,omitempty"`        // The associated rule (@media or @import) header range in the enclosing stylesheet (if available).
	StyleSheetID StyleSheetID  `json:"styleSheetId,omitempty"` // Identifier of the stylesheet containing this object (if exists).
	MediaList    *[]MediaQuery `json:"mediaList,omitempty"`    // Array of media queries.
}

Media CSS media rule descriptor.

type MediaQuery

type MediaQuery struct {
	Expressions []MediaQueryExpression `json:"expressions"` // Array of media query expressions.
	Active      bool                   `json:"active"`      // Whether the media query condition is satisfied.
}

MediaQuery Media query descriptor.

type MediaQueryExpression

type MediaQueryExpression struct {
	Value          float64      `json:"value"`                    // Media query expression value.
	Unit           string       `json:"unit"`                     // Media query expression units.
	Feature        string       `json:"feature"`                  // Media query expression feature.
	ValueRange     *SourceRange `json:"valueRange,omitempty"`     // The associated range of the value text in the enclosing stylesheet (if available).
	ComputedLength float64      `json:"computedLength,omitempty"` // Computed length of media query expression (if applicable).
}

MediaQueryExpression Media query expression descriptor.

type MediaQueryResultChangedReply

type MediaQueryResultChangedReply struct {
}

MediaQueryResultChangedReply is the reply for MediaQueryResultChanged events.

func (*MediaQueryResultChangedReply) GetFrameID

func (a *MediaQueryResultChangedReply) GetFrameID() string

MediaQueryResultChangedReply returns the FrameID for MediaQueryResultChanged in the CSS domain.

func (*MediaQueryResultChangedReply) MatchFrameID

func (a *MediaQueryResultChangedReply) MatchFrameID(frameID string, m []byte) (bool, error)

MediaQueryResultChangedReply returns whether or not the FrameID matches the reply value for MediaQueryResultChanged in the CSS domain.

func (*MediaQueryResultChangedReply) UnmarshalJSON

func (a *MediaQueryResultChangedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for MediaQueryResultChanged in the CSS domain.

type PlatformFontUsage

type PlatformFontUsage struct {
	FamilyName   string  `json:"familyName"`   // Font's family name reported by platform.
	IsCustomFont bool    `json:"isCustomFont"` // Indicates if the font was downloaded or resolved locally.
	GlyphCount   float64 `json:"glyphCount"`   // Amount of glyphs that were rendered with this font.
}

PlatformFontUsage Information about amount of glyphs that were rendered with given font.

type Property

type Property struct {
	Name      string       `json:"name"`                // The property name.
	Value     string       `json:"value"`               // The property value.
	Important bool         `json:"important,omitempty"` // Whether the property has "!important" annotation (implies `false` if absent).
	Implicit  bool         `json:"implicit,omitempty"`  // Whether the property is implicit (implies `false` if absent).
	Text      string       `json:"text,omitempty"`      // The full property text as specified in the style.
	ParsedOk  bool         `json:"parsedOk,omitempty"`  // Whether the property is understood by the browser (implies `true` if absent).
	Disabled  bool         `json:"disabled,omitempty"`  // Whether the property is disabled by the user (present for source-based properties only).
	Range     *SourceRange `json:"range,omitempty"`     // The entire property range in the enclosing style declaration (if available).
}

Property CSS property declaration data.

type PseudoElementMatches

type PseudoElementMatches struct {
	PseudoType dom.PseudoType `json:"pseudoType"` // Pseudo element type.
	Matches    []RuleMatch    `json:"matches"`    // Matches of CSS rules applicable to the pseudo style.
}

PseudoElementMatches CSS rule collection for a single pseudo style.

type Rule

type Rule struct {
	StyleSheetID StyleSheetID     `json:"styleSheetId,omitempty"` // The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
	SelectorList SelectorList     `json:"selectorList"`           // Rule selector data.
	Origin       StyleSheetOrigin `json:"origin"`                 // Parent stylesheet's origin.
	Style        Style            `json:"style"`                  // Associated style declaration.
	Media        *[]Media         `json:"media,omitempty"`        // Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.
}

Rule CSS rule representation.

type RuleMatch

type RuleMatch struct {
	Rule              Rule  `json:"rule"`              // CSS rule in the match.
	MatchingSelectors []int `json:"matchingSelectors"` // Matching selector indices in the rule's selectorList selectors (0-based).
}

RuleMatch Match data for a CSS rule.

type RuleUsage

type RuleUsage struct {
	StyleSheetID StyleSheetID `json:"styleSheetId"` // The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
	StartOffset  float64      `json:"startOffset"`  // Offset of the start of the rule (including selector) from the beginning of the stylesheet.
	EndOffset    float64      `json:"endOffset"`    // Offset of the end of the rule body from the beginning of the stylesheet.
	Used         bool         `json:"used"`         // Indicates whether the rule was actually used by some element in the page.
}

RuleUsage CSS coverage information.

type SelectorList

type SelectorList struct {
	Selectors []Value `json:"selectors"` // Selectors in the list.
	Text      string  `json:"text"`      // Rule selector text.
}

SelectorList Selector list data.

type SetEffectivePropertyValueForNodeArgs

type SetEffectivePropertyValueForNodeArgs struct {
	NodeID       dom.NodeID `json:"nodeId"`       // The element id for which to set property.
	PropertyName string     `json:"propertyName"` // No description.
	Value        string     `json:"value"`        // No description.
}

SetEffectivePropertyValueForNodeArgs represents the arguments for SetEffectivePropertyValueForNode in the CSS domain.

func (*SetEffectivePropertyValueForNodeArgs) MarshalJSON

func (a *SetEffectivePropertyValueForNodeArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetEffectivePropertyValueForNode in the CSS domain.

func (*SetEffectivePropertyValueForNodeArgs) UnmarshalJSON

func (a *SetEffectivePropertyValueForNodeArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetEffectivePropertyValueForNode in the CSS domain.

type SetEffectivePropertyValueForNodeReply

type SetEffectivePropertyValueForNodeReply struct {
}

SetEffectivePropertyValueForNodeReply represents the return values for SetEffectivePropertyValueForNode in the CSS domain.

func (*SetEffectivePropertyValueForNodeReply) GetFrameID

SetEffectivePropertyValueForNodeReply returns the FrameID value for SetEffectivePropertyValueForNode in the CSS domain.

func (*SetEffectivePropertyValueForNodeReply) MatchFrameID

func (a *SetEffectivePropertyValueForNodeReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetEffectivePropertyValueForNodeReply returns whether or not the FrameID matches the reply value for SetEffectivePropertyValueForNode in the CSS domain.

func (*SetEffectivePropertyValueForNodeReply) UnmarshalJSON

func (a *SetEffectivePropertyValueForNodeReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetEffectivePropertyValueForNode in the CSS domain.

type SetKeyframeKeyArgs

type SetKeyframeKeyArgs struct {
	StyleSheetID StyleSheetID `json:"styleSheetId"` // No description.
	Range        SourceRange  `json:"range"`        // No description.
	KeyText      string       `json:"keyText"`      // No description.
}

SetKeyframeKeyArgs represents the arguments for SetKeyframeKey in the CSS domain.

func (*SetKeyframeKeyArgs) MarshalJSON

func (a *SetKeyframeKeyArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetKeyframeKey in the CSS domain.

func (*SetKeyframeKeyArgs) UnmarshalJSON

func (a *SetKeyframeKeyArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetKeyframeKey in the CSS domain.

type SetKeyframeKeyReply

type SetKeyframeKeyReply struct {
	KeyText Value `json:"keyText"` // The resulting key text after modification.
}

SetKeyframeKeyReply represents the return values for SetKeyframeKey in the CSS domain.

func (*SetKeyframeKeyReply) GetFrameID

func (a *SetKeyframeKeyReply) GetFrameID() string

SetKeyframeKeyReply returns the FrameID value for SetKeyframeKey in the CSS domain.

func (*SetKeyframeKeyReply) MatchFrameID

func (a *SetKeyframeKeyReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetKeyframeKeyReply returns whether or not the FrameID matches the reply value for SetKeyframeKey in the CSS domain.

func (*SetKeyframeKeyReply) UnmarshalJSON

func (a *SetKeyframeKeyReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetKeyframeKey in the CSS domain.

type SetMediaTextArgs

type SetMediaTextArgs struct {
	StyleSheetID StyleSheetID `json:"styleSheetId"` // No description.
	Range        SourceRange  `json:"range"`        // No description.
	Text         string       `json:"text"`         // No description.
}

SetMediaTextArgs represents the arguments for SetMediaText in the CSS domain.

func (*SetMediaTextArgs) MarshalJSON

func (a *SetMediaTextArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetMediaText in the CSS domain.

func (*SetMediaTextArgs) UnmarshalJSON

func (a *SetMediaTextArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetMediaText in the CSS domain.

type SetMediaTextReply

type SetMediaTextReply struct {
	Media Media `json:"media"` // The resulting CSS media rule after modification.
}

SetMediaTextReply represents the return values for SetMediaText in the CSS domain.

func (*SetMediaTextReply) GetFrameID

func (a *SetMediaTextReply) GetFrameID() string

SetMediaTextReply returns the FrameID value for SetMediaText in the CSS domain.

func (*SetMediaTextReply) MatchFrameID

func (a *SetMediaTextReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetMediaTextReply returns whether or not the FrameID matches the reply value for SetMediaText in the CSS domain.

func (*SetMediaTextReply) UnmarshalJSON

func (a *SetMediaTextReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetMediaText in the CSS domain.

type SetRuleSelectorArgs

type SetRuleSelectorArgs struct {
	StyleSheetID StyleSheetID `json:"styleSheetId"` // No description.
	Range        SourceRange  `json:"range"`        // No description.
	Selector     string       `json:"selector"`     // No description.
}

SetRuleSelectorArgs represents the arguments for SetRuleSelector in the CSS domain.

func (*SetRuleSelectorArgs) MarshalJSON

func (a *SetRuleSelectorArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetRuleSelector in the CSS domain.

func (*SetRuleSelectorArgs) UnmarshalJSON

func (a *SetRuleSelectorArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetRuleSelector in the CSS domain.

type SetRuleSelectorReply

type SetRuleSelectorReply struct {
	SelectorList SelectorList `json:"selectorList"` // The resulting selector list after modification.
}

SetRuleSelectorReply represents the return values for SetRuleSelector in the CSS domain.

func (*SetRuleSelectorReply) GetFrameID

func (a *SetRuleSelectorReply) GetFrameID() string

SetRuleSelectorReply returns the FrameID value for SetRuleSelector in the CSS domain.

func (*SetRuleSelectorReply) MatchFrameID

func (a *SetRuleSelectorReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetRuleSelectorReply returns whether or not the FrameID matches the reply value for SetRuleSelector in the CSS domain.

func (*SetRuleSelectorReply) UnmarshalJSON

func (a *SetRuleSelectorReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetRuleSelector in the CSS domain.

type SetStyleSheetTextArgs

type SetStyleSheetTextArgs struct {
	StyleSheetID StyleSheetID `json:"styleSheetId"` // No description.
	Text         string       `json:"text"`         // No description.
}

SetStyleSheetTextArgs represents the arguments for SetStyleSheetText in the CSS domain.

func (*SetStyleSheetTextArgs) MarshalJSON

func (a *SetStyleSheetTextArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetStyleSheetText in the CSS domain.

func (*SetStyleSheetTextArgs) UnmarshalJSON

func (a *SetStyleSheetTextArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetStyleSheetText in the CSS domain.

type SetStyleSheetTextReply

type SetStyleSheetTextReply struct {
	SourceMapURL string `json:"sourceMapURL,omitempty"` // URL of source map associated with script (if any).
}

SetStyleSheetTextReply represents the return values for SetStyleSheetText in the CSS domain.

func (*SetStyleSheetTextReply) GetFrameID

func (a *SetStyleSheetTextReply) GetFrameID() string

SetStyleSheetTextReply returns the FrameID value for SetStyleSheetText in the CSS domain.

func (*SetStyleSheetTextReply) MatchFrameID

func (a *SetStyleSheetTextReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetStyleSheetTextReply returns whether or not the FrameID matches the reply value for SetStyleSheetText in the CSS domain.

func (*SetStyleSheetTextReply) UnmarshalJSON

func (a *SetStyleSheetTextReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetStyleSheetText in the CSS domain.

type SetStyleTextsArgs

type SetStyleTextsArgs struct {
	Edits []StyleDeclarationEdit `json:"edits"` // No description.
}

SetStyleTextsArgs represents the arguments for SetStyleTexts in the CSS domain.

func (*SetStyleTextsArgs) MarshalJSON

func (a *SetStyleTextsArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetStyleTexts in the CSS domain.

func (*SetStyleTextsArgs) UnmarshalJSON

func (a *SetStyleTextsArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetStyleTexts in the CSS domain.

type SetStyleTextsReply

type SetStyleTextsReply struct {
	Styles []Style `json:"styles"` // The resulting styles after modification.
}

SetStyleTextsReply represents the return values for SetStyleTexts in the CSS domain.

func (*SetStyleTextsReply) GetFrameID

func (a *SetStyleTextsReply) GetFrameID() string

SetStyleTextsReply returns the FrameID value for SetStyleTexts in the CSS domain.

func (*SetStyleTextsReply) MatchFrameID

func (a *SetStyleTextsReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetStyleTextsReply returns whether or not the FrameID matches the reply value for SetStyleTexts in the CSS domain.

func (*SetStyleTextsReply) UnmarshalJSON

func (a *SetStyleTextsReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetStyleTexts in the CSS domain.

type ShorthandEntry

type ShorthandEntry struct {
	Name      string `json:"name"`                // Shorthand name.
	Value     string `json:"value"`               // Shorthand value.
	Important bool   `json:"important,omitempty"` // Whether the property has "!important" annotation (implies `false` if absent).
}

ShorthandEntry

type SourceRange

type SourceRange struct {
	StartLine   int `json:"startLine"`   // Start line of range.
	StartColumn int `json:"startColumn"` // Start column of range (inclusive).
	EndLine     int `json:"endLine"`     // End line of range
	EndColumn   int `json:"endColumn"`   // End column of range (exclusive).
}

SourceRange Text range within a resource. All numbers are zero-based.

type StartRuleUsageTrackingArgs

type StartRuleUsageTrackingArgs struct {
}

StartRuleUsageTrackingArgs represents the arguments for StartRuleUsageTracking in the CSS domain.

func (*StartRuleUsageTrackingArgs) MarshalJSON

func (a *StartRuleUsageTrackingArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for StartRuleUsageTracking in the CSS domain.

func (*StartRuleUsageTrackingArgs) UnmarshalJSON

func (a *StartRuleUsageTrackingArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for StartRuleUsageTracking in the CSS domain.

type StartRuleUsageTrackingReply

type StartRuleUsageTrackingReply struct {
}

StartRuleUsageTrackingReply represents the return values for StartRuleUsageTracking in the CSS domain.

func (*StartRuleUsageTrackingReply) GetFrameID

func (a *StartRuleUsageTrackingReply) GetFrameID() string

StartRuleUsageTrackingReply returns the FrameID value for StartRuleUsageTracking in the CSS domain.

func (*StartRuleUsageTrackingReply) MatchFrameID

func (a *StartRuleUsageTrackingReply) MatchFrameID(frameID string, m []byte) (bool, error)

StartRuleUsageTrackingReply returns whether or not the FrameID matches the reply value for StartRuleUsageTracking in the CSS domain.

func (*StartRuleUsageTrackingReply) UnmarshalJSON

func (a *StartRuleUsageTrackingReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for StartRuleUsageTracking in the CSS domain.

type StopRuleUsageTrackingArgs

type StopRuleUsageTrackingArgs struct {
}

StopRuleUsageTrackingArgs represents the arguments for StopRuleUsageTracking in the CSS domain.

func (*StopRuleUsageTrackingArgs) MarshalJSON

func (a *StopRuleUsageTrackingArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for StopRuleUsageTracking in the CSS domain.

func (*StopRuleUsageTrackingArgs) UnmarshalJSON

func (a *StopRuleUsageTrackingArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for StopRuleUsageTracking in the CSS domain.

type StopRuleUsageTrackingReply

type StopRuleUsageTrackingReply struct {
	RuleUsage []RuleUsage `json:"ruleUsage"` // No description.
}

StopRuleUsageTrackingReply represents the return values for StopRuleUsageTracking in the CSS domain.

func (*StopRuleUsageTrackingReply) GetFrameID

func (a *StopRuleUsageTrackingReply) GetFrameID() string

StopRuleUsageTrackingReply returns the FrameID value for StopRuleUsageTracking in the CSS domain.

func (*StopRuleUsageTrackingReply) MatchFrameID

func (a *StopRuleUsageTrackingReply) MatchFrameID(frameID string, m []byte) (bool, error)

StopRuleUsageTrackingReply returns whether or not the FrameID matches the reply value for StopRuleUsageTracking in the CSS domain.

func (*StopRuleUsageTrackingReply) UnmarshalJSON

func (a *StopRuleUsageTrackingReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for StopRuleUsageTracking in the CSS domain.

type Style

type Style struct {
	StyleSheetID     StyleSheetID     `json:"styleSheetId,omitempty"` // The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
	CSSProperties    []Property       `json:"cssProperties"`          // CSS properties in the style.
	ShorthandEntries []ShorthandEntry `json:"shorthandEntries"`       // Computed values for all shorthands found in the style.
	CSSText          string           `json:"cssText,omitempty"`      // Style declaration text (if available).
	Range            *SourceRange     `json:"range,omitempty"`        // Style declaration range in the enclosing stylesheet (if available).
}

Style CSS style representation.

type StyleDeclarationEdit

type StyleDeclarationEdit struct {
	StyleSheetID StyleSheetID `json:"styleSheetId"` // The css style sheet identifier.
	Range        SourceRange  `json:"range"`        // The range of the style text in the enclosing stylesheet.
	Text         string       `json:"text"`         // New style text.
}

StyleDeclarationEdit A descriptor of operation to mutate style declaration text.

type StyleSheetAddedReply

type StyleSheetAddedReply struct {
	Header StyleSheetHeader `json:"header"` // Added stylesheet metainfo.
}

StyleSheetAddedReply is the reply for StyleSheetAdded events.

func (*StyleSheetAddedReply) GetFrameID

func (a *StyleSheetAddedReply) GetFrameID() string

StyleSheetAddedReply returns the FrameID for StyleSheetAdded in the CSS domain.

func (*StyleSheetAddedReply) MatchFrameID

func (a *StyleSheetAddedReply) MatchFrameID(frameID string, m []byte) (bool, error)

StyleSheetAddedReply returns whether or not the FrameID matches the reply value for StyleSheetAdded in the CSS domain.

func (*StyleSheetAddedReply) UnmarshalJSON

func (a *StyleSheetAddedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for StyleSheetAdded in the CSS domain.

type StyleSheetChangedReply

type StyleSheetChangedReply struct {
	StyleSheetID StyleSheetID `json:"styleSheetId"` // No description.
}

StyleSheetChangedReply is the reply for StyleSheetChanged events.

func (*StyleSheetChangedReply) GetFrameID

func (a *StyleSheetChangedReply) GetFrameID() string

StyleSheetChangedReply returns the FrameID for StyleSheetChanged in the CSS domain.

func (*StyleSheetChangedReply) MatchFrameID

func (a *StyleSheetChangedReply) MatchFrameID(frameID string, m []byte) (bool, error)

StyleSheetChangedReply returns whether or not the FrameID matches the reply value for StyleSheetChanged in the CSS domain.

func (*StyleSheetChangedReply) UnmarshalJSON

func (a *StyleSheetChangedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for StyleSheetChanged in the CSS domain.

type StyleSheetHeader

type StyleSheetHeader struct {
	StyleSheetID StyleSheetID      `json:"styleSheetId"`           // The stylesheet identifier.
	FrameID      shared.FrameID    `json:"frameId"`                // Owner frame identifier.
	SourceURL    string            `json:"sourceURL"`              // Stylesheet resource URL.
	SourceMapURL string            `json:"sourceMapURL,omitempty"` // URL of source map associated with the stylesheet (if any).
	Origin       StyleSheetOrigin  `json:"origin"`                 // Stylesheet origin.
	Title        string            `json:"title"`                  // Stylesheet title.
	OwnerNode    dom.BackendNodeID `json:"ownerNode,omitempty"`    // The backend id for the owner node of the stylesheet.
	Disabled     bool              `json:"disabled"`               // Denotes whether the stylesheet is disabled.
	HasSourceURL bool              `json:"hasSourceURL,omitempty"` // Whether the sourceURL field value comes from the sourceURL comment.
	IsInline     bool              `json:"isInline"`               // Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.
	StartLine    float64           `json:"startLine"`              // Line offset of the stylesheet within the resource (zero based).
	StartColumn  float64           `json:"startColumn"`            // Column offset of the stylesheet within the resource (zero based).
	Length       float64           `json:"length"`                 // Size of the content (in characters).
	EndLine      float64           `json:"endLine"`                // Line offset of the end of the stylesheet within the resource (zero based).
	EndColumn    float64           `json:"endColumn"`              // Column offset of the end of the stylesheet within the resource (zero based).
}

StyleSheetHeader CSS stylesheet metainformation.

type StyleSheetID

type StyleSheetID string

StyleSheetID

type StyleSheetOrigin

type StyleSheetOrigin string

StyleSheetOrigin Stylesheet type: "injected" for stylesheets injected via extension, "user-agent" for user-agent stylesheets, "inspector" for stylesheets created by the inspector (i.e. those holding the "via inspector" rules), "regular" for regular stylesheets.

const (
	StyleSheetOriginNotSet    StyleSheetOrigin = ""
	StyleSheetOriginInjected  StyleSheetOrigin = "injected"
	StyleSheetOriginUserAgent StyleSheetOrigin = "user-agent"
	StyleSheetOriginInspector StyleSheetOrigin = "inspector"
	StyleSheetOriginRegular   StyleSheetOrigin = "regular"
)

StyleSheetOrigin as enums.

func (StyleSheetOrigin) String

func (e StyleSheetOrigin) String() string

func (StyleSheetOrigin) Valid

func (e StyleSheetOrigin) Valid() bool

type StyleSheetRemovedReply

type StyleSheetRemovedReply struct {
	StyleSheetID StyleSheetID `json:"styleSheetId"` // Identifier of the removed stylesheet.
}

StyleSheetRemovedReply is the reply for StyleSheetRemoved events.

func (*StyleSheetRemovedReply) GetFrameID

func (a *StyleSheetRemovedReply) GetFrameID() string

StyleSheetRemovedReply returns the FrameID for StyleSheetRemoved in the CSS domain.

func (*StyleSheetRemovedReply) MatchFrameID

func (a *StyleSheetRemovedReply) MatchFrameID(frameID string, m []byte) (bool, error)

StyleSheetRemovedReply returns whether or not the FrameID matches the reply value for StyleSheetRemoved in the CSS domain.

func (*StyleSheetRemovedReply) UnmarshalJSON

func (a *StyleSheetRemovedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for StyleSheetRemoved in the CSS domain.

type TakeCoverageDeltaArgs

type TakeCoverageDeltaArgs struct {
}

TakeCoverageDeltaArgs represents the arguments for TakeCoverageDelta in the CSS domain.

func (*TakeCoverageDeltaArgs) MarshalJSON

func (a *TakeCoverageDeltaArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for TakeCoverageDelta in the CSS domain.

func (*TakeCoverageDeltaArgs) UnmarshalJSON

func (a *TakeCoverageDeltaArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for TakeCoverageDelta in the CSS domain.

type TakeCoverageDeltaReply

type TakeCoverageDeltaReply struct {
	Coverage  []RuleUsage `json:"coverage"`  // No description.
	Timestamp float64     `json:"timestamp"` // Monotonically increasing time, in seconds.
}

TakeCoverageDeltaReply represents the return values for TakeCoverageDelta in the CSS domain.

func (*TakeCoverageDeltaReply) GetFrameID

func (a *TakeCoverageDeltaReply) GetFrameID() string

TakeCoverageDeltaReply returns the FrameID value for TakeCoverageDelta in the CSS domain.

func (*TakeCoverageDeltaReply) MatchFrameID

func (a *TakeCoverageDeltaReply) MatchFrameID(frameID string, m []byte) (bool, error)

TakeCoverageDeltaReply returns whether or not the FrameID matches the reply value for TakeCoverageDelta in the CSS domain.

func (*TakeCoverageDeltaReply) UnmarshalJSON

func (a *TakeCoverageDeltaReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for TakeCoverageDelta in the CSS domain.

type Unmarshaler

type Unmarshaler func() json.Unmarshaler

type Value

type Value struct {
	Text  string       `json:"text"`            // Value text.
	Range *SourceRange `json:"range,omitempty"` // Value range in the underlying resource (if available).
}

Value Data for a simple selector (these are delimited by commas in a selector list).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL