зеркало из https://github.com/mozilla/pjs.git
bug 440770 - DOCUMENT_FRAME has a parent INTERNAL_FRAME with an action, r=aaronlev, a1.9.0.2=ss
This commit is contained in:
Родитель
9102251942
Коммит
4b97fcbebe
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче