css

package
v0.0.0-...-076f285 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddRuleCommand

type AddRuleCommand struct {
	DestinationTargetID string

	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.
	// contains filtered or unexported fields
}

func (*AddRuleCommand) Initalize

func (c *AddRuleCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*AddRuleCommand) Respond

func (c *AddRuleCommand) Respond(r *AddRuleReturn)

func (*AddRuleCommand) RespondWithError

func (c *AddRuleCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type AddRuleCommandFn

type AddRuleCommandFn struct {
	// contains filtered or unexported fields
}

func (*AddRuleCommandFn) Load

func (a *AddRuleCommandFn) Load() func(AddRuleCommand)

func (*AddRuleCommandFn) Store

func (a *AddRuleCommandFn) Store(fn func(AddRuleCommand))

type AddRuleReturn

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

type CSSAgent

type CSSAgent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(conn *shared.Connection) *CSSAgent

func (*CSSAgent) FireFontsUpdated

func (agent *CSSAgent) FireFontsUpdated()

func (*CSSAgent) FireFontsUpdatedOnTarget

func (agent *CSSAgent) FireFontsUpdatedOnTarget(targetId string)

func (*CSSAgent) FireMediaQueryResultChanged

func (agent *CSSAgent) FireMediaQueryResultChanged()

Dispatchable Events

func (*CSSAgent) FireMediaQueryResultChangedOnTarget

func (agent *CSSAgent) FireMediaQueryResultChangedOnTarget(targetId string)

func (*CSSAgent) FireStyleSheetAdded

func (agent *CSSAgent) FireStyleSheetAdded(event StyleSheetAddedEvent)

func (*CSSAgent) FireStyleSheetAddedOnTarget

func (agent *CSSAgent) FireStyleSheetAddedOnTarget(targetId string, event StyleSheetAddedEvent)

func (*CSSAgent) FireStyleSheetChanged

func (agent *CSSAgent) FireStyleSheetChanged(event StyleSheetChangedEvent)

func (*CSSAgent) FireStyleSheetChangedOnTarget

func (agent *CSSAgent) FireStyleSheetChangedOnTarget(targetId string, event StyleSheetChangedEvent)

func (*CSSAgent) FireStyleSheetRemoved

func (agent *CSSAgent) FireStyleSheetRemoved(event StyleSheetRemovedEvent)

func (*CSSAgent) FireStyleSheetRemovedOnTarget

func (agent *CSSAgent) FireStyleSheetRemovedOnTarget(targetId string, event StyleSheetRemovedEvent)

func (*CSSAgent) Name

func (agent *CSSAgent) Name() string

func (*CSSAgent) ProcessCommand

func (agent *CSSAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)

func (*CSSAgent) SetAddRuleHandler

func (agent *CSSAgent) SetAddRuleHandler(handler func(AddRuleCommand))

func (*CSSAgent) SetCollectClassNamesHandler

func (agent *CSSAgent) SetCollectClassNamesHandler(handler func(CollectClassNamesCommand))

func (*CSSAgent) SetCreateStyleSheetHandler

func (agent *CSSAgent) SetCreateStyleSheetHandler(handler func(CreateStyleSheetCommand))

func (*CSSAgent) SetDisableHandler

func (agent *CSSAgent) SetDisableHandler(handler func(DisableCommand))

func (*CSSAgent) SetEnableHandler

func (agent *CSSAgent) SetEnableHandler(handler func(EnableCommand))

Commands Sent From Frontend

func (*CSSAgent) SetForcePseudoStateHandler

func (agent *CSSAgent) SetForcePseudoStateHandler(handler func(ForcePseudoStateCommand))

func (*CSSAgent) SetGetBackgroundColorsHandler

func (agent *CSSAgent) SetGetBackgroundColorsHandler(handler func(GetBackgroundColorsCommand))

func (*CSSAgent) SetGetComputedStyleForNodeHandler

func (agent *CSSAgent) SetGetComputedStyleForNodeHandler(handler func(GetComputedStyleForNodeCommand))

func (*CSSAgent) SetGetInlineStylesForNodeHandler

func (agent *CSSAgent) SetGetInlineStylesForNodeHandler(handler func(GetInlineStylesForNodeCommand))

func (*CSSAgent) SetGetLayoutTreeAndStylesHandler

func (agent *CSSAgent) SetGetLayoutTreeAndStylesHandler(handler func(GetLayoutTreeAndStylesCommand))

func (*CSSAgent) SetGetMatchedStylesForNodeHandler

func (agent *CSSAgent) SetGetMatchedStylesForNodeHandler(handler func(GetMatchedStylesForNodeCommand))

func (*CSSAgent) SetGetMediaQueriesHandler

func (agent *CSSAgent) SetGetMediaQueriesHandler(handler func(GetMediaQueriesCommand))

func (*CSSAgent) SetGetPlatformFontsForNodeHandler

func (agent *CSSAgent) SetGetPlatformFontsForNodeHandler(handler func(GetPlatformFontsForNodeCommand))

func (*CSSAgent) SetGetStyleSheetTextHandler

func (agent *CSSAgent) SetGetStyleSheetTextHandler(handler func(GetStyleSheetTextCommand))

func (*CSSAgent) SetSetEffectivePropertyValueForNodeHandler

func (agent *CSSAgent) SetSetEffectivePropertyValueForNodeHandler(handler func(SetEffectivePropertyValueForNodeCommand))

func (*CSSAgent) SetSetKeyframeKeyHandler

func (agent *CSSAgent) SetSetKeyframeKeyHandler(handler func(SetKeyframeKeyCommand))

func (*CSSAgent) SetSetMediaTextHandler

func (agent *CSSAgent) SetSetMediaTextHandler(handler func(SetMediaTextCommand))

func (*CSSAgent) SetSetRuleSelectorHandler

func (agent *CSSAgent) SetSetRuleSelectorHandler(handler func(SetRuleSelectorCommand))

func (*CSSAgent) SetSetStyleSheetTextHandler

func (agent *CSSAgent) SetSetStyleSheetTextHandler(handler func(SetStyleSheetTextCommand))

func (*CSSAgent) SetSetStyleTextsHandler

func (agent *CSSAgent) SetSetStyleTextsHandler(handler func(SetStyleTextsCommand))

func (*CSSAgent) SetStartRuleUsageTrackingHandler

func (agent *CSSAgent) SetStartRuleUsageTrackingHandler(handler func(StartRuleUsageTrackingCommand))

func (*CSSAgent) SetStopRuleUsageTrackingHandler

func (agent *CSSAgent) SetStopRuleUsageTrackingHandler(handler func(StopRuleUsageTrackingCommand))

type CSSComputedStyleProperty

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

type CSSKeyframeRule

type CSSKeyframeRule 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        CSSStyle         `json:"style"`                  // Associated style declaration.
}

