Documentation ¶
Overview ¶
Package accessibility implements the Accessibility domain.
Index ¶
- func NewClient(conn *rpcc.Conn) *domainClient
- 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 GetPartialAXTreeArgs
- type GetPartialAXTreeReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AXGlobalStates ¶
type AXGlobalStates string
AXGlobalStates States which apply to every AX node.
const ( AXGlobalStatesNotSet AXGlobalStates = "" AXGlobalStatesBusy AXGlobalStates = "busy" AXGlobalStatesDisabled AXGlobalStates = "disabled" AXGlobalStatesHidden AXGlobalStates = "hidden" AXGlobalStatesHiddenRoot AXGlobalStates = "hiddenRoot" AXGlobalStatesInvalid AXGlobalStates = "invalid" AXGlobalStatesKeyshortcuts AXGlobalStates = "keyshortcuts" AXGlobalStatesRoledescription AXGlobalStates = "roledescription" )
AXGlobalStates as enums.
func (AXGlobalStates) String ¶
func (e AXGlobalStates) String() string
func (AXGlobalStates) Valid ¶
func (e AXGlobalStates) Valid() bool
type AXLiveRegionAttributes ¶
type AXLiveRegionAttributes string
AXLiveRegionAttributes Attributes which apply to nodes in live regions.
const ( AXLiveRegionAttributesNotSet AXLiveRegionAttributes = "" AXLiveRegionAttributesLive AXLiveRegionAttributes = "live" AXLiveRegionAttributesAtomic AXLiveRegionAttributes = "atomic" AXLiveRegionAttributesRelevant AXLiveRegionAttributes = "relevant" AXLiveRegionAttributesRoot AXLiveRegionAttributes = "root" )
AXLiveRegionAttributes as enums.
func (AXLiveRegionAttributes) String ¶
func (e AXLiveRegionAttributes) String() string
func (AXLiveRegionAttributes) Valid ¶
func (e AXLiveRegionAttributes) Valid() bool
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 Node's role, whether explicit or implicit. Name *AXValue `json:"name,omitempty"` // The accessible name for this Node. Description *AXValue `json:"description,omitempty"` // The accessible description for this Node. Value *AXValue `json:"value,omitempty"` // The value for this Node. 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. }
AXNode A node in the accessibility tree.
type AXProperty ¶
type AXProperty struct { Name string `json:"name"` // The name of this property. Value AXValue `json:"value"` // The value of this property. }
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. }
AXRelatedNode
type AXRelationshipAttributes ¶
type AXRelationshipAttributes string
AXRelationshipAttributes Relationships between elements other than parent/child/sibling.
const ( AXRelationshipAttributesNotSet AXRelationshipAttributes = "" AXRelationshipAttributesActivedescendant AXRelationshipAttributes = "activedescendant" AXRelationshipAttributesControls AXRelationshipAttributes = "controls" AXRelationshipAttributesDescribedby AXRelationshipAttributes = "describedby" AXRelationshipAttributesDetails AXRelationshipAttributes = "details" AXRelationshipAttributesErrormessage AXRelationshipAttributes = "errormessage" AXRelationshipAttributesFlowto AXRelationshipAttributes = "flowto" AXRelationshipAttributesLabelledby AXRelationshipAttributes = "labelledby" AXRelationshipAttributesOwns AXRelationshipAttributes = "owns" )
AXRelationshipAttributes as enums.
func (AXRelationshipAttributes) String ¶
func (e AXRelationshipAttributes) String() string
func (AXRelationshipAttributes) Valid ¶
func (e AXRelationshipAttributes) Valid() bool
type AXValue ¶
type AXValue struct { Type AXValueType `json:"type"` // The type of this value. Value json.RawMessage `json:"value,omitempty"` // 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. }
AXValue A single computed AX property.
type AXValueNativeSourceType ¶
type AXValueNativeSourceType string
AXValueNativeSourceType Enum of possible native property sources (as a subtype of a particular AXValueSourceType).
const ( AXValueNativeSourceTypeNotSet AXValueNativeSourceType = "" AXValueNativeSourceTypeLabel AXValueNativeSourceType = "label" AXValueNativeSourceTypeLabelfor AXValueNativeSourceType = "labelfor" AXValueNativeSourceTypeLabelwrapped AXValueNativeSourceType = "labelwrapped" AXValueNativeSourceTypeLegend AXValueNativeSourceType = "legend" AXValueNativeSourceTypeTitle AXValueNativeSourceType = "title" AXValueNativeSourceTypeOther AXValueNativeSourceType = "other" )
AXValueNativeSourceType as enums.
func (AXValueNativeSourceType) String ¶
func (e AXValueNativeSourceType) String() string
func (AXValueNativeSourceType) Valid ¶
func (e AXValueNativeSourceType) Valid() bool
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. }
AXValueSource A single source for a computed AX property.
type AXValueSourceType ¶
type AXValueSourceType string
AXValueSourceType Enum of possible property sources.
const ( AXValueSourceTypeNotSet AXValueSourceType = "" AXValueSourceTypeAttribute AXValueSourceType = "attribute" AXValueSourceTypeImplicit AXValueSourceType = "implicit" AXValueSourceTypeStyle AXValueSourceType = "style" AXValueSourceTypeContents AXValueSourceType = "contents" AXValueSourceTypePlaceholder AXValueSourceType = "placeholder" AXValueSourceTypeRelatedElement AXValueSourceType = "relatedElement" )
AXValueSourceType as enums.
func (AXValueSourceType) String ¶
func (e AXValueSourceType) String() string
func (AXValueSourceType) Valid ¶
func (e AXValueSourceType) Valid() bool
type AXValueType ¶
type AXValueType string
AXValueType Enum of possible property types.
const ( AXValueTypeNotSet AXValueType = "" 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" )
AXValueType as enums.
func (AXValueType) String ¶
func (e AXValueType) String() string
func (AXValueType) Valid ¶
func (e AXValueType) Valid() bool
type AXWidgetAttributes ¶
type AXWidgetAttributes string
AXWidgetAttributes Attributes which apply to widgets.
const ( AXWidgetAttributesNotSet AXWidgetAttributes = "" 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" )
AXWidgetAttributes as enums.
func (AXWidgetAttributes) String ¶
func (e AXWidgetAttributes) String() string
func (AXWidgetAttributes) Valid ¶
func (e AXWidgetAttributes) Valid() bool
type AXWidgetStates ¶
type AXWidgetStates string
AXWidgetStates States which apply to widgets.
const ( AXWidgetStatesNotSet AXWidgetStates = "" AXWidgetStatesChecked AXWidgetStates = "checked" AXWidgetStatesExpanded AXWidgetStates = "expanded" AXWidgetStatesModal AXWidgetStates = "modal" AXWidgetStatesPressed AXWidgetStates = "pressed" AXWidgetStatesSelected AXWidgetStates = "selected" )
AXWidgetStates as enums.
func (AXWidgetStates) String ¶
func (e AXWidgetStates) String() string
func (AXWidgetStates) Valid ¶
func (e AXWidgetStates) Valid() bool
type GetPartialAXTreeArgs ¶
type GetPartialAXTreeArgs struct { 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. }
GetPartialAXTreeArgs represents the arguments for GetPartialAXTree in the Accessibility domain.
func NewGetPartialAXTreeArgs ¶
func NewGetPartialAXTreeArgs(nodeID dom.NodeID) *GetPartialAXTreeArgs
NewGetPartialAXTreeArgs initializes GetPartialAXTreeArgs with the required arguments.
func (*GetPartialAXTreeArgs) SetFetchRelatives ¶
func (a *GetPartialAXTreeArgs) SetFetchRelatives(fetchRelatives bool) *GetPartialAXTreeArgs
SetFetchRelatives sets the FetchRelatives optional argument. Whether to fetch this nodes ancestors, siblings and children. Defaults to true.
type GetPartialAXTreeReply ¶
type GetPartialAXTreeReply struct {
Nodes []AXNode `json:"nodes"` // The Accessibility.AXNode for this DOM node, if it exists, plus its ancestors, siblings and children, if requested.
}
GetPartialAXTreeReply represents the return values for GetPartialAXTree in the Accessibility domain.