cdproto: github.com/chromedp/cdproto/css Index | Files

package css

import "github.com/chromedp/cdproto/css"

Package css provides the Chrome DevTools Protocol commands, types, and events for the CSS domain.

This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles) have an associated id used in subsequent operations on the related object. Each object type has a specific id structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the get*ForNode() calls (which accept a DOM node id). A client can also keep track of stylesheets via the styleSheetAdded/styleSheetRemoved events and subsequently load the required stylesheet contents using the getStyleSheet[Text]() methods.

Generated by the cdproto-gen command.

Index

Package Files

css.go easyjson.go events.go types.go

Constants

const (
    CommandAddRule                          = "CSS.addRule"
    CommandCollectClassNames                = "CSS.collectClassNames"
    CommandCreateStyleSheet                 = "CSS.createStyleSheet"
    CommandDisable                          = "CSS.disable"
    CommandEnable                           = "CSS.enable"
    CommandForcePseudoState                 = "CSS.forcePseudoState"
    CommandGetBackgroundColors              = "CSS.getBackgroundColors"
    CommandGetComputedStyleForNode          = "CSS.getComputedStyleForNode"
    CommandGetInlineStylesForNode           = "CSS.getInlineStylesForNode"
    CommandGetMatchedStylesForNode          = "CSS.getMatchedStylesForNode"
    CommandGetMediaQueries                  = "CSS.getMediaQueries"
    CommandGetPlatformFontsForNode          = "CSS.getPlatformFontsForNode"
    CommandGetStyleSheetText                = "CSS.getStyleSheetText"
    CommandTrackComputedStyleUpdates        = "CSS.trackComputedStyleUpdates"
    CommandTakeComputedStyleUpdates         = "CSS.takeComputedStyleUpdates"
    CommandSetEffectivePropertyValueForNode = "CSS.setEffectivePropertyValueForNode"
    CommandSetKeyframeKey                   = "CSS.setKeyframeKey"
    CommandSetMediaText                     = "CSS.setMediaText"
    CommandSetRuleSelector                  = "CSS.setRuleSelector"
    CommandSetStyleSheetText                = "CSS.setStyleSheetText"
    CommandSetStyleTexts                    = "CSS.setStyleTexts"
    CommandStartRuleUsageTracking           = "CSS.startRuleUsageTracking"
    CommandStopRuleUsageTracking            = "CSS.stopRuleUsageTracking"
    CommandTakeCoverageDelta                = "CSS.takeCoverageDelta"
    CommandSetLocalFontsEnabled             = "CSS.setLocalFontsEnabled"
)

Command names.

type AddRuleParams Uses

type AddRuleParams 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.
}

AddRuleParams inserts a new rule with the given ruleText in a stylesheet with given styleSheetId, at the position specified by location.

func AddRule Uses

func AddRule(styleSheetID StyleSheetID, ruleText string, location *SourceRange) *AddRuleParams

AddRule inserts a new rule with the given ruleText in a stylesheet with given styleSheetId, at the position specified by location.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-addRule

parameters:

styleSheetID - The css style sheet identifier where a new rule should be inserted.
ruleText - The text of a new rule.
location - Text position of a new rule in the target style sheet.

func (*AddRuleParams) Do Uses

func (p *AddRuleParams) Do(ctx context.Context) (rule *Rule, err error)

Do executes CSS.addRule against the provided context.

returns:

rule - The newly created rule.

func (AddRuleParams) MarshalEasyJSON Uses

func (v AddRuleParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AddRuleParams) MarshalJSON Uses

func (v AddRuleParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AddRuleParams) UnmarshalEasyJSON Uses

func (v *AddRuleParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AddRuleParams) UnmarshalJSON Uses

func (v *AddRuleParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AddRuleReturns Uses

type AddRuleReturns struct {
    Rule *Rule `json:"rule,omitempty"` // The newly created rule.
}

AddRuleReturns return values.

func (AddRuleReturns) MarshalEasyJSON Uses

func (v AddRuleReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AddRuleReturns) MarshalJSON Uses

func (v AddRuleReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AddRuleReturns) UnmarshalEasyJSON Uses

func (v *AddRuleReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AddRuleReturns) UnmarshalJSON Uses

func (v *AddRuleReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CollectClassNamesParams Uses

type CollectClassNamesParams struct {
    StyleSheetID StyleSheetID `json:"styleSheetId"`
}

CollectClassNamesParams returns all class names from specified stylesheet.

func CollectClassNames Uses

func CollectClassNames(styleSheetID StyleSheetID) *CollectClassNamesParams

CollectClassNames returns all class names from specified stylesheet.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-collectClassNames

parameters:

styleSheetID

func (*CollectClassNamesParams) Do Uses

func (p *CollectClassNamesParams) Do(ctx context.Context) (classNames []string, err error)

Do executes CSS.collectClassNames against the provided context.

returns:

classNames - Class name list.

func (CollectClassNamesParams) MarshalEasyJSON Uses

func (v CollectClassNamesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CollectClassNamesParams) MarshalJSON Uses

func (v CollectClassNamesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CollectClassNamesParams) UnmarshalEasyJSON Uses

func (v *CollectClassNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CollectClassNamesParams) UnmarshalJSON Uses

func (v *CollectClassNamesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CollectClassNamesReturns Uses

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

CollectClassNamesReturns return values.

func (CollectClassNamesReturns) MarshalEasyJSON Uses

func (v CollectClassNamesReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CollectClassNamesReturns) MarshalJSON Uses

func (v CollectClassNamesReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CollectClassNamesReturns) UnmarshalEasyJSON Uses

func (v *CollectClassNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CollectClassNamesReturns) UnmarshalJSON Uses

func (v *CollectClassNamesReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ComputedStyleProperty Uses

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

ComputedStyleProperty [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSComputedStyleProperty

func (ComputedStyleProperty) MarshalEasyJSON Uses

func (v ComputedStyleProperty) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ComputedStyleProperty) MarshalJSON Uses

func (v ComputedStyleProperty) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ComputedStyleProperty) UnmarshalEasyJSON Uses

func (v *ComputedStyleProperty) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ComputedStyleProperty) UnmarshalJSON Uses

func (v *ComputedStyleProperty) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CreateStyleSheetParams Uses

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

CreateStyleSheetParams creates a new special "via-inspector" stylesheet in the frame with given frameId.

func CreateStyleSheet Uses

func CreateStyleSheet(frameID cdp.FrameID) *CreateStyleSheetParams

CreateStyleSheet creates a new special "via-inspector" stylesheet in the frame with given frameId.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-createStyleSheet

parameters:

frameID - Identifier of the frame where "via-inspector" stylesheet should be created.

func (*CreateStyleSheetParams) Do Uses

func (p *CreateStyleSheetParams) Do(ctx context.Context) (styleSheetID StyleSheetID, err error)

Do executes CSS.createStyleSheet against the provided context.

returns:

styleSheetID - Identifier of the created "via-inspector" stylesheet.

func (CreateStyleSheetParams) MarshalEasyJSON Uses

func (v CreateStyleSheetParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CreateStyleSheetParams) MarshalJSON Uses

func (v CreateStyleSheetParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CreateStyleSheetParams) UnmarshalEasyJSON Uses

func (v *CreateStyleSheetParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CreateStyleSheetParams) UnmarshalJSON Uses

func (v *CreateStyleSheetParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CreateStyleSheetReturns Uses

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

CreateStyleSheetReturns return values.

func (CreateStyleSheetReturns) MarshalEasyJSON Uses

func (v CreateStyleSheetReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CreateStyleSheetReturns) MarshalJSON Uses

func (v CreateStyleSheetReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CreateStyleSheetReturns) UnmarshalEasyJSON Uses

func (v *CreateStyleSheetReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CreateStyleSheetReturns) UnmarshalJSON Uses

func (v *CreateStyleSheetReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams Uses

type DisableParams struct{}

DisableParams disables the CSS agent for the given page.

func Disable Uses

func Disable() *DisableParams

Disable disables the CSS agent for the given page.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-disable

func (*DisableParams) Do Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes CSS.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct{}

EnableParams enables the CSS agent for the given page. Clients should not assume that the CSS agent has been enabled until the result of this command is received.

func Enable Uses

func Enable() *EnableParams

Enable enables the CSS agent for the given page. Clients should not assume that the CSS agent has been enabled until the result of this command is received.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-enable

func (*EnableParams) Do Uses

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes CSS.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventFontsUpdated Uses

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

EventFontsUpdated fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded web font.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#event-fontsUpdated

func (EventFontsUpdated) MarshalEasyJSON Uses

func (v EventFontsUpdated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventFontsUpdated) MarshalJSON Uses

func (v EventFontsUpdated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventFontsUpdated) UnmarshalEasyJSON Uses

func (v *EventFontsUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventFontsUpdated) UnmarshalJSON Uses

func (v *EventFontsUpdated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventMediaQueryResultChanged Uses

type EventMediaQueryResultChanged struct{}

EventMediaQueryResultChanged fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#event-mediaQueryResultChanged

func (EventMediaQueryResultChanged) MarshalEasyJSON Uses

func (v EventMediaQueryResultChanged) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventMediaQueryResultChanged) MarshalJSON Uses

func (v EventMediaQueryResultChanged) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventMediaQueryResultChanged) UnmarshalEasyJSON Uses

func (v *EventMediaQueryResultChanged) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventMediaQueryResultChanged) UnmarshalJSON Uses

func (v *EventMediaQueryResultChanged) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventStyleSheetAdded Uses

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

EventStyleSheetAdded fired whenever an active document stylesheet is added.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#event-styleSheetAdded

func (EventStyleSheetAdded) MarshalEasyJSON Uses

func (v EventStyleSheetAdded) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventStyleSheetAdded) MarshalJSON Uses

func (v EventStyleSheetAdded) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventStyleSheetAdded) UnmarshalEasyJSON Uses