type CSSKeyframesRule

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

type CSSMedia

type CSSMedia struct {
	Text         string             `json:"text"`                   // Media query text.
	Source       CSSMediaSourceEnum `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"`    // [Experimental] Array of media queries.
}

type CSSMediaSourceEnum

type CSSMediaSourceEnum string
const (
	CSSMediaSourceMediaRule   CSSMediaSourceEnum = "mediaRule"
	CSSMediaSourceImportRule  CSSMediaSourceEnum = "importRule"
	CSSMediaSourceLinkedSheet CSSMediaSourceEnum = "linkedSheet"
	CSSMediaSourceInlineSheet CSSMediaSourceEnum = "inlineSheet"
)

type CSSProperty

type CSSProperty 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 <code>false</code> if absent).
	Implicit  *bool        `json:"implicit,omitempty"`  // Whether the property is implicit (implies <code>false</code> 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 <code>true</code> 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).
}

type CSSRule

type CSSRule 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        CSSStyle         `json:"style"`                  // Associated style declaration.
	Media        *[]CSSMedia      `json:"media,omitempty"`        // Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.
}

type CSSStyle

type CSSStyle 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    []CSSProperty    `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).
}

type CSSStyleSheetHeader

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

type CollectClassNamesCommand

type CollectClassNamesCommand struct {
	DestinationTargetID string

	StyleSheetId StyleSheetId `json:"styleSheetId"`
	// contains filtered or unexported fields
}

func (*CollectClassNamesCommand) Initalize

func (c *CollectClassNamesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*CollectClassNamesCommand) Respond

func (*CollectClassNamesCommand) RespondWithError

func (c *CollectClassNamesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type CollectClassNamesCommandFn

type CollectClassNamesCommandFn struct {
	// contains filtered or unexported fields
}

func (*CollectClassNamesCommandFn) Load

func (*CollectClassNamesCommandFn) Store

type CollectClassNamesReturn

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

type ComputedStyle

type ComputedStyle struct {
	Properties []CSSComputedStyleProperty `json:"properties"`
}

type CreateStyleSheetCommand

type CreateStyleSheetCommand struct {
	DestinationTargetID string

	FrameId page.FrameId `json:"frameId"` // Identifier of the frame where "via-inspector" stylesheet should be created.
	// contains filtered or unexported fields
}

func (*CreateStyleSheetCommand) Initalize

func (c *CreateStyleSheetCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*CreateStyleSheetCommand) Respond

func (*CreateStyleSheetCommand) RespondWithError

func (c *CreateStyleSheetCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type CreateStyleSheetCommandFn

type CreateStyleSheetCommandFn struct {
	// contains filtered or unexported fields
}

func (*CreateStyleSheetCommandFn) Load

func (*CreateStyleSheetCommandFn) Store

type CreateStyleSheetReturn

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

type DisableCommand

type DisableCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*DisableCommand) Initalize

func (c *DisableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*DisableCommand) Respond

func (c *DisableCommand) Respond()

func (*DisableCommand) RespondWithError

func (c *DisableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type DisableCommandFn

type DisableCommandFn struct {
	// contains filtered or unexported fields
}

func (*DisableCommandFn) Load

func (a *DisableCommandFn) Load() func(DisableCommand)

func (*DisableCommandFn) Store

func (a *DisableCommandFn) Store(fn func(DisableCommand))

type DisableReturn

type DisableReturn struct {
}

type EnableCommand

type EnableCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*EnableCommand) Initalize

func (c *EnableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*EnableCommand) Respond

func (c *EnableCommand) Respond()

func (*EnableCommand) RespondWithError

func (c *EnableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type EnableCommandFn

type EnableCommandFn struct {
	// contains filtered or unexported fields
}

func (*EnableCommandFn) Load

func (a *EnableCommandFn) Load() func(EnableCommand)

func (*EnableCommandFn) Store

func (a *EnableCommandFn) Store(fn func(EnableCommand))

type EnableReturn

type EnableReturn struct {
}

type FontsUpdatedEvent

type FontsUpdatedEvent struct {
}

type ForcePseudoStateCommand

type ForcePseudoStateCommand struct {
	DestinationTargetID string

	NodeId              dom.NodeId                                `json:"nodeId"`              // The element id for which to force the pseudo state.
	ForcedPseudoClasses []ForcePseudoStateForcedPseudoClassesEnum `json:"forcedPseudoClasses"` // Element pseudo classes to force when computing the element's style.
	// contains filtered or unexported fields
}

func (*ForcePseudoStateCommand) Initalize

func (c *ForcePseudoStateCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*ForcePseudoStateCommand) Respond

func (c *ForcePseudoStateCommand) Respond()

func (*ForcePseudoStateCommand) RespondWithError

func (c *ForcePseudoStateCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type ForcePseudoStateCommandFn

type ForcePseudoStateCommandFn struct {
	// contains filtered or unexported fields
}

func (*ForcePseudoStateCommandFn) Load

func (*ForcePseudoStateCommandFn) Store

type ForcePseudoStateForcedPseudoClassesEnum

type ForcePseudoStateForcedPseudoClassesEnum string
const (
	ForcePseudoStateForcedPseudoClassesActive  ForcePseudoStateForcedPseudoClassesEnum = "active"
	ForcePseudoStateForcedPseudoClassesFocus   ForcePseudoStateForcedPseudoClassesEnum = "focus"
	ForcePseudoStateForcedPseudoClassesHover   ForcePseudoStateForcedPseudoClassesEnum = "hover"
	ForcePseudoStateForcedPseudoClassesVisited ForcePseudoStateForcedPseudoClassesEnum = "visited"
)

type ForcePseudoStateReturn

type ForcePseudoStateReturn struct {
}

type GetBackgroundColorsCommand

type GetBackgroundColorsCommand struct {
	DestinationTargetID string

	NodeId dom.NodeId `json:"nodeId"` // Id of the node to get background colors for.
	// contains filtered or unexported fields
}

func (*GetBackgroundColorsCommand) Initalize

func (c *GetBackgroundColorsCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetBackgroundColorsCommand) Respond

func (*GetBackgroundColorsCommand) RespondWithError

func (c *GetBackgroundColorsCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetBackgroundColorsCommandFn

type GetBackgroundColorsCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetBackgroundColorsCommandFn) Load

func (*GetBackgroundColorsCommandFn) Store

type GetBackgroundColorsReturn

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

type GetComputedStyleForNodeCommand

type GetComputedStyleForNodeCommand struct {
	DestinationTargetID string

	NodeId dom.NodeId `json:"nodeId"`
	// contains filtered or unexported fields
}

func (*GetComputedStyleForNodeCommand) Initalize

func (c *GetComputedStyleForNodeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetComputedStyleForNodeCommand) Respond

func (*GetComputedStyleForNodeCommand) RespondWithError

func (c *GetComputedStyleForNodeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetComputedStyleForNodeCommandFn

type GetComputedStyleForNodeCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetComputedStyleForNodeCommandFn) Load

func (*GetComputedStyleForNodeCommandFn) Store

type GetComputedStyleForNodeReturn

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

type GetInlineStylesForNodeCommand

type GetInlineStylesForNodeCommand struct {
	DestinationTargetID string

	NodeId dom.NodeId `json:"nodeId"`
	// contains filtered or unexported fields
}

func (*GetInlineStylesForNodeCommand) Initalize

func (c *GetInlineStylesForNodeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetInlineStylesForNodeCommand) Respond

func (*GetInlineStylesForNodeCommand) RespondWithError

func (c *GetInlineStylesForNodeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetInlineStylesForNodeCommandFn

type GetInlineStylesForNodeCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetInlineStylesForNodeCommandFn) Load

func (*GetInlineStylesForNodeCommandFn) Store

type GetInlineStylesForNodeReturn

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

type GetLayoutTreeAndStylesCommand

type GetLayoutTreeAndStylesCommand struct {
	DestinationTargetID string

	ComputedStyleWhitelist []string `json:"computedStyleWhitelist"` // Whitelist of computed styles to return.
	// contains filtered or unexported fields
}

func (*GetLayoutTreeAndStylesCommand) Initalize

func (c *GetLayoutTreeAndStylesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetLayoutTreeAndStylesCommand) Respond

func (*GetLayoutTreeAndStylesCommand) RespondWithError

func (c *GetLayoutTreeAndStylesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetLayoutTreeAndStylesCommandFn

type GetLayoutTreeAndStylesCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetLayoutTreeAndStylesCommandFn) Load

func (*GetLayoutTreeAndStylesCommandFn) Store

type GetLayoutTreeAndStylesReturn

type GetLayoutTreeAndStylesReturn struct {
	LayoutTreeNodes []LayoutTreeNode `json:"layoutTreeNodes"`
	ComputedStyles  []ComputedStyle  `json:"computedStyles"`
}

type GetMatchedStylesForNodeCommand

type GetMatchedStylesForNodeCommand struct {
	DestinationTargetID string

	NodeId dom.NodeId `json:"nodeId"`
	// contains filtered or unexported fields
}

func (*GetMatchedStylesForNodeCommand) Initalize

func (c *GetMatchedStylesForNodeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetMatchedStylesForNodeCommand) Respond

func (*GetMatchedStylesForNodeCommand) RespondWithError

func (c *GetMatchedStylesForNodeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetMatchedStylesForNodeCommandFn

type GetMatchedStylesForNodeCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetMatchedStylesForNodeCommandFn) Load

func (*GetMatchedStylesForNodeCommandFn) Store

type GetMatchedStylesForNodeReturn

type GetMatchedStylesForNodeReturn struct {
	InlineStyle       *CSSStyle               `json:"inlineStyle,omitempty"`       // Inline style for the specified DOM node.
	AttributesStyle   *CSSStyle               `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 *[]CSSKeyframesRule     `json:"cssKeyframesRules,omitempty"` // A list of CSS keyframed animations matching this node.
}

