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

package accessibility

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

Package accessibility provides the Chrome DevTools Protocol commands, types, and events for the Accessibility domain.

Generated by the cdproto-gen command.

Index

Package Files

accessibility.go easyjson.go types.go

Constants

const (
    CommandDisable          = "Accessibility.disable"
    CommandEnable           = "Accessibility.enable"
    CommandGetPartialAXTree = "Accessibility.getPartialAXTree"
    CommandGetFullAXTree    = "Accessibility.getFullAXTree"
    CommandGetChildAXNodes  = "Accessibility.getChildAXNodes"
    CommandQueryAXTree      = "Accessibility.queryAXTree"
)

Command names.

type DisableParams Uses

type DisableParams struct{}

DisableParams disables the accessibility domain.

func Disable Uses

func Disable() *DisableParams

Disable disables the accessibility domain.

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

func (*DisableParams) Do Uses

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

Do executes Accessibility.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct{}

EnableParams enables the accessibility domain which causes AXNodeIds to remain consistent between method calls. This turns on accessibility for the page, which can impact performance until accessibility is disabled.

func Enable Uses

func Enable() *EnableParams

Enable enables the accessibility domain which causes AXNodeIds to remain consistent between method calls. This turns on accessibility for the page, which can impact performance until accessibility is disabled.

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

func (*EnableParams) Do Uses

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

Do executes Accessibility.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetChildAXNodesParams Uses

type GetChildAXNodesParams struct {
    ID NodeID `json:"id"`
}

GetChildAXNodesParams fetches a particular accessibility node by AXNodeId. Requires enable() to have been called previously.

func GetChildAXNodes Uses

func GetChildAXNodes(id NodeID) *GetChildAXNodesParams

GetChildAXNodes fetches a particular accessibility node by AXNodeId. Requires enable() to have been called previously.

See: https://chromedevtools.github.io/devtools-protocol/tot/Accessibility#method-getChildAXNodes

parameters:

id

func (*GetChildAXNodesParams) Do Uses

func (p *GetChildAXNodesParams) Do(ctx context.Context) (nodes []*Node, err error)

Do executes Accessibility.getChildAXNodes against the provided context.

returns:

nodes

