Logo Search packages:      
Sourcecode: xulrunner version File versions

NS_IMETHODIMP nsXULTabAccessible::DoAction ( PRUint8  index  ) 

Tell the tab to do it's action

Definition at line 75 of file nsXULTabAccessible.cpp.

{
  if (index == eAction_Switch) {
    nsCOMPtr<nsIDOMXULElement> tab(do_QueryInterface(mDOMNode));
    if ( tab )
    {
      tab->Click();
      return NS_OK;
    }
    return NS_ERROR_FAILURE;
  }
  return NS_ERROR_INVALID_ARG;
}


Generated by  Doxygen 1.6.0   Back to index