Accessibility/IA2ToGecko: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 588: Line 588:
|}
|}


= AccessibleValue =
= IAccessibleValue =
 
{| summary="Proposed mapping IAccessibleValue to Gecko Accessible" width="90%" border="1" cellspacing="1" cellpadding="1"
! IA2
! Description
! Gecko
! Description
|-
| currentValue
| Returns the value of this object as a number
| nsIAccessibleValue::currentValue
|
|-
| setCurrentValue
| Sets the value of this object to the given number
| nsIAccessibleValue::currentValue
|
|-
| maximumValue
| Returns the maximal value that can be represented by this object
| nsIAccessibleValue::maximumValue
|
|-
| minimumValue
| Returns the minimal value that can be represented by this object
| nsIAccessibleValue::minimumValue
|
|-
| targets
| Returns multiple accessible relation targets
| ??
|
|}

Revision as of 04:44, 25 February 2007

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 ??

IAccessibleApplication

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 ??

IAccessibleComponent

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()

IAccessibleEditableText

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()

IAccessibleHypertext

IA2 Description Gecko Description
nHyperlinks Returns the number of links and link groups contained within this hypertext paragraph nsIAccessibleHyperText::links
hyperlink Returns the specified link nsIAccessibleHyperText::getLink()
hyperlinkIndex Returns the index of the hyperlink that is associated with this character index nsIAccessibleHyperText::getLinkIndex

IAccessibleImage

IA2 Description Gecko Description
description Returns the localized description of the image ??
imagePosition Returns the coordinates of the image ?? may be used nsIAccessible::getBounds()
imageSize Returns the size of the image in units specified by parent's coordinate system ?? may be used nsIAccessible::getBounds()

IAccessibleRelation

IA2 Description Gecko Description
relationType Returns the type of the relation ??
localizedRelationType Returns a localized version of the relation type ??
nTargets Returns the number of targets for this relation ??
target Returns one accessible relation target ??
targets Returns multiple accessible relation targets ??

IAccessibleTable

IA2 Description Gecko Description
accessibleAt Returns the IAccessible2 object at the specified row and column in the table nsIAccessibleTable::cellRefAt()
caption Returns the caption for the table nsIAccessibleTable::caption
childIndex Translates the given row and column indices into the corresponding child index ? nsIAccessibleTable::getIndexAt()
columnDescription Returns the description text of the specified column in the table nsIAccessibleTable::getColumnDescription()
columnExtentAt Returns the number of columns occupied by the accessible object at the specified row and column in the table nsIAccessibleTable::getColumnExtentAt()
columnHeader Returns the column headers as an IAccessibleTable object may be used nsIAccessibleTable:: columnHeader
columnIndex Translates the given child index into the corresponding column index nsIAccessibleTable::getColumnAtIndex
nColumns Returns the total number of columns in table nsIAccessibleTable::columns
nRows Returns the total number of rows in table nsIAccessibleTable::rows
nSelectedColumns Returns the total number of selected columns ?? may be used nsIAccessibleTable:: getSelectedColumns()
nSelectedRows Returns the total number of selected rows ?? may be used nsIAccessibleTable:: getSelectedRows()
rowDescription Returns the description text of the specified row in the table nsIAccessibleTable::getRowDescription()
rowExtentAt Returns the number of rows occupied by the accessible oject at the specified row and column in the table nsIAccessibleTable::getRowExtentAt()
rowHeader Returns the row headers as an IAccessibleTable object nsIAccessibleTable::getSelectedColumns()
selectedRows Returns a list of row indexes currently selected (0-based) nsIAccessibleTable::getSelectedRows()
selectedColumns Returns a list of column indexes currently selected (0-based) nsIAccessibleTable::getRowAtIndex()
summary Returns the summary description of the table nsIAccessibleTable::summary
isColumnSelected Returns a boolean value indicating whether the specified column is completely selected ??
isRowSelected Returns a boolean value indicating whether the specified row is completely selected ??
isSelected Returns a boolean value indicating whether the specified cell is selected ??
selectRow Selects a row and unselects all previously selected rows ??
selectColumn Selects a column and unselects all previously selected columns ??
unselectRow Unselects one row, leaving other selected rows selected (if any) ??
unselectColumn Unselects one column, leaving other selected columns selected (if any) ??
rowColumnExtentsAtIndex Given a child index, gets the row and column indexes and extents of a cell and whether or not it is selected ??
modelChange Returns the type and extents describing how a table changed ??

IAccessibleText

IA2 Description Gecko Description
addSelection Adds a text selection nsIAccessibleText::addSelection()
attributes Returns text attributes ?? probably may be used nsIAccessibleText:: getAttributeRange. What's about nsIAccessible2:: attributes?
caretOffset Returns the position of the caret nsIAccessibleText::caretOffset
characterExtents Returns the bounding box of the specified position nsIAccessibleText::getCharacterExtents()
nSelections Returns the number of active non-contiguous selections nsIAccessibleText::selectionCount
offsetAtPoint Returns the text position for the specified screen position nsIAccessibleText::getOffsetAtPoint()
selection Returns the character offsets of N-th active text selection nsIAccessibleText::getSelectionBounds()
text Returns the substring between the two given indices nsIAccessibleText::getText()
textBeforeOffset Returns a text portion before the given position nsIAccessibleText::getTextBeforeOffset()
textAfterOffset Returns a text portion after the given position nsIAccessibleText::getTextAfterOffset()
textAtOffset Returns a text portion that spans the given position nsIAccessibleText::getTextAtOffset()
removeSelection Unselects a range of text nsIAccessibleText::removeSelection()
setCaretOffset Sets the position of the caret nsIAccessibleText::caretOffset
setSelection Changes the bounds of an existing selection nsIAccessibleText::setSelectionBounds()
nCharacters Returns total number of characters nsIAccessibleText::characterCount
scrollToSubstring Makes a specific part of string visible on screen ??
newText Returns any inserted text ??
oldText Returns any removed text ??

IAccessibleValue

IA2 Description Gecko Description
currentValue Returns the value of this object as a number nsIAccessibleValue::currentValue
setCurrentValue Sets the value of this object to the given number nsIAccessibleValue::currentValue
maximumValue Returns the maximal value that can be represented by this object nsIAccessibleValue::maximumValue
minimumValue Returns the minimal value that can be represented by this object nsIAccessibleValue::minimumValue
targets Returns multiple accessible relation targets ??