Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions

STDMETHODIMP nsAccessibleWrap::role ( long *  role  )  [virtual, inherited]

Returns the role of an IAccessible2 object.

Note: For convenience MSAA roles are also passed through this method so the AT doesn't have to also fetch roles through MSAA's get_accRole.

[out] role The role of an IAccessible2 object.

Implements IAccessible2.

Definition at line 1159 of file nsAccessibleWrap.cpp.

References nsIAccessibleRole::ROLE_LAST_ENTRY.

  PRUint32 xpRole = 0;
  if (NS_FAILED(GetFinalRole(&xpRole)))
    return E_FAIL;

  NS_ASSERTION(gWindowsRoleMap[nsIAccessibleRole::ROLE_LAST_ENTRY].ia2Role == ROLE_WINDOWS_LAST_ENTRY,
               "MSAA role map skewed");

  *role = gWindowsRoleMap[xpRole].ia2Role;

  return S_OK;

Generated by  Doxygen 1.6.0   Back to index