Documentation ¶
Overview ¶
Package css provides the Chrome Debugging 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 discover all the existing stylesheets with the getAllStyleSheets() method (or keeping track of the styleSheetAdded/styleSheetRemoved events) and subsequently load the required stylesheet contents using the getStyleSheet[Text]() methods.
Generated by the chromedp-gen command.
Index ¶
- Variables
- type AddRuleParams
- func (p *AddRuleParams) Do(ctxt context.Context, h cdp.Handler) (rule *Rule, err error)
- func (v AddRuleParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v AddRuleParams) MarshalJSON() ([]byte, error)
- func (v *AddRuleParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *AddRuleParams) UnmarshalJSON(data []byte) error
- type AddRuleReturns
- type CollectClassNamesParams
- func (p *CollectClassNamesParams) Do(ctxt context.Context, h cdp.Handler) (classNames []string, err error)
- func (v CollectClassNamesParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v CollectClassNamesParams) MarshalJSON() ([]byte, error)
- func (v *CollectClassNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CollectClassNamesParams) UnmarshalJSON(data []byte) error
- type CollectClassNamesReturns
- type ComputedProperty
- type CreateStyleSheetParams
- func (p *CreateStyleSheetParams) Do(ctxt context.Context, h cdp.Handler) (styleSheetID StyleSheetID, err error)
- func (v CreateStyleSheetParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v CreateStyleSheetParams) MarshalJSON() ([]byte, error)
- func (v *CreateStyleSheetParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CreateStyleSheetParams) UnmarshalJSON(data []byte) error
- type CreateStyleSheetReturns
- type DisableParams
- func (p *DisableParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DisableParams) MarshalJSON() ([]byte, error)
- func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DisableParams) UnmarshalJSON(data []byte) error
- type EnableParams
- type EventFontsUpdated
- type EventMediaQueryResultChanged
- type EventStyleSheetAdded
- type EventStyleSheetChanged
- type EventStyleSheetRemoved
- type ForcePseudoStateParams
- func (p *ForcePseudoStateParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v ForcePseudoStateParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ForcePseudoStateParams) MarshalJSON() ([]byte, error)
- func (v *ForcePseudoStateParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ForcePseudoStateParams) UnmarshalJSON(data []byte) error
- type GetBackgroundColorsParams
- func (p *GetBackgroundColorsParams) Do(ctxt context.Context, h cdp.Handler) (backgroundColors []string, err error)
- func (v GetBackgroundColorsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetBackgroundColorsParams) MarshalJSON() ([]byte, error)
- func (v *GetBackgroundColorsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetBackgroundColorsParams) UnmarshalJSON(data []byte) error
- type GetBackgroundColorsReturns
- type GetComputedStyleForNodeParams
- func (p *GetComputedStyleForNodeParams) Do(ctxt context.Context, h cdp.Handler) (computedStyle []*ComputedProperty, err error)
- func (v GetComputedStyleForNodeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetComputedStyleForNodeParams) MarshalJSON() ([]byte, error)
- func (v *GetComputedStyleForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetComputedStyleForNodeParams) UnmarshalJSON(data []byte) error
- type GetComputedStyleForNodeReturns
- type GetInlineStylesForNodeParams
- func (p *GetInlineStylesForNodeParams) Do(ctxt context.Context, h cdp.Handler) (inlineStyle *Style, attributesStyle *Style, err error)
- func (v GetInlineStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetInlineStylesForNodeParams) MarshalJSON() ([]byte, error)
- func (v *GetInlineStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetInlineStylesForNodeParams) UnmarshalJSON(data []byte) error
- type GetInlineStylesForNodeReturns
- type GetMatchedStylesForNodeParams
- func (p *GetMatchedStylesForNodeParams) Do(ctxt context.Context, h cdp.Handler) (inlineStyle *Style, attributesStyle *Style, matchedCSSRules []*RuleMatch, ...)
- func (v GetMatchedStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetMatchedStylesForNodeParams) MarshalJSON() ([]byte, error)
- func (v *GetMatchedStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetMatchedStylesForNodeParams) UnmarshalJSON(data []byte) error
- type GetMatchedStylesForNodeReturns
- type GetMediaQueriesParams
- func (p *GetMediaQueriesParams) Do(ctxt context.Context, h cdp.Handler) (medias []*Media, err error)
- func (v GetMediaQueriesParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetMediaQueriesParams) MarshalJSON() ([]byte, error)
- func (v *GetMediaQueriesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetMediaQueriesParams) UnmarshalJSON(data []byte) error
- type GetMediaQueriesReturns
- type GetPlatformFontsForNodeParams
- func (p *GetPlatformFontsForNodeParams) Do(ctxt context.Context, h cdp.Handler) (fonts []*PlatformFontUsage, err error)
- func (v GetPlatformFontsForNodeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetPlatformFontsForNodeParams) MarshalJSON() ([]byte, error)
- func (v *GetPlatformFontsForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetPlatformFontsForNodeParams) UnmarshalJSON(data []byte) error
- type GetPlatformFontsForNodeReturns
- type GetStyleSheetTextParams
- func (p *GetStyleSheetTextParams) Do(ctxt context.Context, h cdp.Handler) (text string, err error)
- func (v GetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetStyleSheetTextParams) MarshalJSON() ([]byte, error)
- func (v *GetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetStyleSheetTextParams) UnmarshalJSON(data []byte) error
- type GetStyleSheetTextReturns
- type InheritedStyleEntry
- type InlineTextBox
- type KeyframeRule
- type KeyframesRule
- type Media
- type MediaQuery
- type MediaQueryExpression
- type MediaSource
- type PlatformFontUsage
- type Property
- type PseudoClass
- type PseudoElementMatches
- type Rule
- type RuleMatch
- type RuleUsage
- type SelectorList
- type SetEffectivePropertyValueForNodeParams
- func (p *SetEffectivePropertyValueForNodeParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v SetEffectivePropertyValueForNodeParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetEffectivePropertyValueForNodeParams) MarshalJSON() ([]byte, error)
- func (v *SetEffectivePropertyValueForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetEffectivePropertyValueForNodeParams) UnmarshalJSON(data []byte) error
- type SetKeyframeKeyParams
- func (p *SetKeyframeKeyParams) Do(ctxt context.Context, h cdp.Handler) (keyText *Value, err error)
- func (v SetKeyframeKeyParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetKeyframeKeyParams) MarshalJSON() ([]byte, error)
- func (v *SetKeyframeKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetKeyframeKeyParams) UnmarshalJSON(data []byte) error
- type SetKeyframeKeyReturns
- type SetMediaTextParams
- func (p *SetMediaTextParams) Do(ctxt context.Context, h cdp.Handler) (media *Media, err error)
- func (v SetMediaTextParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetMediaTextParams) MarshalJSON() ([]byte, error)
- func (v *SetMediaTextParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetMediaTextParams) UnmarshalJSON(data []byte) error
- type SetMediaTextReturns
- type SetRuleSelectorParams
- func (p *SetRuleSelectorParams) Do(ctxt context.Context, h cdp.Handler) (selectorList *SelectorList, err error)
- func (v SetRuleSelectorParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetRuleSelectorParams) MarshalJSON() ([]byte, error)
- func (v *SetRuleSelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetRuleSelectorParams) UnmarshalJSON(data []byte) error
- type SetRuleSelectorReturns
- type SetStyleSheetTextParams
- func (p *SetStyleSheetTextParams) Do(ctxt context.Context, h cdp.Handler) (sourceMapURL string, err error)
- func (v SetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetStyleSheetTextParams) MarshalJSON() ([]byte, error)
- func (v *SetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetStyleSheetTextParams) UnmarshalJSON(data []byte) error
- type SetStyleSheetTextReturns
- type SetStyleTextsParams
- func (p *SetStyleTextsParams) Do(ctxt context.Context, h cdp.Handler) (styles []*Style, err error)
- func (v SetStyleTextsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetStyleTextsParams) MarshalJSON() ([]byte, error)
- func (v *SetStyleTextsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetStyleTextsParams) UnmarshalJSON(data []byte) error
- type SetStyleTextsReturns
- type ShorthandEntry
- type SourceRange
- type StartRuleUsageTrackingParams
- func (p *StartRuleUsageTrackingParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v StartRuleUsageTrackingParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v StartRuleUsageTrackingParams) MarshalJSON() ([]byte, error)
- func (v *StartRuleUsageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *StartRuleUsageTrackingParams) UnmarshalJSON(data []byte) error
- type StopRuleUsageTrackingParams
- func (p *StopRuleUsageTrackingParams) Do(ctxt context.Context, h cdp.Handler) (ruleUsage []*RuleUsage, err error)
- func (v StopRuleUsageTrackingParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v StopRuleUsageTrackingParams) MarshalJSON() ([]byte, error)
- func (v *StopRuleUsageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *StopRuleUsageTrackingParams) UnmarshalJSON(data []byte) error
- type StopRuleUsageTrackingReturns
- type Style
- type StyleDeclarationEdit
- type StyleSheetHeader
- type StyleSheetID
- type StyleSheetOrigin
- type TakeCoverageDeltaParams
- func (p *TakeCoverageDeltaParams) Do(ctxt context.Context, h cdp.Handler) (coverage []*RuleUsage, err error)
- func (v TakeCoverageDeltaParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v TakeCoverageDeltaParams) MarshalJSON() ([]byte, error)
- func (v *TakeCoverageDeltaParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *TakeCoverageDeltaParams) UnmarshalJSON(data []byte) error
- type TakeCoverageDeltaReturns
- type Value
Constants ¶
This section is empty.
Variables ¶
var EventTypes = []cdp.MethodType{ cdp.EventCSSMediaQueryResultChanged, cdp.EventCSSFontsUpdated, cdp.EventCSSStyleSheetChanged, cdp.EventCSSStyleSheetAdded, cdp.EventCSSStyleSheetRemoved, }
EventTypes all event types in the domain.
Functions ¶
This section is empty.
Types ¶
type AddRuleParams ¶
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 ¶
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.
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 ¶
Do executes CSS.addRule against the provided context and target handler.
returns:
rule - The newly created rule.
func (AddRuleParams) MarshalEasyJSON ¶
func (v AddRuleParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AddRuleParams) MarshalJSON ¶
func (v AddRuleParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AddRuleParams) UnmarshalEasyJSON ¶
func (v *AddRuleParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AddRuleParams) UnmarshalJSON ¶
func (v *AddRuleParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AddRuleReturns ¶
type AddRuleReturns struct {
Rule *Rule `json:"rule,omitempty"` // The newly created rule.
}
AddRuleReturns return values.
func (AddRuleReturns) MarshalEasyJSON ¶
func (v AddRuleReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AddRuleReturns) MarshalJSON ¶
func (v AddRuleReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AddRuleReturns) UnmarshalEasyJSON ¶
func (v *AddRuleReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AddRuleReturns) UnmarshalJSON ¶
func (v *AddRuleReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CollectClassNamesParams ¶
type CollectClassNamesParams struct {
StyleSheetID StyleSheetID `json:"styleSheetId"`
}
CollectClassNamesParams returns all class names from specified stylesheet.
func CollectClassNames ¶
func CollectClassNames(styleSheetID StyleSheetID) *CollectClassNamesParams
CollectClassNames returns all class names from specified stylesheet.
parameters:
styleSheetID
func (*CollectClassNamesParams) Do ¶
func (p *CollectClassNamesParams) Do(ctxt context.Context, h cdp.Handler) (classNames []string, err error)
Do executes CSS.collectClassNames against the provided context and target handler.
returns:
classNames - Class name list.
func (CollectClassNamesParams) MarshalEasyJSON ¶
func (v CollectClassNamesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CollectClassNamesParams) MarshalJSON ¶
func (v CollectClassNamesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CollectClassNamesParams) UnmarshalEasyJSON ¶
func (v *CollectClassNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CollectClassNamesParams) UnmarshalJSON ¶
func (v *CollectClassNamesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CollectClassNamesReturns ¶
type CollectClassNamesReturns struct {
ClassNames []string `json:"classNames,omitempty"` // Class name list.
}
CollectClassNamesReturns return values.
func (CollectClassNamesReturns) MarshalEasyJSON ¶
func (v CollectClassNamesReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CollectClassNamesReturns) MarshalJSON ¶
func (v CollectClassNamesReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CollectClassNamesReturns) UnmarshalEasyJSON ¶
func (v *CollectClassNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CollectClassNamesReturns) UnmarshalJSON ¶
func (v *CollectClassNamesReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ComputedProperty ¶
type ComputedProperty struct { Name string `json:"name,omitempty"` // Computed style property name. Value string `json:"value,omitempty"` // Computed style property value. }
ComputedProperty [no description].
func (ComputedProperty) MarshalEasyJSON ¶
func (v ComputedProperty) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ComputedProperty) MarshalJSON ¶
func (v ComputedProperty) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ComputedProperty) UnmarshalEasyJSON ¶
func (v *ComputedProperty) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ComputedProperty) UnmarshalJSON ¶
func (v *ComputedProperty) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CreateStyleSheetParams ¶
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 ¶
func CreateStyleSheet(frameID cdp.FrameID) *CreateStyleSheetParams
CreateStyleSheet creates a new special "via-inspector" stylesheet in the frame with given frameId.
parameters:
frameID - Identifier of the frame where "via-inspector" stylesheet should be created.
func (*CreateStyleSheetParams) Do ¶
func (p *CreateStyleSheetParams) Do(ctxt context.Context, h cdp.Handler) (styleSheetID StyleSheetID, err error)
Do executes CSS.createStyleSheet against the provided context and target handler.
returns:
styleSheetID - Identifier of the created "via-inspector" stylesheet.
func (CreateStyleSheetParams) MarshalEasyJSON ¶
func (v CreateStyleSheetParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CreateStyleSheetParams) MarshalJSON ¶
func (v CreateStyleSheetParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CreateStyleSheetParams) UnmarshalEasyJSON ¶
func (v *CreateStyleSheetParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CreateStyleSheetParams) UnmarshalJSON ¶
func (v *CreateStyleSheetParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CreateStyleSheetReturns ¶
type CreateStyleSheetReturns struct {
StyleSheetID StyleSheetID `json:"styleSheetId,omitempty"` // Identifier of the created "via-inspector" stylesheet.
}
CreateStyleSheetReturns return values.
func (CreateStyleSheetReturns) MarshalEasyJSON ¶
func (v CreateStyleSheetReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CreateStyleSheetReturns) MarshalJSON ¶
func (v CreateStyleSheetReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CreateStyleSheetReturns) UnmarshalEasyJSON ¶
func (v *CreateStyleSheetReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CreateStyleSheetReturns) UnmarshalJSON ¶
func (v *CreateStyleSheetReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DisableParams ¶
type DisableParams struct{}
DisableParams disables the CSS agent for the given page.
func (DisableParams) MarshalEasyJSON ¶
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DisableParams) MarshalJSON ¶
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DisableParams) UnmarshalEasyJSON ¶
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DisableParams) UnmarshalJSON ¶
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams ¶
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 ¶
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.
func (EnableParams) MarshalEasyJSON ¶
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EnableParams) MarshalJSON ¶
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EnableParams) UnmarshalEasyJSON ¶
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EnableParams) UnmarshalJSON ¶
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventFontsUpdated ¶
type EventFontsUpdated struct{}
EventFontsUpdated fires whenever a web font gets loaded.
func (EventFontsUpdated) MarshalEasyJSON ¶
func (v EventFontsUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventFontsUpdated) MarshalJSON ¶
func (v EventFontsUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventFontsUpdated) UnmarshalEasyJSON ¶
func (v *EventFontsUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventFontsUpdated) UnmarshalJSON ¶
func (v *EventFontsUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventMediaQueryResultChanged ¶
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.
func (EventMediaQueryResultChanged) MarshalEasyJSON ¶
func (v EventMediaQueryResultChanged) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventMediaQueryResultChanged) MarshalJSON ¶
func (v EventMediaQueryResultChanged) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventMediaQueryResultChanged) UnmarshalEasyJSON ¶
func (v *EventMediaQueryResultChanged) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventMediaQueryResultChanged) UnmarshalJSON ¶
func (v *EventMediaQueryResultChanged) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventStyleSheetAdded ¶
type EventStyleSheetAdded struct {
Header *StyleSheetHeader `json:"header,omitempty"` // Added stylesheet metainfo.
}
EventStyleSheetAdded fired whenever an active document stylesheet is added.
func (EventStyleSheetAdded) MarshalEasyJSON ¶
func (v EventStyleSheetAdded) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventStyleSheetAdded) MarshalJSON ¶
func (v EventStyleSheetAdded) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventStyleSheetAdded) UnmarshalEasyJSON ¶
func (v *EventStyleSheetAdded) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventStyleSheetAdded) UnmarshalJSON ¶
func (v *EventStyleSheetAdded) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventStyleSheetChanged ¶
type EventStyleSheetChanged struct {
StyleSheetID StyleSheetID `json:"styleSheetId,omitempty"`
}
EventStyleSheetChanged fired whenever a stylesheet is changed as a result of the client operation.
func (EventStyleSheetChanged) MarshalEasyJSON ¶
func (v EventStyleSheetChanged) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventStyleSheetChanged) MarshalJSON ¶
func (v EventStyleSheetChanged) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventStyleSheetChanged) UnmarshalEasyJSON ¶
func (v *EventStyleSheetChanged) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventStyleSheetChanged) UnmarshalJSON ¶
func (v *EventStyleSheetChanged) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventStyleSheetRemoved ¶
type EventStyleSheetRemoved struct {
StyleSheetID StyleSheetID `json:"styleSheetId,omitempty"` // Identifier of the removed stylesheet.
}
EventStyleSheetRemoved fired whenever an active document stylesheet is removed.
func (EventStyleSheetRemoved) MarshalEasyJSON ¶
func (v EventStyleSheetRemoved) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventStyleSheetRemoved) MarshalJSON ¶
func (v EventStyleSheetRemoved) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventStyleSheetRemoved) UnmarshalEasyJSON ¶
func (v *EventStyleSheetRemoved) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventStyleSheetRemoved) UnmarshalJSON ¶
func (v *EventStyleSheetRemoved) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ForcePseudoStateParams ¶
type ForcePseudoStateParams struct { NodeID cdp.NodeID `json:"nodeId"` // The element id for which to force the pseudo state. ForcedPseudoClasses []PseudoClass `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 ¶
func ForcePseudoState(nodeID cdp.NodeID, forcedPseudoClasses []PseudoClass) *ForcePseudoStateParams
ForcePseudoState ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.
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 ¶
Do executes CSS.forcePseudoState against the provided context and target handler.
func (ForcePseudoStateParams) MarshalEasyJSON ¶
func (v ForcePseudoStateParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ForcePseudoStateParams) MarshalJSON ¶
func (v ForcePseudoStateParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ForcePseudoStateParams) UnmarshalEasyJSON ¶
func (v *ForcePseudoStateParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ForcePseudoStateParams) UnmarshalJSON ¶
func (v *ForcePseudoStateParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetBackgroundColorsParams ¶
type GetBackgroundColorsParams struct {
NodeID cdp.NodeID `json:"nodeId"` // Id of the node to get background colors for.
}
GetBackgroundColorsParams [no description].
func GetBackgroundColors ¶
func GetBackgroundColors(nodeID cdp.NodeID) *GetBackgroundColorsParams
GetBackgroundColors [no description].
parameters:
nodeID - Id of the node to get background colors for.
func (*GetBackgroundColorsParams) Do ¶
func (p *GetBackgroundColorsParams) Do(ctxt context.Context, h cdp.Handler) (backgroundColors []string, err error)
Do executes CSS.getBackgroundColors against the provided context and target handler.
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).
func (GetBackgroundColorsParams) MarshalEasyJSON ¶
func (v GetBackgroundColorsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetBackgroundColorsParams) MarshalJSON ¶
func (v GetBackgroundColorsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetBackgroundColorsParams) UnmarshalEasyJSON ¶
func (v *GetBackgroundColorsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetBackgroundColorsParams) UnmarshalJSON ¶
func (v *GetBackgroundColorsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetBackgroundColorsReturns ¶
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).
}
GetBackgroundColorsReturns return values.
func (GetBackgroundColorsReturns) MarshalEasyJSON ¶
func (v GetBackgroundColorsReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetBackgroundColorsReturns) MarshalJSON ¶
func (v GetBackgroundColorsReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetBackgroundColorsReturns) UnmarshalEasyJSON ¶
func (v *GetBackgroundColorsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetBackgroundColorsReturns) UnmarshalJSON ¶
func (v *GetBackgroundColorsReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetComputedStyleForNodeParams ¶
GetComputedStyleForNodeParams returns the computed style for a DOM node identified by nodeId.
func GetComputedStyleForNode ¶
func GetComputedStyleForNode(nodeID cdp.NodeID) *GetComputedStyleForNodeParams
GetComputedStyleForNode returns the computed style for a DOM node identified by nodeId.
parameters:
nodeID
func (*GetComputedStyleForNodeParams) Do ¶
func (p *GetComputedStyleForNodeParams) Do(ctxt context.Context, h cdp.Handler) (computedStyle []*ComputedProperty, err error)
Do executes CSS.getComputedStyleForNode against the provided context and target handler.
returns:
computedStyle - Computed style for the specified DOM node.
func (GetComputedStyleForNodeParams) MarshalEasyJSON ¶
func (v GetComputedStyleForNodeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetComputedStyleForNodeParams) MarshalJSON ¶
func (v GetComputedStyleForNodeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetComputedStyleForNodeParams) UnmarshalEasyJSON ¶
func (v *GetComputedStyleForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetComputedStyleForNodeParams) UnmarshalJSON ¶
func (v *GetComputedStyleForNodeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetComputedStyleForNodeReturns ¶
type GetComputedStyleForNodeReturns struct {
ComputedStyle []*ComputedProperty `json:"computedStyle,omitempty"` // Computed style for the specified DOM node.
}
GetComputedStyleForNodeReturns return values.
func (GetComputedStyleForNodeReturns) MarshalEasyJSON ¶
func (v GetComputedStyleForNodeReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetComputedStyleForNodeReturns) MarshalJSON ¶
func (v GetComputedStyleForNodeReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetComputedStyleForNodeReturns) UnmarshalEasyJSON ¶
func (v *GetComputedStyleForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetComputedStyleForNodeReturns) UnmarshalJSON ¶
func (v *GetComputedStyleForNodeReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetInlineStylesForNodeParams ¶
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 ¶
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.
parameters:
nodeID
func (*GetInlineStylesForNodeParams) Do ¶
func (p *GetInlineStylesForNodeParams) Do(ctxt context.Context, h cdp.Handler) (inlineStyle *Style, attributesStyle *Style, err error)
Do executes CSS.getInlineStylesForNode against the provided context and target handler.
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 ¶
func (v GetInlineStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetInlineStylesForNodeParams) MarshalJSON ¶
func (v GetInlineStylesForNodeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetInlineStylesForNodeParams) UnmarshalEasyJSON ¶
func (v *GetInlineStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetInlineStylesForNodeParams) UnmarshalJSON ¶
func (v *GetInlineStylesForNodeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetInlineStylesForNodeReturns ¶
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 ¶
func (v GetInlineStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetInlineStylesForNodeReturns) MarshalJSON ¶
func (v GetInlineStylesForNodeReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetInlineStylesForNodeReturns) UnmarshalEasyJSON ¶
func (v *GetInlineStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetInlineStylesForNodeReturns) UnmarshalJSON ¶
func (v *GetInlineStylesForNodeReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetMatchedStylesForNodeParams ¶
GetMatchedStylesForNodeParams returns requested styles for a DOM node identified by nodeId.
func GetMatchedStylesForNode ¶
func GetMatchedStylesForNode(nodeID cdp.NodeID) *GetMatchedStylesForNodeParams
GetMatchedStylesForNode returns requested styles for a DOM node identified by nodeId.
parameters:
nodeID
func (*GetMatchedStylesForNodeParams) Do ¶
func (p *GetMatchedStylesForNodeParams) Do(ctxt context.Context, h cdp.Handler) (inlineStyle *Style, attributesStyle *Style, matchedCSSRules []*RuleMatch, pseudoElements []*PseudoElementMatches, inherited []*InheritedStyleEntry, cssKeyframesRules []*KeyframesRule, err error)
Do executes CSS.getMatchedStylesForNode against the provided context and target handler.
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 ¶
func (v GetMatchedStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetMatchedStylesForNodeParams) MarshalJSON ¶
func (v GetMatchedStylesForNodeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetMatchedStylesForNodeParams) UnmarshalEasyJSON ¶
func (v *GetMatchedStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetMatchedStylesForNodeParams) UnmarshalJSON ¶
func (v *GetMatchedStylesForNodeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetMatchedStylesForNodeReturns ¶
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 ¶
func (v GetMatchedStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetMatchedStylesForNodeReturns) MarshalJSON ¶
func (v GetMatchedStylesForNodeReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetMatchedStylesForNodeReturns) UnmarshalEasyJSON ¶
func (v *GetMatchedStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetMatchedStylesForNodeReturns) UnmarshalJSON ¶
func (v *GetMatchedStylesForNodeReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetMediaQueriesParams ¶
type GetMediaQueriesParams struct{}
GetMediaQueriesParams returns all media queries parsed by the rendering engine.
func GetMediaQueries ¶
func GetMediaQueries() *GetMediaQueriesParams
GetMediaQueries returns all media queries parsed by the rendering engine.
func (*GetMediaQueriesParams) Do ¶
func (p *GetMediaQueriesParams) Do(ctxt context.Context, h cdp.Handler) (medias []*Media, err error)
Do executes CSS.getMediaQueries against the provided context and target handler.
returns:
medias
func (GetMediaQueriesParams) MarshalEasyJSON ¶
func (v GetMediaQueriesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetMediaQueriesParams) MarshalJSON ¶
func (v GetMediaQueriesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetMediaQueriesParams) UnmarshalEasyJSON ¶
func (v *GetMediaQueriesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetMediaQueriesParams) UnmarshalJSON ¶
func (v *GetMediaQueriesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetMediaQueriesReturns ¶
type GetMediaQueriesReturns struct {
Medias []*Media `json:"medias,omitempty"`
}
GetMediaQueriesReturns return values.
func (GetMediaQueriesReturns) MarshalEasyJSON ¶
func (v GetMediaQueriesReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetMediaQueriesReturns) MarshalJSON ¶
func (v GetMediaQueriesReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetMediaQueriesReturns) UnmarshalEasyJSON ¶
func (v *GetMediaQueriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetMediaQueriesReturns) UnmarshalJSON ¶
func (v *GetMediaQueriesReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetPlatformFontsForNodeParams ¶
GetPlatformFontsForNodeParams requests information about platform fonts which we used to render child TextNodes in the given node.
func GetPlatformFontsForNode ¶
func GetPlatformFontsForNode(nodeID cdp.NodeID) *GetPlatformFontsForNodeParams
GetPlatformFontsForNode requests information about platform fonts which we used to render child TextNodes in the given node.
parameters:
nodeID
func (*GetPlatformFontsForNodeParams) Do ¶
func (p *GetPlatformFontsForNodeParams) Do(ctxt context.Context, h cdp.Handler) (fonts []*PlatformFontUsage, err error)
Do executes CSS.getPlatformFontsForNode against the provided context and target handler.
returns:
fonts - Usage statistics for every employed platform font.
func (GetPlatformFontsForNodeParams) MarshalEasyJSON ¶
func (v GetPlatformFontsForNodeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetPlatformFontsForNodeParams) MarshalJSON ¶
func (v GetPlatformFontsForNodeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetPlatformFontsForNodeParams) UnmarshalEasyJSON ¶
func (v *GetPlatformFontsForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetPlatformFontsForNodeParams) UnmarshalJSON ¶
func (v *GetPlatformFontsForNodeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetPlatformFontsForNodeReturns ¶
type GetPlatformFontsForNodeReturns struct {
Fonts []*PlatformFontUsage `json:"fonts,omitempty"` // Usage statistics for every employed platform font.
}
GetPlatformFontsForNodeReturns return values.
func (GetPlatformFontsForNodeReturns) MarshalEasyJSON ¶
func (v GetPlatformFontsForNodeReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetPlatformFontsForNodeReturns) MarshalJSON ¶
func (v GetPlatformFontsForNodeReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetPlatformFontsForNodeReturns) UnmarshalEasyJSON ¶
func (v *GetPlatformFontsForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetPlatformFontsForNodeReturns) UnmarshalJSON ¶
func (v *GetPlatformFontsForNodeReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetStyleSheetTextParams ¶
type GetStyleSheetTextParams struct {
StyleSheetID StyleSheetID `json:"styleSheetId"`
}
GetStyleSheetTextParams returns the current textual content and the URL for a stylesheet.
func GetStyleSheetText ¶
func GetStyleSheetText(styleSheetID StyleSheetID) *GetStyleSheetTextParams
GetStyleSheetText returns the current textual content and the URL for a stylesheet.
parameters:
styleSheetID
func (*GetStyleSheetTextParams) Do ¶
Do executes CSS.getStyleSheetText against the provided context and target handler.
returns:
text - The stylesheet text.
func (GetStyleSheetTextParams) MarshalEasyJSON ¶
func (v GetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetStyleSheetTextParams) MarshalJSON ¶
func (v GetStyleSheetTextParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetStyleSheetTextParams) UnmarshalEasyJSON ¶
func (v *GetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetStyleSheetTextParams) UnmarshalJSON ¶
func (v *GetStyleSheetTextParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetStyleSheetTextReturns ¶
type GetStyleSheetTextReturns struct {
Text string `json:"text,omitempty"` // The stylesheet text.
}
GetStyleSheetTextReturns return values.
func (GetStyleSheetTextReturns) MarshalEasyJSON ¶
func (v GetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetStyleSheetTextReturns) MarshalJSON ¶
func (v GetStyleSheetTextReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetStyleSheetTextReturns) UnmarshalEasyJSON ¶
func (v *GetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetStyleSheetTextReturns) UnmarshalJSON ¶
func (v *GetStyleSheetTextReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type InheritedStyleEntry ¶
type InheritedStyleEntry struct { InlineStyle *Style `json:"inlineStyle,omitempty"` // The ancestor node's inline style, if any, in the style inheritance chain. MatchedCSSRules []*RuleMatch `json:"matchedCSSRules,omitempty"` // Matches of CSS rules matching the ancestor node in the style inheritance chain. }
InheritedStyleEntry inherited CSS rule collection from ancestor node.
func (InheritedStyleEntry) MarshalEasyJSON ¶
func (v InheritedStyleEntry) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (InheritedStyleEntry) MarshalJSON ¶
func (v InheritedStyleEntry) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*InheritedStyleEntry) UnmarshalEasyJSON ¶
func (v *InheritedStyleEntry) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*InheritedStyleEntry) UnmarshalJSON ¶
func (v *InheritedStyleEntry) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type InlineTextBox ¶
type InlineTextBox struct { BoundingBox *dom.Rect `json:"boundingBox,omitempty"` // The absolute position bounding box. StartCharacterIndex int64 `json:"startCharacterIndex,omitempty"` // The starting index in characters, for this post layout textbox substring. NumCharacters int64 `json:"numCharacters,omitempty"` // The number of characters in this post layout textbox substring. }
InlineTextBox details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.
func (InlineTextBox) MarshalEasyJSON ¶
func (v InlineTextBox) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (InlineTextBox) MarshalJSON ¶
func (v InlineTextBox) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*InlineTextBox) UnmarshalEasyJSON ¶
func (v *InlineTextBox) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*InlineTextBox) UnmarshalJSON ¶
func (v *InlineTextBox) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type KeyframeRule ¶
type KeyframeRule struct { StyleSheetID StyleSheetID `json:"styleSheetId,omitempty"` // The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from. Origin StyleSheetOrigin `json:"origin,omitempty"` // Parent stylesheet's origin. KeyText *Value `json:"keyText,omitempty"` // Associated key text. Style *Style `json:"style,omitempty"` // Associated style declaration. }
KeyframeRule cSS keyframe rule representation.
func (KeyframeRule) MarshalEasyJSON ¶
func (v KeyframeRule) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (KeyframeRule) MarshalJSON ¶
func (v KeyframeRule) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*KeyframeRule) UnmarshalEasyJSON ¶
func (v *KeyframeRule) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*KeyframeRule) UnmarshalJSON ¶
func (v *KeyframeRule) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type KeyframesRule ¶
type KeyframesRule struct { AnimationName *Value `json:"animationName,omitempty"` // Animation name. Keyframes []*KeyframeRule `json:"keyframes,omitempty"` // List of keyframes. }
KeyframesRule cSS keyframes rule representation.
func (KeyframesRule) MarshalEasyJSON ¶
func (v KeyframesRule) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (KeyframesRule) MarshalJSON ¶
func (v KeyframesRule) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*KeyframesRule) UnmarshalEasyJSON ¶
func (v *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*KeyframesRule) UnmarshalJSON ¶
func (v *KeyframesRule) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Media ¶
type Media struct { Text string `json:"text,omitempty"` // Media query text. Source MediaSource `json:"source,omitempty"` // 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.
func (Media) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Media) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Media) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Media) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type MediaQuery ¶
type MediaQuery struct { Expressions []*MediaQueryExpression `json:"expressions,omitempty"` // Array of media query expressions. Active bool `json:"active,omitempty"` // Whether the media query condition is satisfied. }
MediaQuery media query descriptor.
func (MediaQuery) MarshalEasyJSON ¶
func (v MediaQuery) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (MediaQuery) MarshalJSON ¶
func (v MediaQuery) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*MediaQuery) UnmarshalEasyJSON ¶
func (v *MediaQuery) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*MediaQuery) UnmarshalJSON ¶
func (v *MediaQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type MediaQueryExpression ¶
type MediaQueryExpression struct { Value float64 `json:"value,omitempty"` // Media query expression value. Unit string `json:"unit,omitempty"` // Media query expression units. Feature string `json:"feature,omitempty"` // 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.
func (MediaQueryExpression) MarshalEasyJSON ¶
func (v MediaQueryExpression) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (MediaQueryExpression) MarshalJSON ¶
func (v MediaQueryExpression) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*MediaQueryExpression) UnmarshalEasyJSON ¶
func (v *MediaQueryExpression) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*MediaQueryExpression) UnmarshalJSON ¶
func (v *MediaQueryExpression) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type MediaSource ¶
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.
const ( MediaSourceMediaRule MediaSource = "mediaRule" MediaSourceImportRule MediaSource = "importRule" MediaSourceLinkedSheet MediaSource = "linkedSheet" MediaSourceInlineSheet MediaSource = "inlineSheet" )
MediaSource values.
func (MediaSource) MarshalEasyJSON ¶
func (t MediaSource) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (MediaSource) MarshalJSON ¶
func (t MediaSource) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (MediaSource) String ¶
func (t MediaSource) String() string
String returns the MediaSource as string value.
func (*MediaSource) UnmarshalEasyJSON ¶
func (t *MediaSource) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*MediaSource) UnmarshalJSON ¶
func (t *MediaSource) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type PlatformFontUsage ¶
type PlatformFontUsage struct { FamilyName string `json:"familyName,omitempty"` // Font's family name reported by platform. IsCustomFont bool `json:"isCustomFont,omitempty"` // Indicates if the font was downloaded or resolved locally. GlyphCount float64 `json:"glyphCount,omitempty"` // Amount of glyphs that were rendered with this font. }
PlatformFontUsage information about amount of glyphs that were rendered with given font.
func (PlatformFontUsage) MarshalEasyJSON ¶
func (v PlatformFontUsage) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PlatformFontUsage) MarshalJSON ¶
func (v PlatformFontUsage) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PlatformFontUsage) UnmarshalEasyJSON ¶
func (v *PlatformFontUsage) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PlatformFontUsage) UnmarshalJSON ¶
func (v *PlatformFontUsage) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Property ¶
type Property struct { Name string `json:"name,omitempty"` // The property name. Value string `json:"value,omitempty"` // 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.
func (Property) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Property) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Property) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Property) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type PseudoClass ¶
type PseudoClass string
PseudoClass [no description].
const ( PseudoClassActive PseudoClass = "active" PseudoClassFocus PseudoClass = "focus" PseudoClassHover PseudoClass = "hover" PseudoClassVisited PseudoClass = "visited" )
PseudoClass values.
func (PseudoClass) MarshalEasyJSON ¶
func (t PseudoClass) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (PseudoClass) MarshalJSON ¶
func (t PseudoClass) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (PseudoClass) String ¶
func (t PseudoClass) String() string
String returns the PseudoClass as string value.
func (*PseudoClass) UnmarshalEasyJSON ¶
func (t *PseudoClass) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*PseudoClass) UnmarshalJSON ¶
func (t *PseudoClass) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type PseudoElementMatches ¶
type PseudoElementMatches struct { PseudoType cdp.PseudoType `json:"pseudoType,omitempty"` // Pseudo element type. Matches []*RuleMatch `json:"matches,omitempty"` // Matches of CSS rules applicable to the pseudo style. }
PseudoElementMatches cSS rule collection for a single pseudo style.
func (PseudoElementMatches) MarshalEasyJSON ¶
func (v PseudoElementMatches) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PseudoElementMatches) MarshalJSON ¶
func (v PseudoElementMatches) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PseudoElementMatches) UnmarshalEasyJSON ¶
func (v *PseudoElementMatches) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PseudoElementMatches) UnmarshalJSON ¶
func (v *PseudoElementMatches) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Rule ¶
type Rule struct { StyleSheetID StyleSheetID `json:"styleSheetId,omitempty"` // The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from. SelectorList *SelectorList `json:"selectorList,omitempty"` // Rule selector data. Origin StyleSheetOrigin `json:"origin,omitempty"` // Parent stylesheet's origin. Style *Style `json:"style,omitempty"` // 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.
func (Rule) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Rule) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Rule) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Rule) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type RuleMatch ¶
type RuleMatch struct { Rule *Rule `json:"rule,omitempty"` // CSS rule in the match. MatchingSelectors []int64 `json:"matchingSelectors,omitempty"` // Matching selector indices in the rule's selectorList selectors (0-based). }
RuleMatch match data for a CSS rule.
func (RuleMatch) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (RuleMatch) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*RuleMatch) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RuleMatch) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type RuleUsage ¶
type RuleUsage 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. StartOffset float64 `json:"startOffset,omitempty"` // Offset of the start of the rule (including selector) from the beginning of the stylesheet. EndOffset float64 `json:"endOffset,omitempty"` // Offset of the end of the rule body from the beginning of the stylesheet. Used bool `json:"used,omitempty"` // Indicates whether the rule was actually used by some element in the page. }
RuleUsage cSS coverage information.
func (RuleUsage) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (RuleUsage) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*RuleUsage) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RuleUsage) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type SelectorList ¶
type SelectorList struct { Selectors []*Value `json:"selectors,omitempty"` // Selectors in the list. Text string `json:"text,omitempty"` // Rule selector text. }
SelectorList selector list data.
func (SelectorList) MarshalEasyJSON ¶
func (v SelectorList) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SelectorList) MarshalJSON ¶
func (v SelectorList) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SelectorList) UnmarshalEasyJSON ¶
func (v *SelectorList) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SelectorList) UnmarshalJSON ¶
func (v *SelectorList) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetEffectivePropertyValueForNodeParams ¶
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 ¶
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.
parameters:
nodeID - The element id for which to set property. propertyName value
func (*SetEffectivePropertyValueForNodeParams) Do ¶
func (p *SetEffectivePropertyValueForNodeParams) Do(ctxt context.Context, h cdp.Handler) (err error)
Do executes CSS.setEffectivePropertyValueForNode against the provided context and target handler.
func (SetEffectivePropertyValueForNodeParams) MarshalEasyJSON ¶
func (v SetEffectivePropertyValueForNodeParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetEffectivePropertyValueForNodeParams) MarshalJSON ¶
func (v SetEffectivePropertyValueForNodeParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetEffectivePropertyValueForNodeParams) UnmarshalEasyJSON ¶
func (v *SetEffectivePropertyValueForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetEffectivePropertyValueForNodeParams) UnmarshalJSON ¶
func (v *SetEffectivePropertyValueForNodeParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetKeyframeKeyParams ¶
type SetKeyframeKeyParams struct { StyleSheetID StyleSheetID `json:"styleSheetId"` Range *SourceRange `json:"range"` KeyText string `json:"keyText"` }
SetKeyframeKeyParams modifies the keyframe rule key text.
func SetKeyframeKey ¶
func SetKeyframeKey(styleSheetID StyleSheetID, rangeVal *SourceRange, keyText string) *SetKeyframeKeyParams
SetKeyframeKey modifies the keyframe rule key text.
parameters:
styleSheetID range keyText
func (*SetKeyframeKeyParams) Do ¶
Do executes CSS.setKeyframeKey against the provided context and target handler.
returns:
keyText - The resulting key text after modification.
func (SetKeyframeKeyParams) MarshalEasyJSON ¶
func (v SetKeyframeKeyParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetKeyframeKeyParams) MarshalJSON ¶
func (v SetKeyframeKeyParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetKeyframeKeyParams) UnmarshalEasyJSON ¶
func (v *SetKeyframeKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetKeyframeKeyParams) UnmarshalJSON ¶
func (v *SetKeyframeKeyParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetKeyframeKeyReturns ¶
type SetKeyframeKeyReturns struct {
KeyText *Value `json:"keyText,omitempty"` // The resulting key text after modification.
}
SetKeyframeKeyReturns return values.
func (SetKeyframeKeyReturns) MarshalEasyJSON ¶
func (v SetKeyframeKeyReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetKeyframeKeyReturns) MarshalJSON ¶
func (v SetKeyframeKeyReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetKeyframeKeyReturns) UnmarshalEasyJSON ¶
func (v *SetKeyframeKeyReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetKeyframeKeyReturns) UnmarshalJSON ¶
func (v *SetKeyframeKeyReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetMediaTextParams ¶
type SetMediaTextParams struct { StyleSheetID StyleSheetID `json:"styleSheetId"` Range *SourceRange `json:"range"` Text string `json:"text"` }
SetMediaTextParams modifies the rule selector.
func SetMediaText ¶
func SetMediaText(styleSheetID StyleSheetID, rangeVal *SourceRange, text string) *SetMediaTextParams
SetMediaText modifies the rule selector.
parameters:
styleSheetID range text
func (*SetMediaTextParams) Do ¶
Do executes CSS.setMediaText against the provided context and target handler.
returns:
media - The resulting CSS media rule after modification.
func (SetMediaTextParams) MarshalEasyJSON ¶
func (v SetMediaTextParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetMediaTextParams) MarshalJSON ¶
func (v SetMediaTextParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetMediaTextParams) UnmarshalEasyJSON ¶
func (v *SetMediaTextParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetMediaTextParams) UnmarshalJSON ¶
func (v *SetMediaTextParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetMediaTextReturns ¶
type SetMediaTextReturns struct {
Media *Media `json:"media,omitempty"` // The resulting CSS media rule after modification.
}
SetMediaTextReturns return values.
func (SetMediaTextReturns) MarshalEasyJSON ¶
func (v SetMediaTextReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetMediaTextReturns) MarshalJSON ¶
func (v SetMediaTextReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetMediaTextReturns) UnmarshalEasyJSON ¶
func (v *SetMediaTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetMediaTextReturns) UnmarshalJSON ¶
func (v *SetMediaTextReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetRuleSelectorParams ¶
type SetRuleSelectorParams struct { StyleSheetID StyleSheetID `json:"styleSheetId"` Range *SourceRange `json:"range"` Selector string `json:"selector"` }
SetRuleSelectorParams modifies the rule selector.
func SetRuleSelector ¶
func SetRuleSelector(styleSheetID StyleSheetID, rangeVal *SourceRange, selector string) *SetRuleSelectorParams
SetRuleSelector modifies the rule selector.
parameters:
styleSheetID range selector
func (*SetRuleSelectorParams) Do ¶
func (p *SetRuleSelectorParams) Do(ctxt context.Context, h cdp.Handler) (selectorList *SelectorList, err error)
Do executes CSS.setRuleSelector against the provided context and target handler.
returns:
selectorList - The resulting selector list after modification.
func (SetRuleSelectorParams) MarshalEasyJSON ¶
func (v SetRuleSelectorParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetRuleSelectorParams) MarshalJSON ¶
func (v SetRuleSelectorParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetRuleSelectorParams) UnmarshalEasyJSON ¶
func (v *SetRuleSelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetRuleSelectorParams) UnmarshalJSON ¶
func (v *SetRuleSelectorParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetRuleSelectorReturns ¶
type SetRuleSelectorReturns struct {
SelectorList *SelectorList `json:"selectorList,omitempty"` // The resulting selector list after modification.
}
SetRuleSelectorReturns return values.
func (SetRuleSelectorReturns) MarshalEasyJSON ¶
func (v SetRuleSelectorReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetRuleSelectorReturns) MarshalJSON ¶
func (v SetRuleSelectorReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetRuleSelectorReturns) UnmarshalEasyJSON ¶
func (v *SetRuleSelectorReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetRuleSelectorReturns) UnmarshalJSON ¶
func (v *SetRuleSelectorReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetStyleSheetTextParams ¶
type SetStyleSheetTextParams struct { StyleSheetID StyleSheetID `json:"styleSheetId"` Text string `json:"text"` }
SetStyleSheetTextParams sets the new stylesheet text.
func SetStyleSheetText ¶
func SetStyleSheetText(styleSheetID StyleSheetID, text string) *SetStyleSheetTextParams
SetStyleSheetText sets the new stylesheet text.
parameters:
styleSheetID text
func (*SetStyleSheetTextParams) Do ¶
func (p *SetStyleSheetTextParams) Do(ctxt context.Context, h cdp.Handler) (sourceMapURL string, err error)
Do executes CSS.setStyleSheetText against the provided context and target handler.
returns:
sourceMapURL - URL of source map associated with script (if any).
func (SetStyleSheetTextParams) MarshalEasyJSON ¶
func (v SetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetStyleSheetTextParams) MarshalJSON ¶
func (v SetStyleSheetTextParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetStyleSheetTextParams) UnmarshalEasyJSON ¶
func (v *SetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetStyleSheetTextParams) UnmarshalJSON ¶
func (v *SetStyleSheetTextParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetStyleSheetTextReturns ¶
type SetStyleSheetTextReturns struct {
SourceMapURL string `json:"sourceMapURL,omitempty"` // URL of source map associated with script (if any).
}
SetStyleSheetTextReturns return values.
func (SetStyleSheetTextReturns) MarshalEasyJSON ¶
func (v SetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetStyleSheetTextReturns) MarshalJSON ¶
func (v SetStyleSheetTextReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetStyleSheetTextReturns) UnmarshalEasyJSON ¶
func (v *SetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetStyleSheetTextReturns) UnmarshalJSON ¶
func (v *SetStyleSheetTextReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetStyleTextsParams ¶
type SetStyleTextsParams struct {
Edits []*StyleDeclarationEdit `json:"edits"`
}
SetStyleTextsParams applies specified style edits one after another in the given order.
func SetStyleTexts ¶
func SetStyleTexts(edits []*StyleDeclarationEdit) *SetStyleTextsParams
SetStyleTexts applies specified style edits one after another in the given order.
parameters:
edits
func (*SetStyleTextsParams) Do ¶
Do executes CSS.setStyleTexts against the provided context and target handler.
returns:
styles - The resulting styles after modification.
func (SetStyleTextsParams) MarshalEasyJSON ¶
func (v SetStyleTextsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetStyleTextsParams) MarshalJSON ¶
func (v SetStyleTextsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetStyleTextsParams) UnmarshalEasyJSON ¶
func (v *SetStyleTextsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetStyleTextsParams) UnmarshalJSON ¶
func (v *SetStyleTextsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetStyleTextsReturns ¶
type SetStyleTextsReturns struct {
Styles []*Style `json:"styles,omitempty"` // The resulting styles after modification.
}
SetStyleTextsReturns return values.
func (SetStyleTextsReturns) MarshalEasyJSON ¶
func (v SetStyleTextsReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetStyleTextsReturns) MarshalJSON ¶
func (v SetStyleTextsReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetStyleTextsReturns) UnmarshalEasyJSON ¶
func (v *SetStyleTextsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetStyleTextsReturns) UnmarshalJSON ¶
func (v *SetStyleTextsReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ShorthandEntry ¶
type ShorthandEntry struct { Name string `json:"name,omitempty"` // Shorthand name. Value string `json:"value,omitempty"` // Shorthand value. Important bool `json:"important,omitempty"` // Whether the property has "!important" annotation (implies false if absent). }
ShorthandEntry [no description].
func (ShorthandEntry) MarshalEasyJSON ¶
func (v ShorthandEntry) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ShorthandEntry) MarshalJSON ¶
func (v ShorthandEntry) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ShorthandEntry) UnmarshalEasyJSON ¶
func (v *ShorthandEntry) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ShorthandEntry) UnmarshalJSON ¶
func (v *ShorthandEntry) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SourceRange ¶
type SourceRange struct { StartLine int64 `json:"startLine,omitempty"` // Start line of range. StartColumn int64 `json:"startColumn,omitempty"` // Start column of range (inclusive). EndLine int64 `json:"endLine,omitempty"` // End line of range EndColumn int64 `json:"endColumn,omitempty"` // End column of range (exclusive). }
SourceRange text range within a resource. All numbers are zero-based.
func (SourceRange) MarshalEasyJSON ¶
func (v SourceRange) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SourceRange) MarshalJSON ¶
func (v SourceRange) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SourceRange) UnmarshalEasyJSON ¶
func (v *SourceRange) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SourceRange) UnmarshalJSON ¶
func (v *SourceRange) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StartRuleUsageTrackingParams ¶
type StartRuleUsageTrackingParams struct{}
StartRuleUsageTrackingParams enables the selector recording.
func StartRuleUsageTracking ¶
func StartRuleUsageTracking() *StartRuleUsageTrackingParams
StartRuleUsageTracking enables the selector recording.
func (*StartRuleUsageTrackingParams) Do ¶
Do executes CSS.startRuleUsageTracking against the provided context and target handler.
func (StartRuleUsageTrackingParams) MarshalEasyJSON ¶
func (v StartRuleUsageTrackingParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StartRuleUsageTrackingParams) MarshalJSON ¶
func (v StartRuleUsageTrackingParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StartRuleUsageTrackingParams) UnmarshalEasyJSON ¶
func (v *StartRuleUsageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StartRuleUsageTrackingParams) UnmarshalJSON ¶
func (v *StartRuleUsageTrackingParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StopRuleUsageTrackingParams ¶
type StopRuleUsageTrackingParams struct{}
StopRuleUsageTrackingParams the list of rules with an indication of whether these were used.
func StopRuleUsageTracking ¶
func StopRuleUsageTracking() *StopRuleUsageTrackingParams
StopRuleUsageTracking the list of rules with an indication of whether these were used.
func (*StopRuleUsageTrackingParams) Do ¶
func (p *StopRuleUsageTrackingParams) Do(ctxt context.Context, h cdp.Handler) (ruleUsage []*RuleUsage, err error)
Do executes CSS.stopRuleUsageTracking against the provided context and target handler.
returns:
ruleUsage
func (StopRuleUsageTrackingParams) MarshalEasyJSON ¶
func (v StopRuleUsageTrackingParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StopRuleUsageTrackingParams) MarshalJSON ¶
func (v StopRuleUsageTrackingParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StopRuleUsageTrackingParams) UnmarshalEasyJSON ¶
func (v *StopRuleUsageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StopRuleUsageTrackingParams) UnmarshalJSON ¶
func (v *StopRuleUsageTrackingParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StopRuleUsageTrackingReturns ¶
type StopRuleUsageTrackingReturns struct {
RuleUsage []*RuleUsage `json:"ruleUsage,omitempty"`
}
StopRuleUsageTrackingReturns return values.
func (StopRuleUsageTrackingReturns) MarshalEasyJSON ¶
func (v StopRuleUsageTrackingReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StopRuleUsageTrackingReturns) MarshalJSON ¶
func (v StopRuleUsageTrackingReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StopRuleUsageTrackingReturns) UnmarshalEasyJSON ¶
func (v *StopRuleUsageTrackingReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StopRuleUsageTrackingReturns) UnmarshalJSON ¶
func (v *StopRuleUsageTrackingReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Style ¶
type Style struct { StyleSheetID StyleSheetID `json:"styleSheetId,omitempty"` // The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from. CSSProperties []*Property `json:"cssProperties,omitempty"` // CSS properties in the style. ShorthandEntries []*ShorthandEntry `json:"shorthandEntries,omitempty"` // 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.
func (Style) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Style) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Style) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Style) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type StyleDeclarationEdit ¶
type StyleDeclarationEdit struct { StyleSheetID StyleSheetID `json:"styleSheetId,omitempty"` // The css style sheet identifier. Range *SourceRange `json:"range,omitempty"` // The range of the style text in the enclosing stylesheet. Text string `json:"text,omitempty"` // New style text. }
StyleDeclarationEdit a descriptor of operation to mutate style declaration text.
func (StyleDeclarationEdit) MarshalEasyJSON ¶
func (v StyleDeclarationEdit) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StyleDeclarationEdit) MarshalJSON ¶
func (v StyleDeclarationEdit) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StyleDeclarationEdit) UnmarshalEasyJSON ¶
func (v *StyleDeclarationEdit) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StyleDeclarationEdit) UnmarshalJSON ¶
func (v *StyleDeclarationEdit) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StyleSheetHeader ¶
type StyleSheetHeader struct { StyleSheetID StyleSheetID `json:"styleSheetId,omitempty"` // The stylesheet identifier. FrameID cdp.FrameID `json:"frameId,omitempty"` // Owner frame identifier. SourceURL string `json:"sourceURL,omitempty"` // Stylesheet resource URL. SourceMapURL string `json:"sourceMapURL,omitempty"` // URL of source map associated with the stylesheet (if any). Origin StyleSheetOrigin `json:"origin,omitempty"` // Stylesheet origin. Title string `json:"title,omitempty"` // Stylesheet title. OwnerNode cdp.BackendNodeID `json:"ownerNode,omitempty"` // The backend id for the owner node of the stylesheet. Disabled bool `json:"disabled,omitempty"` // 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,omitempty"` // Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags. StartLine float64 `json:"startLine,omitempty"` // Line offset of the stylesheet within the resource (zero based). StartColumn float64 `json:"startColumn,omitempty"` // Column offset of the stylesheet within the resource (zero based). Length float64 `json:"length,omitempty"` // Size of the content (in characters). }
StyleSheetHeader cSS stylesheet metainformation.
func (StyleSheetHeader) MarshalEasyJSON ¶
func (v StyleSheetHeader) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StyleSheetHeader) MarshalJSON ¶
func (v StyleSheetHeader) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StyleSheetHeader) UnmarshalEasyJSON ¶
func (v *StyleSheetHeader) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StyleSheetHeader) UnmarshalJSON ¶
func (v *StyleSheetHeader) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StyleSheetID ¶
type StyleSheetID string
StyleSheetID [no description].
func (StyleSheetID) String ¶
func (t StyleSheetID) String() string
String returns the StyleSheetID as string value.
type StyleSheetOrigin ¶
type StyleSheetOrigin string
StyleSheetOrigin stylesheet type: "injected" for stylesheets injected via extension, "user-agent" for user-agent stylesheets, "inspector" for stylesheets created by the inspector (i.e. those holding the "via inspector" rules), "regular" for regular stylesheets.
const ( StyleSheetOriginInjected StyleSheetOrigin = "injected" StyleSheetOriginUserAgent StyleSheetOrigin = "user-agent" StyleSheetOriginInspector StyleSheetOrigin = "inspector" StyleSheetOriginRegular StyleSheetOrigin = "regular" )
StyleSheetOrigin values.
func (StyleSheetOrigin) MarshalEasyJSON ¶
func (t StyleSheetOrigin) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (StyleSheetOrigin) MarshalJSON ¶
func (t StyleSheetOrigin) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (StyleSheetOrigin) String ¶
func (t StyleSheetOrigin) String() string
String returns the StyleSheetOrigin as string value.
func (*StyleSheetOrigin) UnmarshalEasyJSON ¶
func (t *StyleSheetOrigin) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*StyleSheetOrigin) UnmarshalJSON ¶
func (t *StyleSheetOrigin) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type TakeCoverageDeltaParams ¶
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 ¶
func TakeCoverageDelta() *TakeCoverageDeltaParams
TakeCoverageDelta obtain list of rules that became used since last call to this method (or since start of coverage instrumentation).
func (*TakeCoverageDeltaParams) Do ¶
func (p *TakeCoverageDeltaParams) Do(ctxt context.Context, h cdp.Handler) (coverage []*RuleUsage, err error)
Do executes CSS.takeCoverageDelta against the provided context and target handler.
returns:
coverage
func (TakeCoverageDeltaParams) MarshalEasyJSON ¶
func (v TakeCoverageDeltaParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (TakeCoverageDeltaParams) MarshalJSON ¶
func (v TakeCoverageDeltaParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*TakeCoverageDeltaParams) UnmarshalEasyJSON ¶
func (v *TakeCoverageDeltaParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*TakeCoverageDeltaParams) UnmarshalJSON ¶
func (v *TakeCoverageDeltaParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type TakeCoverageDeltaReturns ¶
type TakeCoverageDeltaReturns struct {
Coverage []*RuleUsage `json:"coverage,omitempty"`
}
TakeCoverageDeltaReturns return values.
func (TakeCoverageDeltaReturns) MarshalEasyJSON ¶
func (v TakeCoverageDeltaReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (TakeCoverageDeltaReturns) MarshalJSON ¶
func (v TakeCoverageDeltaReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*TakeCoverageDeltaReturns) UnmarshalEasyJSON ¶
func (v *TakeCoverageDeltaReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*TakeCoverageDeltaReturns) UnmarshalJSON ¶
func (v *TakeCoverageDeltaReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Value ¶
type Value struct { Text string `json:"text,omitempty"` // 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).
func (Value) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Value) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Value) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Value) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface