Documentation ¶
Index ¶
- type AXGlobalStates
- type AXLiveRegionAttributes
- type AXNode
- type AXNodeId
- type AXProperty
- type AXRelatedNode
- type AXRelationshipAttributes
- type AXValue
- type AXValueNativeSourceType
- type AXValueSource
- type AXValueSourceType
- type AXValueType
- type AXWidgetAttributes
- type AXWidgetStates
- type AccessibilityAgent
- type GetPartialAXTreeCommand
- type GetPartialAXTreeCommandFn
- type GetPartialAXTreeReturn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AXGlobalStates ¶
type AXGlobalStates string
const ( AXGlobalStatesDisabled AXGlobalStates = "disabled" AXGlobalStatesHidden AXGlobalStates = "hidden" AXGlobalStatesHiddenRoot AXGlobalStates = "hiddenRoot" AXGlobalStatesInvalid AXGlobalStates = "invalid" AXGlobalStatesKeyshortcuts AXGlobalStates = "keyshortcuts" AXGlobalStatesRoledescription AXGlobalStates = "roledescription" )
type AXLiveRegionAttributes ¶
type AXLiveRegionAttributes string
const ( AXLiveRegionAttributesLive AXLiveRegionAttributes = "live" AXLiveRegionAttributesAtomic AXLiveRegionAttributes = "atomic" AXLiveRegionAttributesRelevant AXLiveRegionAttributes = "relevant" AXLiveRegionAttributesBusy AXLiveRegionAttributes = "busy" AXLiveRegionAttributesRoot AXLiveRegionAttributes = "root" )
type AXNode ¶
type AXNode struct { NodeId AXNodeId `json:"nodeId"` // Unique identifier for this node. Ignored bool `json:"ignored"` // Whether this node is ignored for accessibility IgnoredReasons *[]AXProperty `json:"ignoredReasons,omitempty"` // Collection of reasons why this node is hidden. Role *AXValue `json:"role,omitempty"` // This <code>Node</code>'s role, whether explicit or implicit. Name *AXValue `json:"name,omitempty"` // The accessible name for this <code>Node</code>. Description *AXValue `json:"description,omitempty"` // The accessible description for this <code>Node</code>. Value *AXValue `json:"value,omitempty"` // The value for this <code>Node</code>. Properties *[]AXProperty `json:"properties,omitempty"` // All other properties ChildIds *[]AXNodeId `json:"childIds,omitempty"` // IDs for each of this node's child nodes. BackendDOMNodeId *dom.BackendNodeId `json:"backendDOMNodeId,omitempty"` // The backend ID for the associated DOM node, if any. }
type AXProperty ¶
type AXRelatedNode ¶
type AXRelatedNode struct { BackendDOMNodeId dom.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. }
type AXRelationshipAttributes ¶
type AXRelationshipAttributes string
const ( AXRelationshipAttributesActivedescendant AXRelationshipAttributes = "activedescendant" AXRelationshipAttributesControls AXRelationshipAttributes = "controls" AXRelationshipAttributesDescribedby AXRelationshipAttributes = "describedby" AXRelationshipAttributesDetails AXRelationshipAttributes = "details" AXRelationshipAttributesErrormessage AXRelationshipAttributes = "errormessage" AXRelationshipAttributesFlowto AXRelationshipAttributes = "flowto" AXRelationshipAttributesLabelledby AXRelationshipAttributes = "labelledby" AXRelationshipAttributesOwns AXRelationshipAttributes = "owns" )
type AXValue ¶
type AXValue struct { Type AXValueType `json:"type"` // The type of this value. Value interface{} `json:"value"` // The computed value of this property. RelatedNodes *[]AXRelatedNode `json:"relatedNodes,omitempty"` // One or more related nodes, if applicable. Sources *[]AXValueSource `json:"sources,omitempty"` // The sources which contributed to the computation of this property. }
type AXValueNativeSourceType ¶
type AXValueNativeSourceType string
const ( AXValueNativeSourceTypeLabel AXValueNativeSourceType = "label" AXValueNativeSourceTypeLabelfor AXValueNativeSourceType = "labelfor" AXValueNativeSourceTypeLabelwrapped AXValueNativeSourceType = "labelwrapped" AXValueNativeSourceTypeLegend AXValueNativeSourceType = "legend" AXValueNativeSourceTypeTitle AXValueNativeSourceType = "title" AXValueNativeSourceTypeOther AXValueNativeSourceType = "other" )
type AXValueSource ¶
type AXValueSource struct { Type AXValueSourceType `json:"type"` // What type of source this is. Value *AXValue `json:"value,omitempty"` // The value of this property source. Attribute *string `json:"attribute,omitempty"` // The name of the relevant attribute, if any. AttributeValue *AXValue `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 *AXValueNativeSourceType `json:"nativeSource,omitempty"` // The native markup source for this value, e.g. a <label> element. NativeSourceValue *AXValue `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. }
type AXValueSourceType ¶
type AXValueSourceType string
const ( AXValueSourceTypeAttribute AXValueSourceType = "attribute" AXValueSourceTypeImplicit AXValueSourceType = "implicit" AXValueSourceTypeStyle AXValueSourceType = "style" AXValueSourceTypeContents AXValueSourceType = "contents" AXValueSourceTypePlaceholder AXValueSourceType = "placeholder" AXValueSourceTypeRelatedElement AXValueSourceType = "relatedElement" )
type AXValueType ¶
type AXValueType string
const ( AXValueTypeBoolean AXValueType = "boolean" AXValueTypeTristate AXValueType = "tristate" AXValueTypeBooleanOrUndefined AXValueType = "booleanOrUndefined" AXValueTypeIdref AXValueType = "idref" AXValueTypeIdrefList AXValueType = "idrefList" AXValueTypeInteger AXValueType = "integer" AXValueTypeNode AXValueType = "node" AXValueTypeNodeList AXValueType = "nodeList" AXValueTypeNumber AXValueType = "number" AXValueTypeString AXValueType = "string" AXValueTypeComputedString AXValueType = "computedString" AXValueTypeToken AXValueType = "token" AXValueTypeTokenList AXValueType = "tokenList" AXValueTypeDomRelation AXValueType = "domRelation" AXValueTypeRole AXValueType = "role" AXValueTypeInternalRole AXValueType = "internalRole" AXValueTypeValueUndefined AXValueType = "valueUndefined" )
type AXWidgetAttributes ¶
type AXWidgetAttributes string
const ( AXWidgetAttributesAutocomplete AXWidgetAttributes = "autocomplete" AXWidgetAttributesHaspopup AXWidgetAttributes = "haspopup" AXWidgetAttributesLevel AXWidgetAttributes = "level" AXWidgetAttributesMultiselectable AXWidgetAttributes = "multiselectable" AXWidgetAttributesOrientation AXWidgetAttributes = "orientation" AXWidgetAttributesMultiline AXWidgetAttributes = "multiline" AXWidgetAttributesReadonly AXWidgetAttributes = "readonly" AXWidgetAttributesRequired AXWidgetAttributes = "required" AXWidgetAttributesValuemin AXWidgetAttributes = "valuemin" AXWidgetAttributesValuemax AXWidgetAttributes = "valuemax" AXWidgetAttributesValuetext AXWidgetAttributes = "valuetext" )
type AXWidgetStates ¶
type AXWidgetStates string
const ( AXWidgetStatesChecked AXWidgetStates = "checked" AXWidgetStatesExpanded AXWidgetStates = "expanded" AXWidgetStatesModal AXWidgetStates = "modal" AXWidgetStatesPressed AXWidgetStates = "pressed" AXWidgetStatesSelected AXWidgetStates = "selected" )
type AccessibilityAgent ¶
type AccessibilityAgent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(conn *shared.Connection) *AccessibilityAgent
func (*AccessibilityAgent) Name ¶
func (agent *AccessibilityAgent) Name() string
func (*AccessibilityAgent) ProcessCommand ¶
func (agent *AccessibilityAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
func (*AccessibilityAgent) SetGetPartialAXTreeHandler ¶
func (agent *AccessibilityAgent) SetGetPartialAXTreeHandler(handler func(GetPartialAXTreeCommand))
Commands Sent From Frontend
type GetPartialAXTreeCommand ¶
type GetPartialAXTreeCommand struct { DestinationTargetID string NodeId dom.NodeId `json:"nodeId"` // ID of node to get the partial accessibility tree for. FetchRelatives *bool `json:"fetchRelatives,omitempty"` // Whether to fetch this nodes ancestors, siblings and children. Defaults to true. // contains filtered or unexported fields }
func (*GetPartialAXTreeCommand) Initalize ¶
func (c *GetPartialAXTreeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*GetPartialAXTreeCommand) Respond ¶
func (c *GetPartialAXTreeCommand) Respond(r *GetPartialAXTreeReturn)
func (*GetPartialAXTreeCommand) RespondWithError ¶
func (c *GetPartialAXTreeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type GetPartialAXTreeCommandFn ¶
type GetPartialAXTreeCommandFn struct {
// contains filtered or unexported fields
}
func (*GetPartialAXTreeCommandFn) Load ¶
func (a *GetPartialAXTreeCommandFn) Load() func(GetPartialAXTreeCommand)
func (*GetPartialAXTreeCommandFn) Store ¶
func (a *GetPartialAXTreeCommandFn) Store(fn func(GetPartialAXTreeCommand))
type GetPartialAXTreeReturn ¶
type GetPartialAXTreeReturn struct {
Nodes []AXNode `json:"nodes"` // The <code>Accessibility.AXNode</code> for this DOM node, if it exists, plus its ancestors, siblings and children, if requested.
}
Click to show internal directories.
Click to hide internal directories.