func (GetChildAXNodesParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetChildAXNodesParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetChildAXNodesParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetChildAXNodesParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetChildAXNodesReturns Uses

type GetChildAXNodesReturns struct {
    Nodes []*Node `json:"nodes,omitempty"`
}

GetChildAXNodesReturns return values.

func (GetChildAXNodesReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetChildAXNodesReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetChildAXNodesReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetChildAXNodesReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetFullAXTreeParams Uses

type GetFullAXTreeParams struct {
    MaxDepth int64 `json:"max_depth,omitempty"` // The maximum depth at which descendants of the root node should be retrieved. If omitted, the full tree is returned.
}

GetFullAXTreeParams fetches the entire accessibility tree for the root Document.

func GetFullAXTree Uses

func GetFullAXTree() *GetFullAXTreeParams

GetFullAXTree fetches the entire accessibility tree for the root Document.

See: https://chromedevtools.github.io/devtools-protocol/tot/Accessibility#method-getFullAXTree

parameters:

func (*GetFullAXTreeParams) Do Uses

func (p *GetFullAXTreeParams) Do(ctx context.Context) (nodes []*Node, err error)

Do executes Accessibility.getFullAXTree against the provided context.

returns:

nodes

func (GetFullAXTreeParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetFullAXTreeParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetFullAXTreeParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetFullAXTreeParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (GetFullAXTreeParams) WithMaxDepth Uses

func (p GetFullAXTreeParams) WithMaxDepth(maxDepth int64) *GetFullAXTreeParams

WithMaxDepth the maximum depth at which descendants of the root node should be retrieved. If omitted, the full tree is returned.

type GetFullAXTreeReturns Uses

type GetFullAXTreeReturns struct {
    Nodes []*Node `json:"nodes,omitempty"`
}

GetFullAXTreeReturns return values.

func (GetFullAXTreeReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetFullAXTreeReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetFullAXTreeReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetFullAXTreeReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetPartialAXTreeParams Uses

type GetPartialAXTreeParams struct {
    NodeID         cdp.NodeID             `json:"nodeId,omitempty"`         // Identifier of the node to get the partial accessibility tree for.
    BackendNodeID  cdp.BackendNodeID      `json:"backendNodeId,omitempty"`  // Identifier of the backend node to get the partial accessibility tree for.
    ObjectID       runtime.RemoteObjectID `json:"objectId,omitempty"`       // JavaScript object id of the node wrapper to get the partial accessibility tree for.
    FetchRelatives bool                   `json:"fetchRelatives,omitempty"` // Whether to fetch this nodes ancestors, siblings and children. Defaults to true.
}

GetPartialAXTreeParams fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.

func GetPartialAXTree Uses

func GetPartialAXTree() *GetPartialAXTreeParams

GetPartialAXTree fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.

See: https://chromedevtools.github.io/devtools-protocol/tot/Accessibility#method-getPartialAXTree

parameters:

func (*GetPartialAXTreeParams) Do Uses

func (p *GetPartialAXTreeParams) Do(ctx context.Context) (nodes []*Node, err error)

Do executes Accessibility.getPartialAXTree against the provided context.

returns:

nodes - The Accessibility.AXNode for this DOM node, if it exists, plus its ancestors, siblings and children, if requested.

func (GetPartialAXTreeParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPartialAXTreeParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetPartialAXTreeParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPartialAXTreeParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (GetPartialAXTreeParams) WithBackendNodeID Uses

func (p GetPartialAXTreeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *GetPartialAXTreeParams

WithBackendNodeID identifier of the backend node to get the partial accessibility tree for.

func (GetPartialAXTreeParams) WithFetchRelatives Uses

func (p GetPartialAXTreeParams) WithFetchRelatives(fetchRelatives bool) *GetPartialAXTreeParams

WithFetchRelatives whether to fetch this nodes ancestors, siblings and children. Defaults to true.

func (GetPartialAXTreeParams) WithNodeID Uses

func (p GetPartialAXTreeParams) WithNodeID(nodeID cdp.NodeID) *GetPartialAXTreeParams

WithNodeID identifier of the node to get the partial accessibility tree for.

func (GetPartialAXTreeParams) WithObjectID Uses

func (p GetPartialAXTreeParams) WithObjectID(objectID runtime.RemoteObjectID) *GetPartialAXTreeParams

WithObjectID JavaScript object id of the node wrapper to get the partial accessibility tree for.

type GetPartialAXTreeReturns Uses

type GetPartialAXTreeReturns struct {
    Nodes []*Node `json:"nodes,omitempty"` // The Accessibility.AXNode for this DOM node, if it exists, plus its ancestors, siblings and children, if requested.
}

GetPartialAXTreeReturns return values.

func (GetPartialAXTreeReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPartialAXTreeReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetPartialAXTreeReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPartialAXTreeReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type Node Uses

type Node struct {
    NodeID           NodeID            `json:"nodeId"`                     // Unique identifier for this node.
    Ignored          bool              `json:"ignored"`                    // Whether this node is ignored for accessibility
    IgnoredReasons   []*Property       `json:"ignoredReasons,omitempty"`   // Collection of reasons why this node is hidden.
    Role             *Value            `json:"role,omitempty"`             // This Node's role, whether explicit or implicit.
    Name             *Value            `json:"name,omitempty"`             // The accessible name for this Node.
    Description      *Value            `json:"description,omitempty"`      // The accessible description for this Node.
    Value            *Value            `json:"value,omitempty"`            // The value for this Node.
    Properties       []*Property       `json:"properties,omitempty"`       // All other properties
    ChildIds         []NodeID          `json:"childIds,omitempty"`         // IDs for each of this node's child nodes.
    BackendDOMNodeID cdp.BackendNodeID `json:"backendDOMNodeId,omitempty"` // The backend ID for the associated DOM node, if any.
}

Node a node in the accessibility tree.

See: https://chromedevtools.github.io/devtools-protocol/tot/Accessibility#type-AXNode

func (Node) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Node) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*Node) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Node) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type NodeID Uses

type NodeID string

NodeID unique accessibility node identifier.

See: https://chromedevtools.github.io/devtools-protocol/tot/Accessibility#type-AXNodeId

func (NodeID) String Uses

func (t NodeID) String() string

String returns the NodeID as string value.

type Property Uses

type Property struct {
    Name  PropertyName `json:"name"`  // The name of this property.
    Value *Value       `json:"value"` // The value of this property.
}

Property [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Accessibility#type-AXProperty

func (Property) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Property) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*Property) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Property) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type PropertyName Uses

type PropertyName string

PropertyName values of AXProperty name: - from 'busy' to 'roledescription': states which apply to every AX node - from 'live' to 'root': attributes which apply to nodes in live regions - from 'autocomplete' to 'valuetext': attributes which apply to widgets - from 'checked' to 'selected': states which apply to widgets - from 'activedescendant' to 'owns' - relationships between elements other than parent/child/sibling.

See: https://chromedevtools.github.io/devtools-protocol/tot/Accessibility#type-AXPropertyName

const (
    PropertyNameBusy             PropertyName = "busy"
    PropertyNameDisabled         PropertyName = "disabled"
    PropertyNameEditable         PropertyName = "editable"
    PropertyNameFocusable        PropertyName = "focusable"
    PropertyNameFocused          PropertyName = "focused"
    PropertyNameHidden           PropertyName = "hidden"
    PropertyNameHiddenRoot       PropertyName = "hiddenRoot"
    PropertyNameInvalid          PropertyName = "invalid"
    PropertyNameKeyshortcuts     PropertyName = "keyshortcuts"
    PropertyNameSettable         PropertyName = "settable"
    PropertyNameRoledescription  PropertyName = "roledescription"
    PropertyNameLive             PropertyName = "live"
    PropertyNameAtomic           PropertyName = "atomic"
    PropertyNameRelevant         PropertyName = "relevant"
    PropertyNameRoot             PropertyName = "root"
    PropertyNameAutocomplete     PropertyName = "autocomplete"
    PropertyNameHasPopup         PropertyName = "hasPopup"
    PropertyNameLevel            PropertyName = "level"
    PropertyNameMultiselectable  PropertyName = "multiselectable"
    PropertyNameOrientation      PropertyName = "orientation"
    PropertyNameMultiline        PropertyName = "multiline"
    PropertyNameReadonly         PropertyName = "readonly"
    PropertyNameRequired         PropertyName = "required"
    PropertyNameValuemin         PropertyName = "valuemin"
    PropertyNameValuemax         PropertyName = "valuemax"
    PropertyNameValuetext        PropertyName = "valuetext"
    PropertyNameChecked          PropertyName = "checked"
    PropertyNameExpanded         PropertyName = "expanded"
    PropertyNameModal            PropertyName = "modal"
    PropertyNamePressed          PropertyName = "pressed"
    PropertyNameSelected         PropertyName = "selected"
    PropertyNameActivedescendant PropertyName = "activedescendant"
    PropertyNameControls         PropertyName = "controls"
    PropertyNameDescribedby      PropertyName = "describedby"
    PropertyNameDetails          PropertyName = "details"
    PropertyNameErrormessage     PropertyName = "errormessage"
    PropertyNameFlowto           PropertyName = "flowto"
    PropertyNameLabelledby       PropertyName = "labelledby"
    PropertyNameOwns             PropertyName = "owns"
)

PropertyName values.

func (PropertyName) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (PropertyName) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (PropertyName) String Uses

func (t PropertyName) String() string

String returns the PropertyName as string value.

func (*PropertyName) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*PropertyName) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type QueryAXTreeParams Uses

type QueryAXTreeParams struct {
    NodeID         cdp.NodeID             `json:"nodeId,omitempty"`         // Identifier of the node for the root to query.
    BackendNodeID  cdp.BackendNodeID      `json:"backendNodeId,omitempty"`  // Identifier of the backend node for the root to query.
    ObjectID       runtime.RemoteObjectID `json:"objectId,omitempty"`       // JavaScript object id of the node wrapper for the root to query.
    AccessibleName string                 `json:"accessibleName,omitempty"` // Find nodes with this computed name.
    Role           string                 `json:"role,omitempty"`           // Find nodes with this computed role.
}

QueryAXTreeParams query a DOM node's accessibility subtree for accessible name and role. This command computes the name and role for all nodes in the subtree, including those that are ignored for accessibility, and returns those that mactch the specified name and role. If no DOM node is specified, or the DOM node does not exist, the command returns an error. If neither accessibleName or role is specified, it returns all the accessibility nodes in the subtree.

func QueryAXTree Uses

func QueryAXTree() *QueryAXTreeParams

QueryAXTree query a DOM node's accessibility subtree for accessible name and role. This command computes the name and role for all nodes in the subtree, including those that are ignored for accessibility, and returns those that mactch the specified name and role. If no DOM node is specified, or the DOM node does not exist, the command returns an error. If neither accessibleName or role is specified, it returns all the accessibility nodes in the subtree.

See: https://chromedevtools.github.io/devtools-protocol/tot/Accessibility#method-queryAXTree

parameters:

func (*QueryAXTreeParams) Do Uses

func (p *QueryAXTreeParams) Do(ctx context.Context) (nodes []*Node, err error)

Do executes Accessibility.queryAXTree against the provided context.

returns:

nodes - A list of Accessibility.AXNode matching the specified attributes, including nodes that are ignored for accessibility.

func (QueryAXTreeParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (QueryAXTreeParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*QueryAXTreeParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*QueryAXTreeParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (QueryAXTreeParams) WithAccessibleName Uses

func (p QueryAXTreeParams) WithAccessibleName(accessibleName string) *QueryAXTreeParams

WithAccessibleName find nodes with this computed name.

func (QueryAXTreeParams) WithBackendNodeID Uses

func (p QueryAXTreeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *QueryAXTreeParams

WithBackendNodeID identifier of the backend node for the root to query.

func (QueryAXTreeParams) WithNodeID Uses

func (p QueryAXTreeParams) WithNodeID(nodeID cdp.NodeID) *QueryAXTreeParams

WithNodeID identifier of the node for the root to query.

func (QueryAXTreeParams) WithObjectID Uses

func (p QueryAXTreeParams) WithObjectID(objectID runtime.RemoteObjectID) *QueryAXTreeParams

WithObjectID JavaScript object id of the node wrapper for the root to query.

func (QueryAXTreeParams) WithRole Uses

func (p QueryAXTreeParams) WithRole(role string) *QueryAXTreeParams

WithRole find nodes with this computed role.

type QueryAXTreeReturns Uses

type QueryAXTreeReturns struct {
    Nodes []*Node `json:"nodes,omitempty"` // A list of Accessibility.AXNode matching the specified attributes, including nodes that are ignored for accessibility.
}

QueryAXTreeReturns return values.

func (QueryAXTreeReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (QueryAXTreeReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*QueryAXTreeReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*QueryAXTreeReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type RelatedNode Uses

type RelatedNode struct {
    BackendDOMNodeID cdp.BackendNodeID `json:"backendDOMNodeId"` // The BackendNodeId of the related DOM node.
    Idref            string            `json:"idref,omitempty"`  // The IDRef value provided, if any.
    Text             string            `json:"text,omitempty"`   // The text alternative of this node in the current context.
}

RelatedNode [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Accessibility#type-AXRelatedNode

func (RelatedNode) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (RelatedNode) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*RelatedNode) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RelatedNode) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type Value Uses

type Value struct {
    Type         ValueType           `json:"type"`                   // The type of this value.
    Value        easyjson.RawMessage `json:"value,omitempty"`        // The computed value of this property.
    RelatedNodes []*RelatedNode      `json:"relatedNodes,omitempty"` // One or more related nodes, if applicable.
    Sources      []*ValueSource      `json:"sources,omitempty"`      // The sources which contributed to the computation of this property.
}

Value a single computed AX property.

See: https://chromedevtools.github.io/devtools-protocol/tot/Accessibility#type-AXValue

func (Value) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Value) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*Value) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Value) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type ValueNativeSourceType Uses

type ValueNativeSourceType string

ValueNativeSourceType enum of possible native property sources (as a subtype of a particular AXValueSourceType).

See: https://chromedevtools.github.io/devtools-protocol/tot/Accessibility#type-AXValueNativeSourceType

const (
    ValueNativeSourceTypeFigcaption     ValueNativeSourceType = "figcaption"
    ValueNativeSourceTypeLabel          ValueNativeSourceType = "label"
    ValueNativeSourceTypeLabelfor       ValueNativeSourceType = "labelfor"
    ValueNativeSourceTypeLabelwrapped   ValueNativeSourceType = "labelwrapped"
    ValueNativeSourceTypeLegend         ValueNativeSourceType = "legend"
    ValueNativeSourceTypeRubyannotation ValueNativeSourceType = "rubyannotation"
    ValueNativeSourceTypeTablecaption   ValueNativeSourceType = "tablecaption"
    ValueNativeSourceTypeTitle          ValueNativeSourceType = "title"
    ValueNativeSourceTypeOther          ValueNativeSourceType = "other"
)

ValueNativeSourceType values.

func (ValueNativeSourceType) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ValueNativeSourceType) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (ValueNativeSourceType) String Uses

func (t ValueNativeSourceType) String() string

String returns the ValueNativeSourceType as string value.

func (*ValueNativeSourceType) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ValueNativeSourceType) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type ValueSource Uses