func (v *EventStyleSheetAdded) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventStyleSheetAdded) UnmarshalJSON Uses

func (v *EventStyleSheetAdded) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventStyleSheetChanged Uses

type EventStyleSheetChanged struct {
    StyleSheetID StyleSheetID `json:"styleSheetId"`
}

EventStyleSheetChanged fired whenever a stylesheet is changed as a result of the client operation.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#event-styleSheetChanged

func (EventStyleSheetChanged) MarshalEasyJSON Uses

func (v EventStyleSheetChanged) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventStyleSheetChanged) MarshalJSON Uses

func (v EventStyleSheetChanged) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventStyleSheetChanged) UnmarshalEasyJSON Uses

func (v *EventStyleSheetChanged) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventStyleSheetChanged) UnmarshalJSON Uses

func (v *EventStyleSheetChanged) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventStyleSheetRemoved Uses

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

EventStyleSheetRemoved fired whenever an active document stylesheet is removed.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#event-styleSheetRemoved

func (EventStyleSheetRemoved) MarshalEasyJSON Uses

func (v EventStyleSheetRemoved) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventStyleSheetRemoved) MarshalJSON Uses

func (v EventStyleSheetRemoved) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventStyleSheetRemoved) UnmarshalEasyJSON Uses

func (v *EventStyleSheetRemoved) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventStyleSheetRemoved) UnmarshalJSON Uses

func (v *EventStyleSheetRemoved) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FontFace Uses

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
    FontVariationAxes  []*FontVariationAxis `json:"fontVariationAxes,omitempty"` // Available variation settings (a.k.a. "axes").
}

FontFace properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-FontFace

func (FontFace) MarshalEasyJSON Uses

func (v FontFace) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FontFace) MarshalJSON Uses

func (v FontFace) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FontFace) UnmarshalEasyJSON Uses

func (v *FontFace) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FontFace) UnmarshalJSON Uses

func (v *FontFace) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FontVariationAxis Uses

type FontVariationAxis struct {
    Tag          string  `json:"tag"`          // The font-variation-setting tag (a.k.a. "axis tag").
    Name         string  `json:"name"`         // Human-readable variation name in the default language (normally, "en").
    MinValue     float64 `json:"minValue"`     // The minimum value (inclusive) the font supports for this tag.
    MaxValue     float64 `json:"maxValue"`     // The maximum value (inclusive) the font supports for this tag.
    DefaultValue float64 `json:"defaultValue"` // The default value.
}

FontVariationAxis information about font variation axes for variable fonts.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-FontVariationAxis

func (FontVariationAxis) MarshalEasyJSON Uses

func (v FontVariationAxis) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FontVariationAxis) MarshalJSON Uses

func (v FontVariationAxis) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FontVariationAxis) UnmarshalEasyJSON Uses

func (v *FontVariationAxis) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FontVariationAxis) UnmarshalJSON Uses

func (v *FontVariationAxis) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ForcePseudoStateParams Uses

type ForcePseudoStateParams struct {
    NodeID              cdp.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.
}

ForcePseudoStateParams ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.

func ForcePseudoState Uses

func ForcePseudoState(nodeID cdp.NodeID, forcedPseudoClasses []string) *ForcePseudoStateParams

ForcePseudoState ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-forcePseudoState

parameters:

nodeID - The element id for which to force the pseudo state.
forcedPseudoClasses - Element pseudo classes to force when computing the element's style.

func (*ForcePseudoStateParams) Do Uses

func (p *ForcePseudoStateParams) Do(ctx context.Context) (err error)

Do executes CSS.forcePseudoState against the provided context.

func (ForcePseudoStateParams) MarshalEasyJSON Uses

func (v ForcePseudoStateParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ForcePseudoStateParams) MarshalJSON Uses

func (v ForcePseudoStateParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ForcePseudoStateParams) UnmarshalEasyJSON Uses

func (v *ForcePseudoStateParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ForcePseudoStateParams) UnmarshalJSON Uses

