Logo Search packages:      
Sourcecode: xulrunner version File versions  Download package

NS_IMETHODIMP nsXULComboboxAccessible::GetRole ( PRUint32 *  aRole  ) 

We are a combobox

Definition at line 1036 of file nsXULSelectAccessible.cpp.

References nsIAccessibleRole::ROLE_AUTOCOMPLETE, and nsIAccessibleRole::ROLE_COMBOBOX.

{
  nsCOMPtr<nsIContent> content = do_QueryInterface(mDOMNode);
  if (!content) {
    return NS_ERROR_FAILURE;
  }
  if (content->AttrValueIs(kNameSpaceID_None, nsAccessibilityAtoms::type,
                           NS_LITERAL_STRING("autocomplete"), eIgnoreCase)) {
    *aRole = nsIAccessibleRole::ROLE_AUTOCOMPLETE;
  } else {
    *aRole = nsIAccessibleRole::ROLE_COMBOBOX;
  }
  return NS_OK;
}


Generated by  Doxygen 1.6.0   Back to index