type ValueSource struct {
    Type              ValueSourceType       `json:"type"`                        // What type of source this is.
    Value             *Value                `json:"value,omitempty"`             // The value of this property source.
    Attribute         string                `json:"attribute,omitempty"`         // The name of the relevant attribute, if any.
    AttributeValue    *Value                `json:"attributeValue,omitempty"`    // The value of the relevant attribute, if any.
    Superseded        bool                  `json:"superseded,omitempty"`        // Whether this source is superseded by a higher priority source.
    NativeSource      ValueNativeSourceType `json:"nativeSource,omitempty"`      // The native markup source for this value, e.g. a <label> element.
    NativeSourceValue *Value                `json:"nativeSourceValue,omitempty"` // The value, such as a node or node list, of the native source.
    Invalid           bool                  `json:"invalid,omitempty"`           // Whether the value for this property is invalid.
    InvalidReason     string                `json:"invalidReason,omitempty"`     // Reason for the value being invalid, if it is.
}

ValueSource a single source for a computed AX property.

See: https://chromedevtools.github.io/devtools-protocol/tot/Accessibility#type-AXValueSource

func (ValueSource) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ValueSource) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*ValueSource) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ValueSource) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type ValueSourceType Uses

type ValueSourceType string

ValueSourceType enum of possible property sources.