type GetMediaQueriesCommand

type GetMediaQueriesCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*GetMediaQueriesCommand) Initalize

func (c *GetMediaQueriesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetMediaQueriesCommand) Respond

func (*GetMediaQueriesCommand) RespondWithError

func (c *GetMediaQueriesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetMediaQueriesCommandFn

type GetMediaQueriesCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetMediaQueriesCommandFn) Load

func (*GetMediaQueriesCommandFn) Store

type GetMediaQueriesReturn

type GetMediaQueriesReturn struct {
	Medias []CSSMedia `json:"medias"`
}

type GetPlatformFontsForNodeCommand

type GetPlatformFontsForNodeCommand struct {
	DestinationTargetID string

	NodeId dom.NodeId `json:"nodeId"`
	// contains filtered or unexported fields
}

func (*GetPlatformFontsForNodeCommand) Initalize

func (c *GetPlatformFontsForNodeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetPlatformFontsForNodeCommand) Respond

func (*GetPlatformFontsForNodeCommand) RespondWithError

func (c *GetPlatformFontsForNodeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetPlatformFontsForNodeCommandFn

type GetPlatformFontsForNodeCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetPlatformFontsForNodeCommandFn) Load

func (*GetPlatformFontsForNodeCommandFn) Store

type GetPlatformFontsForNodeReturn

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

