bug 440770 - DOCUMENT_FRAME has a parent INTERNAL_FRAME with an action, r=aaronlev, a1.9.0.2=ss

This commit is contained in:
marco.zehe%googlemail.com 2008-07-22 05:07:52 +00:00
Родитель 9102251942
Коммит 4b97fcbebe
2 изменённых файлов: 35 добавлений и 0 удалений

Просмотреть файл

@ -148,3 +148,34 @@ nsOuterDocAccessible::GetAttributesInternal(nsIPersistentProperties *aAttributes
}
return nsAccessible::GetAttributesInternal(aAttributes);
}
// Internal frame, which is the doc's parent, should not have a click action
NS_IMETHODIMP
nsOuterDocAccessible::GetNumActions(PRUint8 *aNumActions)
{
NS_ENSURE_ARG_POINTER(aNumActions);
*aNumActions = 0;
return NS_OK;
}
NS_IMETHODIMP
nsOuterDocAccessible::GetActionName(PRUint8 aIndex, nsAString& aName)
{
aName.Truncate();
return NS_ERROR_INVALID_ARG;
}
NS_IMETHODIMP
nsOuterDocAccessible::GetActionDescription(PRUint8 aIndex, nsAString& aDescription)
{
// default to same as action name.
return GetActionName(aIndex, aDescription);
}
NS_IMETHODIMP
nsOuterDocAccessible::DoAction(PRUint8 aIndex)
{
return NS_ERROR_INVALID_ARG;
}

Просмотреть файл

@ -58,6 +58,10 @@ class nsOuterDocAccessible : public nsAccessibleWrap
nsIAccessible **aAccessible);
void CacheChildren();
nsresult GetAttributesInternal(nsIPersistentProperties *aAttributes);
NS_IMETHOD GetNumActions(PRUint8 *aNumActions);
NS_IMETHOD GetActionName(PRUint8 aIndex, nsAString& aName);
NS_IMETHODIMP GetActionDescription(PRUint8 aIndex, nsAString& aDescription);
NS_IMETHOD DoAction(PRUint8 aIndex);
};
#endif