func (v *ForcePseudoStateParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetBackgroundColorsParams Uses

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

GetBackgroundColorsParams [no description].

func GetBackgroundColors Uses

func GetBackgroundColors(nodeID cdp.NodeID) *GetBackgroundColorsParams

GetBackgroundColors [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getBackgroundColors

parameters:

nodeID - Id of the node to get background colors for.

func (*GetBackgroundColorsParams) Do Uses

func (p *GetBackgroundColorsParams) Do(ctx context.Context) (backgroundColors []string, computedFontSize string, computedFontWeight string, err error)

Do executes CSS.getBackgroundColors against the provided context.

returns:

backgroundColors - 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 - The computed font size for this node, as a CSS computed value string (e.g. '12px').
computedFontWeight - The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100').

func (GetBackgroundColorsParams) MarshalEasyJSON Uses

func (v GetBackgroundColorsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetBackgroundColorsParams) MarshalJSON Uses

func (v GetBackgroundColorsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetBackgroundColorsParams) UnmarshalEasyJSON Uses

func (v *GetBackgroundColorsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetBackgroundColorsParams) UnmarshalJSON Uses

func (v *GetBackgroundColorsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetBackgroundColorsReturns Uses

type GetBackgroundColorsReturns 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').
}

GetBackgroundColorsReturns return values.

func (GetBackgroundColorsReturns) MarshalEasyJSON Uses

func (v GetBackgroundColorsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetBackgroundColorsReturns) MarshalJSON Uses

func (v GetBackgroundColorsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetBackgroundColorsReturns) UnmarshalEasyJSON Uses

func (v *GetBackgroundColorsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetBackgroundColorsReturns) UnmarshalJSON Uses

func (v *GetBackgroundColorsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetComputedStyleForNodeParams Uses

type GetComputedStyleForNodeParams struct {
    NodeID cdp.NodeID `json:"nodeId"`
}

GetComputedStyleForNodeParams returns the computed style for a DOM node identified by nodeId.

func GetComputedStyleForNode Uses

func GetComputedStyleForNode(nodeID cdp.NodeID) *GetComputedStyleForNodeParams

GetComputedStyleForNode returns the computed style for a DOM node identified by nodeId.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getComputedStyleForNode

parameters:

nodeID

func (*GetComputedStyleForNodeParams) Do Uses

func (p *GetComputedStyleForNodeParams) Do(ctx context.Context) (computedStyle []*ComputedStyleProperty, err error)

Do executes CSS.getComputedStyleForNode against the provided context.

returns:

computedStyle - Computed style for the specified DOM node.

func (GetComputedStyleForNodeParams) MarshalEasyJSON Uses

func (v GetComputedStyleForNodeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetComputedStyleForNodeParams) MarshalJSON Uses

func (v GetComputedStyleForNodeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetComputedStyleForNodeParams) UnmarshalEasyJSON Uses

func (v *GetComputedStyleForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetComputedStyleForNodeParams) UnmarshalJSON Uses

func (v *GetComputedStyleForNodeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetComputedStyleForNodeReturns Uses

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

GetComputedStyleForNodeReturns return values.

func (GetComputedStyleForNodeReturns) MarshalEasyJSON Uses

func (v GetComputedStyleForNodeReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetComputedStyleForNodeReturns) MarshalJSON Uses

func (v GetComputedStyleForNodeReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetComputedStyleForNodeReturns) UnmarshalEasyJSON Uses

func (v *GetComputedStyleForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetComputedStyleForNodeReturns) UnmarshalJSON Uses

func (v *GetComputedStyleForNodeReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetInlineStylesForNodeParams Uses

type GetInlineStylesForNodeParams struct {
    NodeID cdp.NodeID `json:"nodeId"`
}

GetInlineStylesForNodeParams returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM attributes) for a DOM node identified by nodeId.

func GetInlineStylesForNode Uses

func GetInlineStylesForNode(nodeID cdp.NodeID) *GetInlineStylesForNodeParams

GetInlineStylesForNode returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM attributes) for a DOM node identified by nodeId.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getInlineStylesForNode

parameters:

nodeID

func (*GetInlineStylesForNodeParams) Do Uses

func (p *GetInlineStylesForNodeParams) Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, err error)

Do executes CSS.getInlineStylesForNode against the provided context.

returns:

inlineStyle - Inline style for the specified DOM node.
attributesStyle - Attribute-defined element style (e.g. resulting from "width=20 height=100%").

func (GetInlineStylesForNodeParams) MarshalEasyJSON Uses

func (v GetInlineStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetInlineStylesForNodeParams) MarshalJSON Uses

func (v GetInlineStylesForNodeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetInlineStylesForNodeParams) UnmarshalEasyJSON Uses

func (v *GetInlineStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetInlineStylesForNodeParams) UnmarshalJSON Uses

func (v *GetInlineStylesForNodeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetInlineStylesForNodeReturns Uses

type GetInlineStylesForNodeReturns 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%").
}

GetInlineStylesForNodeReturns return values.

func (GetInlineStylesForNodeReturns) MarshalEasyJSON Uses

func (v GetInlineStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetInlineStylesForNodeReturns) MarshalJSON Uses

func (v GetInlineStylesForNodeReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetInlineStylesForNodeReturns) UnmarshalEasyJSON Uses

func (v *GetInlineStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetInlineStylesForNodeReturns) UnmarshalJSON Uses

func (v *GetInlineStylesForNodeReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetMatchedStylesForNodeParams Uses

type GetMatchedStylesForNodeParams struct {
    NodeID cdp.NodeID `json:"nodeId"`
}

GetMatchedStylesForNodeParams returns requested styles for a DOM node identified by nodeId.

func GetMatchedStylesForNode Uses

func GetMatchedStylesForNode(nodeID cdp.NodeID) *GetMatchedStylesForNodeParams

GetMatchedStylesForNode returns requested styles for a DOM node identified by nodeId.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getMatchedStylesForNode

parameters:

nodeID

func (*GetMatchedStylesForNodeParams) Do Uses

func (p *GetMatchedStylesForNodeParams) Do(ctx context.Context) (inlineStyle *Style, attributesStyle *Style, matchedCSSRules []*RuleMatch, pseudoElements []*PseudoElementMatches, inherited []*InheritedStyleEntry, cssKeyframesRules []*KeyframesRule, err error)

Do executes CSS.getMatchedStylesForNode against the provided context.

returns:

inlineStyle - Inline style for the specified DOM node.
attributesStyle - Attribute-defined element style (e.g. resulting from "width=20 height=100%").
matchedCSSRules - CSS rules matching this node, from all applicable stylesheets.
pseudoElements - Pseudo style matches for this node.
inherited - A chain of inherited styles (from the immediate node parent up to the DOM tree root).
cssKeyframesRules - A list of CSS keyframed animations matching this node.

func (GetMatchedStylesForNodeParams) MarshalEasyJSON Uses

func (v GetMatchedStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetMatchedStylesForNodeParams) MarshalJSON Uses

func (v GetMatchedStylesForNodeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetMatchedStylesForNodeParams) UnmarshalEasyJSON Uses

func (v *GetMatchedStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetMatchedStylesForNodeParams) UnmarshalJSON Uses

func (v *GetMatchedStylesForNodeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetMatchedStylesForNodeReturns Uses

type GetMatchedStylesForNodeReturns 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.
}

GetMatchedStylesForNodeReturns return values.

func (GetMatchedStylesForNodeReturns) MarshalEasyJSON Uses

func (v GetMatchedStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetMatchedStylesForNodeReturns) MarshalJSON Uses

func (v GetMatchedStylesForNodeReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetMatchedStylesForNodeReturns) UnmarshalEasyJSON Uses

func (v *GetMatchedStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetMatchedStylesForNodeReturns) UnmarshalJSON Uses

func (v *GetMatchedStylesForNodeReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetMediaQueriesParams Uses

type GetMediaQueriesParams struct{}

GetMediaQueriesParams returns all media queries parsed by the rendering engine.

func GetMediaQueries Uses

func GetMediaQueries() *GetMediaQueriesParams

GetMediaQueries returns all media queries parsed by the rendering engine.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getMediaQueries

func (*GetMediaQueriesParams) Do Uses

func (p *GetMediaQueriesParams) Do(ctx context.Context) (medias []*Media, err error)

Do executes CSS.getMediaQueries against the provided context.

returns:

medias

func (GetMediaQueriesParams) MarshalEasyJSON Uses

func (v GetMediaQueriesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetMediaQueriesParams) MarshalJSON Uses

func (v GetMediaQueriesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetMediaQueriesParams) UnmarshalEasyJSON Uses

func (v *GetMediaQueriesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetMediaQueriesParams) UnmarshalJSON Uses

func (v *GetMediaQueriesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetMediaQueriesReturns Uses

type GetMediaQueriesReturns struct {
    Medias []*Media `json:"medias,omitempty"`
}

GetMediaQueriesReturns return values.

func (GetMediaQueriesReturns) MarshalEasyJSON Uses

func (v GetMediaQueriesReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetMediaQueriesReturns) MarshalJSON Uses

func (v GetMediaQueriesReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetMediaQueriesReturns) UnmarshalEasyJSON Uses

func (v *GetMediaQueriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetMediaQueriesReturns) UnmarshalJSON Uses

func (v *GetMediaQueriesReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetPlatformFontsForNodeParams Uses

type GetPlatformFontsForNodeParams struct {
    NodeID cdp.NodeID `json:"nodeId"`
}

GetPlatformFontsForNodeParams requests information about platform fonts which we used to render child TextNodes in the given node.

func GetPlatformFontsForNode Uses

func GetPlatformFontsForNode(nodeID cdp.NodeID) *GetPlatformFontsForNodeParams

GetPlatformFontsForNode requests information about platform fonts which we used to render child TextNodes in the given node.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getPlatformFontsForNode

parameters:

nodeID

func (*GetPlatformFontsForNodeParams) Do Uses

func (p *GetPlatformFontsForNodeParams) Do(ctx context.Context) (fonts []*PlatformFontUsage, err error)

Do executes CSS.getPlatformFontsForNode against the provided context.

returns:

fonts - Usage statistics for every employed platform font.

func (GetPlatformFontsForNodeParams) MarshalEasyJSON Uses

func (v GetPlatformFontsForNodeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPlatformFontsForNodeParams) MarshalJSON Uses

func (v GetPlatformFontsForNodeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetPlatformFontsForNodeParams) UnmarshalEasyJSON Uses

func (v *GetPlatformFontsForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPlatformFontsForNodeParams) UnmarshalJSON Uses

func (v *GetPlatformFontsForNodeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetPlatformFontsForNodeReturns Uses

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

GetPlatformFontsForNodeReturns return values.

func (GetPlatformFontsForNodeReturns) MarshalEasyJSON Uses

func (v GetPlatformFontsForNodeReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPlatformFontsForNodeReturns) MarshalJSON Uses

func (v GetPlatformFontsForNodeReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetPlatformFontsForNodeReturns) UnmarshalEasyJSON Uses

func (v *GetPlatformFontsForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPlatformFontsForNodeReturns) UnmarshalJSON Uses

func (v *GetPlatformFontsForNodeReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetStyleSheetTextParams Uses

type GetStyleSheetTextParams struct {
    StyleSheetID StyleSheetID `json:"styleSheetId"`
}

GetStyleSheetTextParams returns the current textual content for a stylesheet.

func GetStyleSheetText Uses

func GetStyleSheetText(styleSheetID StyleSheetID) *GetStyleSheetTextParams

GetStyleSheetText returns the current textual content for a stylesheet.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-getStyleSheetText

parameters:

styleSheetID

func (*GetStyleSheetTextParams) Do Uses

func (p *GetStyleSheetTextParams) Do(ctx context.Context) (text string, err error)

Do executes CSS.getStyleSheetText against the provided context.

returns:

text - The stylesheet text.

func (GetStyleSheetTextParams) MarshalEasyJSON Uses

func (v GetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetStyleSheetTextParams) MarshalJSON Uses

func (v GetStyleSheetTextParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetStyleSheetTextParams) UnmarshalEasyJSON Uses

func (v *GetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetStyleSheetTextParams) UnmarshalJSON Uses

func (v *GetStyleSheetTextParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetStyleSheetTextReturns Uses

type GetStyleSheetTextReturns struct {
    Text string `json:"text,omitempty"` // The stylesheet text.
}

GetStyleSheetTextReturns return values.

func (GetStyleSheetTextReturns) MarshalEasyJSON Uses

func (v GetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetStyleSheetTextReturns) MarshalJSON Uses

func (v GetStyleSheetTextReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetStyleSheetTextReturns) UnmarshalEasyJSON Uses

func (v *GetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetStyleSheetTextReturns) UnmarshalJSON Uses

func (v *GetStyleSheetTextReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type InheritedStyleEntry Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-InheritedStyleEntry

func (InheritedStyleEntry) MarshalEasyJSON Uses

func (v InheritedStyleEntry) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (InheritedStyleEntry) MarshalJSON Uses

func (v InheritedStyleEntry) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*InheritedStyleEntry) UnmarshalEasyJSON Uses

func (v *InheritedStyleEntry) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*InheritedStyleEntry) UnmarshalJSON Uses

func (v *InheritedStyleEntry) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type KeyframeRule Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSKeyframeRule

func (KeyframeRule) MarshalEasyJSON Uses

func (v KeyframeRule) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (KeyframeRule) MarshalJSON Uses

func (v KeyframeRule) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*KeyframeRule) UnmarshalEasyJSON Uses

func (v *KeyframeRule) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*KeyframeRule) UnmarshalJSON Uses

func (v *KeyframeRule) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type KeyframesRule Uses

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

KeyframesRule CSS keyframes rule representation.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSKeyframesRule

func (KeyframesRule) MarshalEasyJSON Uses

func (v KeyframesRule) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (KeyframesRule) MarshalJSON Uses

func (v KeyframesRule) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*KeyframesRule) UnmarshalEasyJSON Uses

func (v *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*KeyframesRule) UnmarshalJSON Uses

func (v *KeyframesRule) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Media Uses

type Media struct {
    Text         string        `json:"text"`                   // Media query text.
    Source       MediaSource   `json:"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.
    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.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSMedia

func (Media) MarshalEasyJSON Uses

func (v Media) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Media) MarshalJSON Uses

func (v Media) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Media) UnmarshalEasyJSON Uses

func (v *Media) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Media) UnmarshalJSON Uses

func (v *Media) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MediaQuery Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-MediaQuery

func (MediaQuery) MarshalEasyJSON Uses

func (v MediaQuery) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MediaQuery) MarshalJSON Uses

func (v MediaQuery) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MediaQuery) UnmarshalEasyJSON Uses

func (v *MediaQuery) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MediaQuery) UnmarshalJSON Uses

func (v *MediaQuery) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MediaQueryExpression Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-MediaQueryExpression

func (MediaQueryExpression) MarshalEasyJSON Uses

func (v MediaQueryExpression) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MediaQueryExpression) MarshalJSON Uses

func (v MediaQueryExpression) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MediaQueryExpression) UnmarshalEasyJSON Uses

func (v *MediaQueryExpression) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MediaQueryExpression) UnmarshalJSON Uses

func (v *MediaQueryExpression) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MediaSource Uses

type MediaSource string

MediaSource 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.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSMedia

const (
    MediaSourceMediaRule   MediaSource = "mediaRule"
    MediaSourceImportRule  MediaSource = "importRule"
    MediaSourceLinkedSheet MediaSource = "linkedSheet"
    MediaSourceInlineSheet MediaSource = "inlineSheet"
)

MediaSource values.

func (MediaSource) MarshalEasyJSON Uses

func (t MediaSource) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (MediaSource) MarshalJSON Uses

func (t MediaSource) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (MediaSource) String Uses

func (t MediaSource) String() string

String returns the MediaSource as string value.

func (*MediaSource) UnmarshalEasyJSON Uses

func (t *MediaSource) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*MediaSource) UnmarshalJSON Uses

func (t *MediaSource) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type PlatformFontUsage Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-PlatformFontUsage

func (PlatformFontUsage) MarshalEasyJSON Uses

func (v PlatformFontUsage) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PlatformFontUsage) MarshalJSON Uses

func (v PlatformFontUsage) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PlatformFontUsage) UnmarshalEasyJSON Uses

func (v *PlatformFontUsage) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PlatformFontUsage) UnmarshalJSON Uses

func (v *PlatformFontUsage) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Property Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSProperty

func (Property) MarshalEasyJSON Uses

func (v Property) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Property) MarshalJSON Uses

func (v Property) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Property) UnmarshalEasyJSON Uses

func (v *Property) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Property) UnmarshalJSON Uses

func (v *Property) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PseudoElementMatches Uses

type PseudoElementMatches struct {
    PseudoType cdp.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.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-PseudoElementMatches

func (PseudoElementMatches) MarshalEasyJSON Uses

func (v PseudoElementMatches) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PseudoElementMatches) MarshalJSON Uses

func (v PseudoElementMatches) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PseudoElementMatches) UnmarshalEasyJSON Uses

func (v *PseudoElementMatches) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PseudoElementMatches) UnmarshalJSON Uses

func (v *PseudoElementMatches) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Rule Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSRule

func (Rule) MarshalEasyJSON Uses

func (v Rule) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Rule) MarshalJSON Uses

func (v Rule) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Rule) UnmarshalEasyJSON Uses

func (v *Rule) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Rule) UnmarshalJSON Uses

func (v *Rule) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RuleMatch Uses

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

RuleMatch match data for a CSS rule.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-RuleMatch

func (RuleMatch) MarshalEasyJSON Uses

func (v RuleMatch) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RuleMatch) MarshalJSON Uses

func (v RuleMatch) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RuleMatch) UnmarshalEasyJSON Uses

func (v *RuleMatch) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RuleMatch) UnmarshalJSON Uses

func (v *RuleMatch) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RuleUsage Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-RuleUsage

func (RuleUsage) MarshalEasyJSON Uses

func (v RuleUsage) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RuleUsage) MarshalJSON Uses

func (v RuleUsage) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RuleUsage) UnmarshalEasyJSON Uses

func (v *RuleUsage) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RuleUsage) UnmarshalJSON Uses

func (v *RuleUsage) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SelectorList Uses

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

SelectorList selector list data.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-SelectorList

func (SelectorList) MarshalEasyJSON Uses

func (v SelectorList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SelectorList) MarshalJSON Uses

func (v SelectorList) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SelectorList) UnmarshalEasyJSON Uses

func (v *SelectorList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SelectorList) UnmarshalJSON Uses

func (v *SelectorList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetEffectivePropertyValueForNodeParams Uses

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

SetEffectivePropertyValueForNodeParams find a rule with the given active property for the given node and set the new value for this property.

func SetEffectivePropertyValueForNode Uses

func SetEffectivePropertyValueForNode(nodeID cdp.NodeID, propertyName string, value string) *SetEffectivePropertyValueForNodeParams

SetEffectivePropertyValueForNode find a rule with the given active property for the given node and set the new value for this property.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setEffectivePropertyValueForNode

parameters:

nodeID - The element id for which to set property.
propertyName
value

func (*SetEffectivePropertyValueForNodeParams) Do Uses

func (p *SetEffectivePropertyValueForNodeParams) Do(ctx context.Context) (err error)

Do executes CSS.setEffectivePropertyValueForNode against the provided context.

func (SetEffectivePropertyValueForNodeParams) MarshalEasyJSON Uses

func (v SetEffectivePropertyValueForNodeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetEffectivePropertyValueForNodeParams) MarshalJSON Uses

func (v SetEffectivePropertyValueForNodeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetEffectivePropertyValueForNodeParams) UnmarshalEasyJSON Uses

func (v *SetEffectivePropertyValueForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetEffectivePropertyValueForNodeParams) UnmarshalJSON Uses

func (v *SetEffectivePropertyValueForNodeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetKeyframeKeyParams Uses

type SetKeyframeKeyParams struct {
    StyleSheetID StyleSheetID `json:"styleSheetId"`
    Range        *SourceRange `json:"range"`
    KeyText      string       `json:"keyText"`
}

SetKeyframeKeyParams modifies the keyframe rule key text.

func SetKeyframeKey Uses

func SetKeyframeKey(styleSheetID StyleSheetID, rangeVal *SourceRange, keyText string) *SetKeyframeKeyParams

SetKeyframeKey modifies the keyframe rule key text.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setKeyframeKey

parameters:

styleSheetID
range
keyText

func (*SetKeyframeKeyParams) Do Uses

func (p *SetKeyframeKeyParams) Do(ctx context.Context) (keyText *Value, err error)

Do executes CSS.setKeyframeKey against the provided context.

returns:

keyText - The resulting key text after modification.

func (SetKeyframeKeyParams) MarshalEasyJSON Uses

func (v SetKeyframeKeyParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetKeyframeKeyParams) MarshalJSON Uses

func (v SetKeyframeKeyParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetKeyframeKeyParams) UnmarshalEasyJSON Uses

func (v *SetKeyframeKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetKeyframeKeyParams) UnmarshalJSON Uses

func (v *SetKeyframeKeyParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetKeyframeKeyReturns Uses

type SetKeyframeKeyReturns struct {
    KeyText *Value `json:"keyText,omitempty"` // The resulting key text after modification.
}

SetKeyframeKeyReturns return values.

func (SetKeyframeKeyReturns) MarshalEasyJSON Uses

func (v SetKeyframeKeyReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetKeyframeKeyReturns) MarshalJSON Uses

func (v SetKeyframeKeyReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetKeyframeKeyReturns) UnmarshalEasyJSON Uses

func (v *SetKeyframeKeyReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetKeyframeKeyReturns) UnmarshalJSON Uses

func (v *SetKeyframeKeyReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetLocalFontsEnabledParams Uses

type SetLocalFontsEnabledParams struct {
    Enabled bool `json:"enabled"` // Whether rendering of local fonts is enabled.
}

SetLocalFontsEnabledParams enables/disables rendering of local CSS fonts (enabled by default).

func SetLocalFontsEnabled Uses

func SetLocalFontsEnabled(enabled bool) *SetLocalFontsEnabledParams

SetLocalFontsEnabled enables/disables rendering of local CSS fonts (enabled by default).

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setLocalFontsEnabled

parameters:

enabled - Whether rendering of local fonts is enabled.

func (*SetLocalFontsEnabledParams) Do Uses

func (p *SetLocalFontsEnabledParams) Do(ctx context.Context) (err error)

Do executes CSS.setLocalFontsEnabled against the provided context.

func (SetLocalFontsEnabledParams) MarshalEasyJSON Uses

func (v SetLocalFontsEnabledParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetLocalFontsEnabledParams) MarshalJSON Uses

func (v SetLocalFontsEnabledParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetLocalFontsEnabledParams) UnmarshalEasyJSON Uses

func (v *SetLocalFontsEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetLocalFontsEnabledParams) UnmarshalJSON Uses

func (v *SetLocalFontsEnabledParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetMediaTextParams Uses

type SetMediaTextParams struct {
    StyleSheetID StyleSheetID `json:"styleSheetId"`
    Range        *SourceRange `json:"range"`
    Text         string       `json:"text"`
}

SetMediaTextParams modifies the rule selector.

func SetMediaText Uses

func SetMediaText(styleSheetID StyleSheetID, rangeVal *SourceRange, text string) *SetMediaTextParams

SetMediaText modifies the rule selector.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setMediaText

parameters:

styleSheetID
range
text

func (*SetMediaTextParams) Do Uses

func (p *SetMediaTextParams) Do(ctx context.Context) (media *Media, err error)

Do executes CSS.setMediaText against the provided context.

returns:

media - The resulting CSS media rule after modification.

func (SetMediaTextParams) MarshalEasyJSON Uses

func (v SetMediaTextParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetMediaTextParams) MarshalJSON Uses

func (v SetMediaTextParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetMediaTextParams) UnmarshalEasyJSON Uses

func (v *SetMediaTextParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetMediaTextParams) UnmarshalJSON Uses

func (v *SetMediaTextParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetMediaTextReturns Uses

type SetMediaTextReturns struct {
    Media *Media `json:"media,omitempty"` // The resulting CSS media rule after modification.
}

SetMediaTextReturns return values.

func (SetMediaTextReturns) MarshalEasyJSON Uses

func (v SetMediaTextReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetMediaTextReturns) MarshalJSON Uses

func (v SetMediaTextReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetMediaTextReturns) UnmarshalEasyJSON Uses

func (v *SetMediaTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetMediaTextReturns) UnmarshalJSON Uses

func (v *SetMediaTextReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetRuleSelectorParams Uses

type SetRuleSelectorParams struct {
    StyleSheetID StyleSheetID `json:"styleSheetId"`
    Range        *SourceRange `json:"range"`
    Selector     string       `json:"selector"`
}

SetRuleSelectorParams modifies the rule selector.

func SetRuleSelector Uses

func SetRuleSelector(styleSheetID StyleSheetID, rangeVal *SourceRange, selector string) *SetRuleSelectorParams

SetRuleSelector modifies the rule selector.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setRuleSelector

parameters:

styleSheetID
range
selector

func (*SetRuleSelectorParams) Do Uses

func (p *SetRuleSelectorParams) Do(ctx context.Context) (selectorList *SelectorList, err error)

Do executes CSS.setRuleSelector against the provided context.

returns:

selectorList - The resulting selector list after modification.

func (SetRuleSelectorParams) MarshalEasyJSON Uses

func (v SetRuleSelectorParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetRuleSelectorParams) MarshalJSON Uses

func (v SetRuleSelectorParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetRuleSelectorParams) UnmarshalEasyJSON Uses

func (v *SetRuleSelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetRuleSelectorParams) UnmarshalJSON Uses

func (v *SetRuleSelectorParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetRuleSelectorReturns Uses

type SetRuleSelectorReturns struct {
    SelectorList *SelectorList `json:"selectorList,omitempty"` // The resulting selector list after modification.
}

SetRuleSelectorReturns return values.

func (SetRuleSelectorReturns) MarshalEasyJSON Uses

func (v SetRuleSelectorReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetRuleSelectorReturns) MarshalJSON Uses

func (v SetRuleSelectorReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetRuleSelectorReturns) UnmarshalEasyJSON Uses

func (v *SetRuleSelectorReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetRuleSelectorReturns) UnmarshalJSON Uses

func (v *SetRuleSelectorReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetStyleSheetTextParams Uses

type SetStyleSheetTextParams struct {
    StyleSheetID StyleSheetID `json:"styleSheetId"`
    Text         string       `json:"text"`
}

SetStyleSheetTextParams sets the new stylesheet text.

func SetStyleSheetText Uses

func SetStyleSheetText(styleSheetID StyleSheetID, text string) *SetStyleSheetTextParams

SetStyleSheetText sets the new stylesheet text.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setStyleSheetText

parameters:

styleSheetID
text

func (*SetStyleSheetTextParams) Do Uses

func (p *SetStyleSheetTextParams) Do(ctx context.Context) (sourceMapURL string, err error)

Do executes CSS.setStyleSheetText against the provided context.

returns:

sourceMapURL - URL of source map associated with script (if any).

func (SetStyleSheetTextParams) MarshalEasyJSON Uses

func (v SetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetStyleSheetTextParams) MarshalJSON Uses

func (v SetStyleSheetTextParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetStyleSheetTextParams) UnmarshalEasyJSON Uses

func (v *SetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetStyleSheetTextParams) UnmarshalJSON Uses

func (v *SetStyleSheetTextParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetStyleSheetTextReturns Uses

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

SetStyleSheetTextReturns return values.

func (SetStyleSheetTextReturns) MarshalEasyJSON Uses

func (v SetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetStyleSheetTextReturns) MarshalJSON Uses

func (v SetStyleSheetTextReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetStyleSheetTextReturns) UnmarshalEasyJSON Uses

func (v *SetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetStyleSheetTextReturns) UnmarshalJSON Uses

func (v *SetStyleSheetTextReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetStyleTextsParams Uses

type SetStyleTextsParams struct {
    Edits []*StyleDeclarationEdit `json:"edits"`
}

SetStyleTextsParams applies specified style edits one after another in the given order.

func SetStyleTexts Uses

func SetStyleTexts(edits []*StyleDeclarationEdit) *SetStyleTextsParams

SetStyleTexts applies specified style edits one after another in the given order.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-setStyleTexts

parameters:

edits

func (*SetStyleTextsParams) Do Uses

func (p *SetStyleTextsParams) Do(ctx context.Context) (styles []*Style, err error)

Do executes CSS.setStyleTexts against the provided context.

returns:

styles - The resulting styles after modification.

func (SetStyleTextsParams) MarshalEasyJSON Uses

func (v SetStyleTextsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetStyleTextsParams) MarshalJSON Uses

func (v SetStyleTextsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetStyleTextsParams) UnmarshalEasyJSON Uses

func (v *SetStyleTextsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetStyleTextsParams) UnmarshalJSON Uses

func (v *SetStyleTextsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetStyleTextsReturns Uses

type SetStyleTextsReturns struct {
    Styles []*Style `json:"styles,omitempty"` // The resulting styles after modification.
}

SetStyleTextsReturns return values.

func (SetStyleTextsReturns) MarshalEasyJSON Uses

func (v SetStyleTextsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetStyleTextsReturns) MarshalJSON Uses

func (v SetStyleTextsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetStyleTextsReturns) UnmarshalEasyJSON Uses

func (v *SetStyleTextsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetStyleTextsReturns) UnmarshalJSON Uses

func (v *SetStyleTextsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ShorthandEntry Uses

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 [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-ShorthandEntry

func (ShorthandEntry) MarshalEasyJSON Uses

func (v ShorthandEntry) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ShorthandEntry) MarshalJSON Uses

func (v ShorthandEntry) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ShorthandEntry) UnmarshalEasyJSON Uses

func (v *ShorthandEntry) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ShorthandEntry) UnmarshalJSON Uses

func (v *ShorthandEntry) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SourceRange Uses

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

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

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-SourceRange

func (SourceRange) MarshalEasyJSON Uses

func (v SourceRange) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SourceRange) MarshalJSON Uses

func (v SourceRange) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SourceRange) UnmarshalEasyJSON Uses

func (v *SourceRange) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SourceRange) UnmarshalJSON Uses

func (v *SourceRange) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StartRuleUsageTrackingParams Uses

type StartRuleUsageTrackingParams struct{}

StartRuleUsageTrackingParams enables the selector recording.

func StartRuleUsageTracking Uses

func StartRuleUsageTracking() *StartRuleUsageTrackingParams

StartRuleUsageTracking enables the selector recording.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-startRuleUsageTracking

func (*StartRuleUsageTrackingParams) Do Uses

func (p *StartRuleUsageTrackingParams) Do(ctx context.Context) (err error)

Do executes CSS.startRuleUsageTracking against the provided context.

func (StartRuleUsageTrackingParams) MarshalEasyJSON Uses

func (v StartRuleUsageTrackingParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StartRuleUsageTrackingParams) MarshalJSON Uses

func (v StartRuleUsageTrackingParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StartRuleUsageTrackingParams) UnmarshalEasyJSON Uses

func (v *StartRuleUsageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StartRuleUsageTrackingParams) UnmarshalJSON Uses

func (v *StartRuleUsageTrackingParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StopRuleUsageTrackingParams Uses

type StopRuleUsageTrackingParams struct{}

StopRuleUsageTrackingParams stop tracking rule usage and return the list of rules that were used since last call to takeCoverageDelta (or since start of coverage instrumentation).

func StopRuleUsageTracking Uses

func StopRuleUsageTracking() *StopRuleUsageTrackingParams

StopRuleUsageTracking stop tracking rule usage and return the list of rules that were used since last call to takeCoverageDelta (or since start of coverage instrumentation).

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-stopRuleUsageTracking

func (*StopRuleUsageTrackingParams) Do Uses

func (p *StopRuleUsageTrackingParams) Do(ctx context.Context) (ruleUsage []*RuleUsage, err error)

Do executes CSS.stopRuleUsageTracking against the provided context.

returns:

ruleUsage

func (StopRuleUsageTrackingParams) MarshalEasyJSON Uses

func (v StopRuleUsageTrackingParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopRuleUsageTrackingParams) MarshalJSON Uses

func (v StopRuleUsageTrackingParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StopRuleUsageTrackingParams) UnmarshalEasyJSON Uses

func (v *StopRuleUsageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopRuleUsageTrackingParams) UnmarshalJSON Uses

func (v *StopRuleUsageTrackingParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StopRuleUsageTrackingReturns Uses

type StopRuleUsageTrackingReturns struct {
    RuleUsage []*RuleUsage `json:"ruleUsage,omitempty"`
}

StopRuleUsageTrackingReturns return values.

func (StopRuleUsageTrackingReturns) MarshalEasyJSON Uses

func (v StopRuleUsageTrackingReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopRuleUsageTrackingReturns) MarshalJSON Uses

func (v StopRuleUsageTrackingReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StopRuleUsageTrackingReturns) UnmarshalEasyJSON Uses

func (v *StopRuleUsageTrackingReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopRuleUsageTrackingReturns) UnmarshalJSON Uses

func (v *StopRuleUsageTrackingReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Style Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSStyle

func (Style) MarshalEasyJSON Uses

func (v Style) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Style) MarshalJSON Uses

func (v Style) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Style) UnmarshalEasyJSON Uses

func (v *Style) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Style) UnmarshalJSON Uses

func (v *Style) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StyleDeclarationEdit Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-StyleDeclarationEdit

func (StyleDeclarationEdit) MarshalEasyJSON Uses

func (v StyleDeclarationEdit) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StyleDeclarationEdit) MarshalJSON Uses

func (v StyleDeclarationEdit) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StyleDeclarationEdit) UnmarshalEasyJSON Uses

func (v *StyleDeclarationEdit) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StyleDeclarationEdit) UnmarshalJSON Uses

func (v *StyleDeclarationEdit) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StyleSheetHeader Uses

type StyleSheetHeader struct {
    StyleSheetID  StyleSheetID      `json:"styleSheetId"`           // The stylesheet identifier.
    FrameID       cdp.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     cdp.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.
    IsMutable     bool              `json:"isMutable"`              // Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API. <link> element's stylesheets become mutable only if DevTools modifies them. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.
    IsConstructed bool              `json:"isConstructed"`          // Whether this stylesheet is a constructed stylesheet (created using new CSSStyleSheet()).
    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.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-CSSStyleSheetHeader

func (StyleSheetHeader) MarshalEasyJSON Uses

func (v StyleSheetHeader) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StyleSheetHeader) MarshalJSON Uses

func (v StyleSheetHeader) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StyleSheetHeader) UnmarshalEasyJSON Uses

func (v *StyleSheetHeader) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StyleSheetHeader) UnmarshalJSON Uses

func (v *StyleSheetHeader) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StyleSheetID Uses

type StyleSheetID string

StyleSheetID [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-StyleSheetId

func (StyleSheetID) String Uses

func (t StyleSheetID) String() string

String returns the StyleSheetID as string value.

type StyleSheetOrigin Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-StyleSheetOrigin

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

StyleSheetOrigin values.

func (StyleSheetOrigin) MarshalEasyJSON Uses

func (t StyleSheetOrigin) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (StyleSheetOrigin) MarshalJSON Uses

func (t StyleSheetOrigin) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (StyleSheetOrigin) String Uses

func (t StyleSheetOrigin) String() string

String returns the StyleSheetOrigin as string value.

func (*StyleSheetOrigin) UnmarshalEasyJSON Uses

func (t *StyleSheetOrigin) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*StyleSheetOrigin) UnmarshalJSON Uses

func (t *StyleSheetOrigin) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type TakeComputedStyleUpdatesParams Uses

type TakeComputedStyleUpdatesParams struct{}

TakeComputedStyleUpdatesParams polls the next batch of computed style updates.

func TakeComputedStyleUpdates Uses

func TakeComputedStyleUpdates() *TakeComputedStyleUpdatesParams

TakeComputedStyleUpdates polls the next batch of computed style updates.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-takeComputedStyleUpdates

func (*TakeComputedStyleUpdatesParams) Do Uses

func (p *TakeComputedStyleUpdatesParams) Do(ctx context.Context) (nodeIds []cdp.NodeID, err error)

Do executes CSS.takeComputedStyleUpdates against the provided context.

returns:

nodeIds - The list of node Ids that have their tracked computed styles updated

func (TakeComputedStyleUpdatesParams) MarshalEasyJSON Uses

func (v TakeComputedStyleUpdatesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TakeComputedStyleUpdatesParams) MarshalJSON Uses

func (v TakeComputedStyleUpdatesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TakeComputedStyleUpdatesParams) UnmarshalEasyJSON Uses

func (v *TakeComputedStyleUpdatesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TakeComputedStyleUpdatesParams) UnmarshalJSON Uses

func (v *TakeComputedStyleUpdatesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TakeComputedStyleUpdatesReturns Uses

type TakeComputedStyleUpdatesReturns struct {
    NodeIds []cdp.NodeID `json:"nodeIds,omitempty"` // The list of node Ids that have their tracked computed styles updated
}

TakeComputedStyleUpdatesReturns return values.

func (TakeComputedStyleUpdatesReturns) MarshalEasyJSON Uses

func (v TakeComputedStyleUpdatesReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TakeComputedStyleUpdatesReturns) MarshalJSON Uses

func (v TakeComputedStyleUpdatesReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TakeComputedStyleUpdatesReturns) UnmarshalEasyJSON Uses

func (v *TakeComputedStyleUpdatesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TakeComputedStyleUpdatesReturns) UnmarshalJSON Uses

func (v *TakeComputedStyleUpdatesReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TakeCoverageDeltaParams Uses

type TakeCoverageDeltaParams struct{}

TakeCoverageDeltaParams obtain list of rules that became used since last call to this method (or since start of coverage instrumentation).

func TakeCoverageDelta Uses

func TakeCoverageDelta() *TakeCoverageDeltaParams

TakeCoverageDelta obtain list of rules that became used since last call to this method (or since start of coverage instrumentation).

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-takeCoverageDelta

func (*TakeCoverageDeltaParams) Do Uses

func (p *TakeCoverageDeltaParams) Do(ctx context.Context) (coverage []*RuleUsage, timestamp float64, err error)

Do executes CSS.takeCoverageDelta against the provided context.

returns:

coverage
timestamp - Monotonically increasing time, in seconds.

func (TakeCoverageDeltaParams) MarshalEasyJSON Uses

func (v TakeCoverageDeltaParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TakeCoverageDeltaParams) MarshalJSON Uses

func (v TakeCoverageDeltaParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TakeCoverageDeltaParams) UnmarshalEasyJSON Uses

func (v *TakeCoverageDeltaParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TakeCoverageDeltaParams) UnmarshalJSON Uses

func (v *TakeCoverageDeltaParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TakeCoverageDeltaReturns Uses

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

TakeCoverageDeltaReturns return values.

func (TakeCoverageDeltaReturns) MarshalEasyJSON Uses

func (v TakeCoverageDeltaReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TakeCoverageDeltaReturns) MarshalJSON Uses

func (v TakeCoverageDeltaReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TakeCoverageDeltaReturns) UnmarshalEasyJSON Uses

func (v *TakeCoverageDeltaReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TakeCoverageDeltaReturns) UnmarshalJSON Uses

func (v *TakeCoverageDeltaReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TrackComputedStyleUpdatesParams Uses

type TrackComputedStyleUpdatesParams struct {
    PropertiesToTrack []*ComputedStyleProperty `json:"propertiesToTrack"`
}

TrackComputedStyleUpdatesParams starts tracking the given computed styles for updates. The specified array of properties replaces the one previously specified. Pass empty array to disable tracking. Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified. The changes to computed style properties are only tracked for nodes pushed to the front-end by the DOM agent. If no changes to the tracked properties occur after the node has been pushed to the front-end, no updates will be issued for the node.

func TrackComputedStyleUpdates Uses

func TrackComputedStyleUpdates(propertiesToTrack []*ComputedStyleProperty) *TrackComputedStyleUpdatesParams

TrackComputedStyleUpdates starts tracking the given computed styles for updates. The specified array of properties replaces the one previously specified. Pass empty array to disable tracking. Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified. The changes to computed style properties are only tracked for nodes pushed to the front-end by the DOM agent. If no changes to the tracked properties occur after the node has been pushed to the front-end, no updates will be issued for the node.

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#method-trackComputedStyleUpdates

parameters:

propertiesToTrack

func (*TrackComputedStyleUpdatesParams) Do Uses

func (p *TrackComputedStyleUpdatesParams) Do(ctx context.Context) (err error)

Do executes CSS.trackComputedStyleUpdates against the provided context.

func (TrackComputedStyleUpdatesParams) MarshalEasyJSON Uses

func (v TrackComputedStyleUpdatesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TrackComputedStyleUpdatesParams) MarshalJSON Uses

func (v TrackComputedStyleUpdatesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TrackComputedStyleUpdatesParams) UnmarshalEasyJSON Uses

func (v *TrackComputedStyleUpdatesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TrackComputedStyleUpdatesParams) UnmarshalJSON Uses

func (v *TrackComputedStyleUpdatesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Value Uses

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).

See: https://chromedevtools.github.io/devtools-protocol/tot/CSS#type-Value

func (Value) MarshalEasyJSON Uses

func (v Value) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Value) MarshalJSON Uses

func (v Value) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Value) UnmarshalEasyJSON Uses

func (v *Value) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Value) UnmarshalJSON Uses

func (v *Value) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Package css imports 7 packages (graph) and is imported by 17 packages. Updated 2021-01-07. Refresh now. Tools for package owners.