type GetStyleSheetTextCommand

type GetStyleSheetTextCommand struct {
	DestinationTargetID string

	StyleSheetId StyleSheetId `json:"styleSheetId"`
	// contains filtered or unexported fields
}

func (*GetStyleSheetTextCommand) Initalize

func (c *GetStyleSheetTextCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetStyleSheetTextCommand) Respond

func (*GetStyleSheetTextCommand) RespondWithError

func (c *GetStyleSheetTextCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetStyleSheetTextCommandFn

type GetStyleSheetTextCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetStyleSheetTextCommandFn) Load

func (*GetStyleSheetTextCommandFn) Store

type GetStyleSheetTextReturn

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

type InheritedStyleEntry

type InheritedStyleEntry struct {
	InlineStyle     *CSSStyle   `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.
}

type InlineTextBox

type InlineTextBox struct {
	BoundingBox         dom.Rect `json:"boundingBox"`         // The absolute position bounding box.
	StartCharacterIndex int64    `json:"startCharacterIndex"` // The starting index in characters, for this post layout textbox substring.
	NumCharacters       int64    `json:"numCharacters"`       // The number of characters in this post layout textbox substring.
}

type LayoutTreeNode

type LayoutTreeNode struct {
	NodeId          dom.NodeId       `json:"nodeId"`                    // The id of the related DOM node matching one from DOM.GetDocument.
	BoundingBox     dom.Rect         `json:"boundingBox"`               // The absolute position bounding box.
	LayoutText      *string          `json:"layoutText,omitempty"`      // Contents of the LayoutText if any
	InlineTextNodes *[]InlineTextBox `json:"inlineTextNodes,omitempty"` // The post layout inline text nodes, if any.
	StyleIndex      *int64           `json:"styleIndex,omitempty"`      // Index into the computedStyles array returned by getLayoutTreeAndStyles.
}

type MediaQuery

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

type MediaQueryExpression

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

type MediaQueryResultChangedEvent

type MediaQueryResultChangedEvent struct {
}

type PlatformFontUsage

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

type PseudoElementMatches

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

type RuleMatch

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

type RuleUsage

type RuleUsage struct {
	StyleSheetId StyleSheetId `json:"styleSheetId"` // The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
	Range        SourceRange  `json:"range"`        // Style declaration range in the enclosing stylesheet (if available).
	Used         bool         `json:"used"`         // Indicates whether the rule was actually used by some element in the page.
}

type SelectorList

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

type SetEffectivePropertyValueForNodeCommand

type SetEffectivePropertyValueForNodeCommand struct {
	DestinationTargetID string

	NodeId       dom.NodeId `json:"nodeId"` // The element id for which to set property.
	PropertyName string     `json:"propertyName"`
	Value        string     `json:"value"`
	// contains filtered or unexported fields
}

func (*SetEffectivePropertyValueForNodeCommand) Initalize

func (c *SetEffectivePropertyValueForNodeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetEffectivePropertyValueForNodeCommand) Respond

func (*SetEffectivePropertyValueForNodeCommand) RespondWithError

func (c *SetEffectivePropertyValueForNodeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetEffectivePropertyValueForNodeCommandFn

type SetEffectivePropertyValueForNodeCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetEffectivePropertyValueForNodeCommandFn) Load

func (*SetEffectivePropertyValueForNodeCommandFn) Store

type SetEffectivePropertyValueForNodeReturn

type SetEffectivePropertyValueForNodeReturn struct {
}

type SetKeyframeKeyCommand

type SetKeyframeKeyCommand struct {
	DestinationTargetID string

	StyleSheetId StyleSheetId `json:"styleSheetId"`
	Range        SourceRange  `json:"range"`
	KeyText      string       `json:"keyText"`
	// contains filtered or unexported fields
}

func (*SetKeyframeKeyCommand) Initalize

func (c *SetKeyframeKeyCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetKeyframeKeyCommand) Respond

func (*SetKeyframeKeyCommand) RespondWithError

func (c *SetKeyframeKeyCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetKeyframeKeyCommandFn

type SetKeyframeKeyCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetKeyframeKeyCommandFn) Load

func (*SetKeyframeKeyCommandFn) Store

type SetKeyframeKeyReturn

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

type SetMediaTextCommand

type SetMediaTextCommand struct {
	DestinationTargetID string

	StyleSheetId StyleSheetId `json:"styleSheetId"`
	Range        SourceRange  `json:"range"`
	Text         string       `json:"text"`
	// contains filtered or unexported fields
}

func (*SetMediaTextCommand) Initalize

func (c *SetMediaTextCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetMediaTextCommand) Respond

func (c *SetMediaTextCommand) Respond(r *SetMediaTextReturn)

func (*SetMediaTextCommand) RespondWithError

func (c *SetMediaTextCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetMediaTextCommandFn

type SetMediaTextCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetMediaTextCommandFn) Load

func (*SetMediaTextCommandFn) Store

func (a *SetMediaTextCommandFn) Store(fn func(SetMediaTextCommand))

type SetMediaTextReturn

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

type SetRuleSelectorCommand

type SetRuleSelectorCommand struct {
	DestinationTargetID string

	StyleSheetId StyleSheetId `json:"styleSheetId"`
	Range        SourceRange  `json:"range"`
	Selector     string       `json:"selector"`
	// contains filtered or unexported fields
}

func (*SetRuleSelectorCommand) Initalize

func (c *SetRuleSelectorCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetRuleSelectorCommand) Respond

func (*SetRuleSelectorCommand) RespondWithError

func (c *SetRuleSelectorCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetRuleSelectorCommandFn

type SetRuleSelectorCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetRuleSelectorCommandFn) Load

func (*SetRuleSelectorCommandFn) Store

type SetRuleSelectorReturn

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

type SetStyleSheetTextCommand

type SetStyleSheetTextCommand struct {
	DestinationTargetID string

	StyleSheetId StyleSheetId `json:"styleSheetId"`
	Text         string       `json:"text"`
	// contains filtered or unexported fields
}

func (*SetStyleSheetTextCommand) Initalize

func (c *SetStyleSheetTextCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetStyleSheetTextCommand) Respond

func (*SetStyleSheetTextCommand) RespondWithError

func (c *SetStyleSheetTextCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetStyleSheetTextCommandFn

type SetStyleSheetTextCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetStyleSheetTextCommandFn) Load

func (*SetStyleSheetTextCommandFn) Store

type SetStyleSheetTextReturn

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

type SetStyleTextsCommand

type SetStyleTextsCommand struct {
	DestinationTargetID string

	Edits []StyleDeclarationEdit `json:"edits"`
	// contains filtered or unexported fields
}

func (*SetStyleTextsCommand) Initalize

func (c *SetStyleTextsCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetStyleTextsCommand) Respond

func (*SetStyleTextsCommand) RespondWithError

func (c *SetStyleTextsCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetStyleTextsCommandFn

type SetStyleTextsCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetStyleTextsCommandFn) Load

func (*SetStyleTextsCommandFn) Store

func (a *SetStyleTextsCommandFn) Store(fn func(SetStyleTextsCommand))

type SetStyleTextsReturn

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

type ShorthandEntry

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

type SourceRange

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

type StartRuleUsageTrackingCommand

type StartRuleUsageTrackingCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*StartRuleUsageTrackingCommand) Initalize

func (c *StartRuleUsageTrackingCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*StartRuleUsageTrackingCommand) Respond

func (c *StartRuleUsageTrackingCommand) Respond()

func (*StartRuleUsageTrackingCommand) RespondWithError

func (c *StartRuleUsageTrackingCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type StartRuleUsageTrackingCommandFn

type StartRuleUsageTrackingCommandFn struct {
	// contains filtered or unexported fields
}

func (*StartRuleUsageTrackingCommandFn) Load

func (*StartRuleUsageTrackingCommandFn) Store

type StartRuleUsageTrackingReturn

type StartRuleUsageTrackingReturn struct {
}

type StopRuleUsageTrackingCommand

type StopRuleUsageTrackingCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*StopRuleUsageTrackingCommand) Initalize

func (c *StopRuleUsageTrackingCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*StopRuleUsageTrackingCommand) Respond

func (*StopRuleUsageTrackingCommand) RespondWithError

func (c *StopRuleUsageTrackingCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type StopRuleUsageTrackingCommandFn

type StopRuleUsageTrackingCommandFn struct {
	// contains filtered or unexported fields
}

func (*StopRuleUsageTrackingCommandFn) Load

func (*StopRuleUsageTrackingCommandFn) Store

type StopRuleUsageTrackingReturn

type StopRuleUsageTrackingReturn struct {
	RuleUsage []RuleUsage `json:"ruleUsage"`
}

type StyleDeclarationEdit

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

type StyleSheetAddedEvent

type StyleSheetAddedEvent struct {
	Header CSSStyleSheetHeader `json:"header"` // Added stylesheet metainfo.
}

type StyleSheetChangedEvent

type StyleSheetChangedEvent struct {
	StyleSheetId StyleSheetId `json:"styleSheetId"`
}

type StyleSheetId

type StyleSheetId string

type StyleSheetOrigin

type StyleSheetOrigin string
const (
	StyleSheetOriginInjected      StyleSheetOrigin = "injected"
	StyleSheetOriginUserDashagent StyleSheetOrigin = "user-agent"
	StyleSheetOriginInspector     StyleSheetOrigin = "inspector"
	StyleSheetOriginRegular       StyleSheetOrigin = "regular"
)

type StyleSheetRemovedEvent

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

type Value

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

Jump to

Keyboard shortcuts

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