Documentation ¶
Index ¶
- type AddRuleCommand
- type AddRuleCommandFn
- type AddRuleReturn
- type CSSAgent
- func (agent *CSSAgent) FireFontsUpdated()
- func (agent *CSSAgent) FireFontsUpdatedOnTarget(targetId string)
- func (agent *CSSAgent) FireMediaQueryResultChanged()
- func (agent *CSSAgent) FireMediaQueryResultChangedOnTarget(targetId string)
- func (agent *CSSAgent) FireStyleSheetAdded(event StyleSheetAddedEvent)
- func (agent *CSSAgent) FireStyleSheetAddedOnTarget(targetId string, event StyleSheetAddedEvent)
- func (agent *CSSAgent) FireStyleSheetChanged(event StyleSheetChangedEvent)
- func (agent *CSSAgent) FireStyleSheetChangedOnTarget(targetId string, event StyleSheetChangedEvent)
- func (agent *CSSAgent) FireStyleSheetRemoved(event StyleSheetRemovedEvent)
- func (agent *CSSAgent) FireStyleSheetRemovedOnTarget(targetId string, event StyleSheetRemovedEvent)
- func (agent *CSSAgent) Name() string
- func (agent *CSSAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
- func (agent *CSSAgent) SetAddRuleHandler(handler func(AddRuleCommand))
- func (agent *CSSAgent) SetCollectClassNamesHandler(handler func(CollectClassNamesCommand))
- func (agent *CSSAgent) SetCreateStyleSheetHandler(handler func(CreateStyleSheetCommand))
- func (agent *CSSAgent) SetDisableHandler(handler func(DisableCommand))
- func (agent *CSSAgent) SetEnableHandler(handler func(EnableCommand))
- func (agent *CSSAgent) SetForcePseudoStateHandler(handler func(ForcePseudoStateCommand))
- func (agent *CSSAgent) SetGetBackgroundColorsHandler(handler func(GetBackgroundColorsCommand))
- func (agent *CSSAgent) SetGetComputedStyleForNodeHandler(handler func(GetComputedStyleForNodeCommand))
- func (agent *CSSAgent) SetGetInlineStylesForNodeHandler(handler func(GetInlineStylesForNodeCommand))
- func (agent *CSSAgent) SetGetLayoutTreeAndStylesHandler(handler func(GetLayoutTreeAndStylesCommand))
- func (agent *CSSAgent) SetGetMatchedStylesForNodeHandler(handler func(GetMatchedStylesForNodeCommand))
- func (agent *CSSAgent) SetGetMediaQueriesHandler(handler func(GetMediaQueriesCommand))
- func (agent *CSSAgent) SetGetPlatformFontsForNodeHandler(handler func(GetPlatformFontsForNodeCommand))
- func (agent *CSSAgent) SetGetStyleSheetTextHandler(handler func(GetStyleSheetTextCommand))
- func (agent *CSSAgent) SetSetEffectivePropertyValueForNodeHandler(handler func(SetEffectivePropertyValueForNodeCommand))
- func (agent *CSSAgent) SetSetKeyframeKeyHandler(handler func(SetKeyframeKeyCommand))
- func (agent *CSSAgent) SetSetMediaTextHandler(handler func(SetMediaTextCommand))
- func (agent *CSSAgent) SetSetRuleSelectorHandler(handler func(SetRuleSelectorCommand))
- func (agent *CSSAgent) SetSetStyleSheetTextHandler(handler func(SetStyleSheetTextCommand))
- func (agent *CSSAgent) SetSetStyleTextsHandler(handler func(SetStyleTextsCommand))
- func (agent *CSSAgent) SetStartRuleUsageTrackingHandler(handler func(StartRuleUsageTrackingCommand))
- func (agent *CSSAgent) SetStopRuleUsageTrackingHandler(handler func(StopRuleUsageTrackingCommand))
- type CSSComputedStyleProperty
- type CSSKeyframeRule
- type CSSKeyframesRule
- type CSSMedia
- type CSSMediaSourceEnum
- type CSSProperty
- type CSSRule
- type CSSStyle
- type CSSStyleSheetHeader
- type CollectClassNamesCommand
- type CollectClassNamesCommandFn
- type CollectClassNamesReturn
- type ComputedStyle
- type CreateStyleSheetCommand
- type CreateStyleSheetCommandFn
- type CreateStyleSheetReturn
- type DisableCommand
- type DisableCommandFn
- type DisableReturn
- type EnableCommand
- type EnableCommandFn
- type EnableReturn
- type FontsUpdatedEvent
- type ForcePseudoStateCommand
- type ForcePseudoStateCommandFn
- type ForcePseudoStateForcedPseudoClassesEnum
- type ForcePseudoStateReturn
- type GetBackgroundColorsCommand
- type GetBackgroundColorsCommandFn
- type GetBackgroundColorsReturn
- type GetComputedStyleForNodeCommand
- type GetComputedStyleForNodeCommandFn
- type GetComputedStyleForNodeReturn
- type GetInlineStylesForNodeCommand
- type GetInlineStylesForNodeCommandFn
- type GetInlineStylesForNodeReturn
- type GetLayoutTreeAndStylesCommand
- type GetLayoutTreeAndStylesCommandFn
- type GetLayoutTreeAndStylesReturn
- type GetMatchedStylesForNodeCommand
- type GetMatchedStylesForNodeCommandFn
- type GetMatchedStylesForNodeReturn
- type GetMediaQueriesCommand
- type GetMediaQueriesCommandFn
- type GetMediaQueriesReturn
- type GetPlatformFontsForNodeCommand
- type GetPlatformFontsForNodeCommandFn
- type GetPlatformFontsForNodeReturn
- type GetStyleSheetTextCommand
- type GetStyleSheetTextCommandFn
- type GetStyleSheetTextReturn
- type InheritedStyleEntry
- type InlineTextBox
- type LayoutTreeNode
- type MediaQuery
- type MediaQueryExpression
- type MediaQueryResultChangedEvent
- type PlatformFontUsage
- type PseudoElementMatches
- type RuleMatch
- type RuleUsage
- type SelectorList
- type SetEffectivePropertyValueForNodeCommand
- type SetEffectivePropertyValueForNodeCommandFn
- type SetEffectivePropertyValueForNodeReturn
- type SetKeyframeKeyCommand
- type SetKeyframeKeyCommandFn
- type SetKeyframeKeyReturn
- type SetMediaTextCommand
- type SetMediaTextCommandFn
- type SetMediaTextReturn
- type SetRuleSelectorCommand
- type SetRuleSelectorCommandFn
- type SetRuleSelectorReturn
- type SetStyleSheetTextCommand
- type SetStyleSheetTextCommandFn
- type SetStyleSheetTextReturn
- type SetStyleTextsCommand
- type SetStyleTextsCommandFn
- type SetStyleTextsReturn
- type ShorthandEntry
- type SourceRange
- type StartRuleUsageTrackingCommand
- type StartRuleUsageTrackingCommandFn
- type StartRuleUsageTrackingReturn
- type StopRuleUsageTrackingCommand
- type StopRuleUsageTrackingCommandFn
- type StopRuleUsageTrackingReturn
- type StyleDeclarationEdit
- type StyleSheetAddedEvent
- type StyleSheetChangedEvent
- type StyleSheetId
- type StyleSheetOrigin
- type StyleSheetRemovedEvent
- type Value
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 (*CSSAgent) FireMediaQueryResultChanged ¶
func (agent *CSSAgent) FireMediaQueryResultChanged()
Dispatchable Events
func (*CSSAgent) FireMediaQueryResultChangedOnTarget ¶
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) ProcessCommand ¶
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 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 (c *CollectClassNamesCommand) Respond(r *CollectClassNamesReturn)
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 (a *CollectClassNamesCommandFn) Load() func(CollectClassNamesCommand)
func (*CollectClassNamesCommandFn) Store ¶
func (a *CollectClassNamesCommandFn) Store(fn func(CollectClassNamesCommand))
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 (c *CreateStyleSheetCommand) Respond(r *CreateStyleSheetReturn)
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 (a *CreateStyleSheetCommandFn) Load() func(CreateStyleSheetCommand)
func (*CreateStyleSheetCommandFn) Store ¶
func (a *CreateStyleSheetCommandFn) Store(fn func(CreateStyleSheetCommand))
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 (a *ForcePseudoStateCommandFn) Load() func(ForcePseudoStateCommand)
func (*ForcePseudoStateCommandFn) Store ¶
func (a *ForcePseudoStateCommandFn) Store(fn func(ForcePseudoStateCommand))
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 (c *GetBackgroundColorsCommand) Respond(r *GetBackgroundColorsReturn)
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 (a *GetBackgroundColorsCommandFn) Load() func(GetBackgroundColorsCommand)
func (*GetBackgroundColorsCommandFn) Store ¶
func (a *GetBackgroundColorsCommandFn) Store(fn func(GetBackgroundColorsCommand))
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 (c *GetComputedStyleForNodeCommand) Respond(r *GetComputedStyleForNodeReturn)
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 (a *GetComputedStyleForNodeCommandFn) Load() func(GetComputedStyleForNodeCommand)
func (*GetComputedStyleForNodeCommandFn) Store ¶
func (a *GetComputedStyleForNodeCommandFn) Store(fn func(GetComputedStyleForNodeCommand))
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 (c *GetInlineStylesForNodeCommand) Respond(r *GetInlineStylesForNodeReturn)
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 (a *GetInlineStylesForNodeCommandFn) Load() func(GetInlineStylesForNodeCommand)
func (*GetInlineStylesForNodeCommandFn) Store ¶
func (a *GetInlineStylesForNodeCommandFn) Store(fn func(GetInlineStylesForNodeCommand))
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 (c *GetLayoutTreeAndStylesCommand) Respond(r *GetLayoutTreeAndStylesReturn)
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 (a *GetLayoutTreeAndStylesCommandFn) Load() func(GetLayoutTreeAndStylesCommand)
func (*GetLayoutTreeAndStylesCommandFn) Store ¶
func (a *GetLayoutTreeAndStylesCommandFn) Store(fn func(GetLayoutTreeAndStylesCommand))
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 (c *GetMatchedStylesForNodeCommand) Respond(r *GetMatchedStylesForNodeReturn)
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 (a *GetMatchedStylesForNodeCommandFn) Load() func(GetMatchedStylesForNodeCommand)
func (*GetMatchedStylesForNodeCommandFn) Store ¶
func (a *GetMatchedStylesForNodeCommandFn) Store(fn func(GetMatchedStylesForNodeCommand))
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 (c *GetMediaQueriesCommand) Respond(r *GetMediaQueriesReturn)
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 (a *GetMediaQueriesCommandFn) Load() func(GetMediaQueriesCommand)
func (*GetMediaQueriesCommandFn) Store ¶
func (a *GetMediaQueriesCommandFn) Store(fn func(GetMediaQueriesCommand))
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 (c *GetPlatformFontsForNodeCommand) Respond(r *GetPlatformFontsForNodeReturn)
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 (a *GetPlatformFontsForNodeCommandFn) Load() func(GetPlatformFontsForNodeCommand)
func (*GetPlatformFontsForNodeCommandFn) Store ¶
func (a *GetPlatformFontsForNodeCommandFn) Store(fn func(GetPlatformFontsForNodeCommand))
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 (c *GetStyleSheetTextCommand) Respond(r *GetStyleSheetTextReturn)
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 (a *GetStyleSheetTextCommandFn) Load() func(GetStyleSheetTextCommand)
func (*GetStyleSheetTextCommandFn) Store ¶
func (a *GetStyleSheetTextCommandFn) Store(fn func(GetStyleSheetTextCommand))
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 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 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 (c *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 (a *SetEffectivePropertyValueForNodeCommandFn) Load() func(SetEffectivePropertyValueForNodeCommand)
func (*SetEffectivePropertyValueForNodeCommandFn) Store ¶
func (a *SetEffectivePropertyValueForNodeCommandFn) Store(fn func(SetEffectivePropertyValueForNodeCommand))
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 (c *SetKeyframeKeyCommand) Respond(r *SetKeyframeKeyReturn)
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 (a *SetKeyframeKeyCommandFn) Load() func(SetKeyframeKeyCommand)
func (*SetKeyframeKeyCommandFn) Store ¶
func (a *SetKeyframeKeyCommandFn) Store(fn func(SetKeyframeKeyCommand))
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 (a *SetMediaTextCommandFn) Load() func(SetMediaTextCommand)
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 (c *SetRuleSelectorCommand) Respond(r *SetRuleSelectorReturn)
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 (a *SetRuleSelectorCommandFn) Load() func(SetRuleSelectorCommand)
func (*SetRuleSelectorCommandFn) Store ¶
func (a *SetRuleSelectorCommandFn) Store(fn func(SetRuleSelectorCommand))
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 (c *SetStyleSheetTextCommand) Respond(r *SetStyleSheetTextReturn)
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 (a *SetStyleSheetTextCommandFn) Load() func(SetStyleSheetTextCommand)
func (*SetStyleSheetTextCommandFn) Store ¶
func (a *SetStyleSheetTextCommandFn) Store(fn func(SetStyleSheetTextCommand))
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 (c *SetStyleTextsCommand) Respond(r *SetStyleTextsReturn)
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 (a *SetStyleTextsCommandFn) Load() func(SetStyleTextsCommand)
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 SourceRange ¶
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 (a *StartRuleUsageTrackingCommandFn) Load() func(StartRuleUsageTrackingCommand)
func (*StartRuleUsageTrackingCommandFn) Store ¶
func (a *StartRuleUsageTrackingCommandFn) Store(fn func(StartRuleUsageTrackingCommand))
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 (c *StopRuleUsageTrackingCommand) Respond(r *StopRuleUsageTrackingReturn)
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 (a *StopRuleUsageTrackingCommandFn) Load() func(StopRuleUsageTrackingCommand)
func (*StopRuleUsageTrackingCommandFn) Store ¶
func (a *StopRuleUsageTrackingCommandFn) Store(fn func(StopRuleUsageTrackingCommand))
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). }
Click to show internal directories.
Click to hide internal directories.