From fca7b8ab1568aa7f07bad7cf3e9d652fef6bf81b Mon Sep 17 00:00:00 2001 From: "ginn.chen%sun.com" Date: Mon, 12 Dec 2005 07:23:37 +0000 Subject: [PATCH] Bug 317462 Top level application object has incorrect accessible role r=aaronleventhal sr=roc --- accessible/src/atk/nsAppRootAccessible.cpp | 7 ++++++- accessible/src/atk/nsAppRootAccessible.h | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/accessible/src/atk/nsAppRootAccessible.cpp b/accessible/src/atk/nsAppRootAccessible.cpp index 0969628874e4..5d0afadb16ce 100644 --- a/accessible/src/atk/nsAppRootAccessible.cpp +++ b/accessible/src/atk/nsAppRootAccessible.cpp @@ -23,7 +23,7 @@ * * Original Author: Bolian Yin (bolian.yin@sun.com) * - * Contributor(s): + * Contributor(s): Ginn Chen (ginn.chen@sun.com) * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or @@ -584,6 +584,11 @@ NS_IMETHODIMP nsAppRootAccessible::GetRole(PRUint32 *aRole) return NS_OK; } +NS_IMETHODIMP nsAppRootAccessible::GetFinalRole(PRUint32 *aFinalRole) +{ + return GetRole(aFinalRole); +} + NS_IMETHODIMP nsAppRootAccessible::GetParent(nsIAccessible ** aParent) { *aParent = nsnull; diff --git a/accessible/src/atk/nsAppRootAccessible.h b/accessible/src/atk/nsAppRootAccessible.h index 49e51c56f0b7..05c443c4b672 100644 --- a/accessible/src/atk/nsAppRootAccessible.h +++ b/accessible/src/atk/nsAppRootAccessible.h @@ -23,7 +23,7 @@ * * Original Author: Bolian Yin (bolian.yin@sun.com) * - * Contributor(s): + * Contributor(s): Ginn Chen (ginn.chen@sun.com) * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or @@ -80,6 +80,7 @@ public: NS_IMETHOD GetName(nsAString & aName); NS_IMETHOD GetDescription(nsAString & aDescription); NS_IMETHOD GetRole(PRUint32 *aRole); + NS_IMETHOD GetFinalRole(PRUint32 *aFinalRole); NS_IMETHOD GetParent(nsIAccessible * *aParent); NS_IMETHOD GetNextSibling(nsIAccessible * *aNextSibling); NS_IMETHOD GetPreviousSibling(nsIAccessible **aPreviousSibling);