See: https://chromedevtools.github.io/devtools-protocol/tot/Accessibility#type-AXValueSourceType

const (
    ValueSourceTypeAttribute      ValueSourceType = "attribute"
    ValueSourceTypeImplicit       ValueSourceType = "implicit"
    ValueSourceTypeStyle          ValueSourceType = "style"
    ValueSourceTypeContents       ValueSourceType = "contents"
    ValueSourceTypePlaceholder    ValueSourceType = "placeholder"
    ValueSourceTypeRelatedElement ValueSourceType = "relatedElement"
)

ValueSourceType values.

func (ValueSourceType) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ValueSourceType) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (ValueSourceType) String Uses

func (t ValueSourceType) String() string

String returns the ValueSourceType as string value.

func (*ValueSourceType) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ValueSourceType) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type ValueType Uses

type ValueType string

ValueType enum of possible property types.

See: https://chromedevtools.github.io/devtools-protocol/tot/Accessibility#type-AXValueType

const (
    ValueTypeBoolean            ValueType = "boolean"
    ValueTypeTristate           ValueType = "tristate"
    ValueTypeBooleanOrUndefined ValueType = "booleanOrUndefined"
    ValueTypeIdref              ValueType = "idref"
    ValueTypeIdrefList          ValueType = "idrefList"
    ValueTypeInteger            ValueType = "integer"
    ValueTypeNode               ValueType = "node"
    ValueTypeNodeList           ValueType = "nodeList"
    ValueTypeNumber             ValueType = "number"
    ValueTypeString             ValueType = "string"
    ValueTypeComputedString     ValueType = "computedString"
    ValueTypeToken              ValueType = "token"
    ValueTypeTokenList          ValueType = "tokenList"
    ValueTypeDomRelation        ValueType = "domRelation"
    ValueTypeRole               ValueType = "role"
    ValueTypeInternalRole       ValueType = "internalRole"
    ValueTypeValueUndefined     ValueType = "valueUndefined"
)

ValueType values.

func (ValueType) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ValueType) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (ValueType) String Uses

func (t ValueType) String() string

String returns the ValueType as string value.

func (*ValueType) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ValueType) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

Package accessibility imports 8 packages (graph) and is imported by 3 packages. Updated 2021-01-08. Refresh now. Tools for package owners.