Accessibility/IA2ToGecko
Jump to navigation
Jump to search
IAccessible2
| IA2 | Description | Gecko | Description |
|---|---|---|---|
| nRelations | Returns the number of accessible relations for this object | ?? | |
| relation | Returns one accessible relation for this object | ?? | |
| relations | Returns multiple accessible relations for this object | ?? | |
| scrollTo | Makes an object visible on screen | ?? | |
| groupPosition | Returns grouping information | ?? | |
| localizedRoleName | Returns the localized role name | ?? | |
| states | Returns the bit strip containing any IAccessible2 states | nsIAccessible::finalState | Returns the bit field which describes boolean properties of node |
| localizedStateNames | Returns localized state names (array of strings) | ?? | |
| extendedRole | Returns the extended role | ?? | |
| localizedExtendedRole | Returns the localized extended role | ?? | |
| nExtendedStates | Returns the number of extended states | ?? | may be used nsIAccessible::extState |
| extendedStates | Returns the extended states (array of strings) | ?? | may be used nsIAccessible::extState, that is second bit field describing node |
| localizedExtendedStates | Returns the localized extended states (array of strings) | ?? | |
| uniqueID | Returns the unique ID | nsIAccessNode::uniqueID | A unique ID calculated for this DOM node, for the purposes of caching and referencing this object |
| windowHandle | Returns the window handle for the parent window which contains this object | nsIAccessNode::ownerWindow | The OS window handle for the window this node is being displayed in |
| indexInParent | Returns the index of this object in its parent object | nsIAccessible::indexInParent | The 0-based index of this accessible in its parent's list of children, or -1 if this accessible does not have a parent |
| locale | Returns the IA2Locale of the accessible object | ?? | |
| attributes | Returns the attributes specific to this IAccessible2 object, such as a cell's formula | nsIAccessible::attributes | Attributes of accessible |
IAccessibleAction
| IA2 | Description | Gecko | Description |
|---|---|---|---|
| nActions | Returns the number of accessible actions available in this object | nsIAccessible::numActions | The number of accessible actions associated with this accessible |
| doAction | Performs the specified Action on the object | nsIAccessible::doAction() | |
| description | Returns a description of the specified action of the object | getActionDescription() | |
| keyBinding | Returns an array of BSTRs describing one or more key bindings, if there are any, associated with the specified action | may be nsIAccessible::keyboardShortcut or/and nsIAccessible2::keyBinding | |
| name | Returns the non-localized name of specified action | nsIAccessible::getActionName() | The name of the accessible action at the given zero-based index |
| localizedName | Returns the localized name of specified action | ?? |
AccessibleApplication
| IA2 | Description | Gecko | Description |
|---|---|---|---|
| appName | Returns the application name | ?? | |
| appVersion | Returns the application version | ?? | |
| toolkitName | Returns the toolkit/bridge name | ?? | |
| toolkitVersion | Returns the toolkit/bridge version | ?? |
AccessibleComponent
| IA2 | Description | Gecko | Description |
|---|---|---|---|
| locationInParent | Returns the location of the upper left corner of the object's bounding box relative to the parent | ?? | may be used nsIAccessible::getBounds() |
| foreground | Returns the foreground color of this object | ?? | may be used nsIAccessNode::getComputedStyleValue() |
| background | Returns the background color of this object | ?? | may be used nsIAccessNode::getComputedStyleValue() |
AccessibleEditableText
| IA2 | Description | Gecko | Description |
|---|---|---|---|
| copyText | Copies the text range into the clipboard | nsIAccessibleEditableText::copyText | |
| deleteText | Deletes a range of text | nsIAccessibleEditableText::deleteText | |
| insertText | Inserts text at the specified position | nsIAccessibleEditableText::nsertText | |
| cutText | Deletes a range of text and copies it to the clipboard | nsIAccessibleEditableText::cutText | |
| pasteText | Pastes text from the clipboard | nsIAccessibleEditableText::pasteText | |
| replaceText | Replaces text | ?? | may be used deleteText + insertText |
| setAttributes | Replaces the attributes of a text range by the given set of attributes | nsIAccessibleEditableText::setAttributes |
IAccessibleHyperlink
| IA2 | Description | Gecko | Description |
|---|---|---|---|
| anchor | Returns an object that represents the link anchor, as appropriate for the link at the specified index | nsIAccessibleHyperLink::getObject() | |
| anchorTarget | Returns an object representing the target of the link, as appropriate for the link at the specified index | nsIAccessibleHyperLink::getURI() | |
| startIndex | Returns the index at which the textual representation of the hyperlink starts | nsIAccessibleHyperLink::startIndex | |
| endIndex | Returns the index at which the textual rerpesentation of the hyperlink ends | nsIAccessibleHyperLink::endIndex | |
| valid | Returns whether the target object referenced by this link is still valid | nsIAccessibleHyperLink::isValid() |