2001-10-09 21:52:36 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
2004-04-17 21:52:36 +00:00
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
2001-10-09 21:52:36 +00:00
|
|
|
*
|
2004-04-17 21:52:36 +00:00
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
2001-10-09 21:52:36 +00:00
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
2004-04-17 21:52:36 +00:00
|
|
|
* The Initial Developer of the Original Code is
|
2001-10-09 21:52:36 +00:00
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
2002-11-06 01:29:58 +00:00
|
|
|
* Aaron Leventhal (aaronl@netscape.com)
|
|
|
|
* Kyle Yuan (kyle.yuan@sun.com)
|
2001-10-09 21:52:36 +00:00
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
2004-04-17 21:52:36 +00:00
|
|
|
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
2001-10-09 21:52:36 +00:00
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
2004-04-17 21:52:36 +00:00
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
2001-10-09 21:52:36 +00:00
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
2004-04-17 21:52:36 +00:00
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
2001-10-09 21:52:36 +00:00
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
|
|
|
|
|
|
|
#ifndef _nsXULTextAccessible_H_
|
|
|
|
#define _nsXULTextAccessible_H_
|
|
|
|
|
2006-02-01 18:53:54 +00:00
|
|
|
#include "nsBaseWidgetAccessible.h"
|
2003-05-19 09:07:41 +00:00
|
|
|
#include "nsTextAccessibleWrap.h"
|
2007-05-01 17:08:26 +00:00
|
|
|
#include "nsHyperTextAccessibleWrap.h"
|
2001-10-09 21:52:36 +00:00
|
|
|
|
|
|
|
class nsIWeakReference;
|
|
|
|
|
2007-05-01 17:08:26 +00:00
|
|
|
class nsXULTextAccessible : public nsHyperTextAccessibleWrap
|
2001-10-09 21:52:36 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
nsXULTextAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
|
2003-07-31 08:09:39 +00:00
|
|
|
NS_IMETHOD GetName(nsAString& _retval);
|
2007-04-02 15:56:24 +00:00
|
|
|
NS_IMETHOD GetState(PRUint32 *aState, PRUint32 *aExtraState);
|
2007-03-15 02:26:13 +00:00
|
|
|
NS_IMETHOD GetRole(PRUint32 *aRole) { *aRole = nsIAccessibleRole::ROLE_LABEL; return NS_OK; }
|
2007-09-29 07:04:27 +00:00
|
|
|
NS_IMETHOD GetAccessibleRelated(PRUint32 aRelationType,
|
|
|
|
nsIAccessible **aRelated);
|
2001-10-09 21:52:36 +00:00
|
|
|
};
|
|
|
|
|
2002-11-06 01:29:58 +00:00
|
|
|
class nsXULTooltipAccessible : public nsLeafAccessible
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
nsXULTooltipAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
|
2003-07-31 08:09:39 +00:00
|
|
|
NS_IMETHOD GetName(nsAString& _retval);
|
2007-04-02 15:56:24 +00:00
|
|
|
NS_IMETHOD GetState(PRUint32 *aState, PRUint32 *aExtraState);
|
2003-07-31 08:09:39 +00:00
|
|
|
NS_IMETHOD GetRole(PRUint32 *_retval);
|
2002-11-06 01:29:58 +00:00
|
|
|
};
|
|
|
|
|
2008-03-18 11:37:12 +00:00
|
|
|
class nsXULLinkAccessible : public nsHyperTextAccessibleWrap
|
2005-07-14 15:12:12 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
nsXULLinkAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
|
2008-03-18 11:37:12 +00:00
|
|
|
|
|
|
|
// nsIAccessible
|
|
|
|
NS_IMETHOD GetName(nsAString& aName);
|
2005-07-14 15:12:12 +00:00
|
|
|
NS_IMETHOD GetRole(PRUint32 *aRole);
|
2008-03-18 11:37:12 +00:00
|
|
|
NS_IMETHOD GetState(PRUint32 *aState, PRUint32 *aExtraState);
|
|
|
|
NS_IMETHOD GetValue(nsAString& aValue);
|
|
|
|
|
|
|
|
NS_IMETHOD GetNumActions(PRUint8 *aNumActions);
|
|
|
|
NS_IMETHOD GetActionName(PRUint8 aIndex, nsAString& aName);
|
|
|
|
NS_IMETHOD DoAction(PRUint8 aIndex);
|
|
|
|
|
|
|
|
// nsIAccessibleHyperLink
|
|
|
|
NS_IMETHOD GetURI(PRInt32 aIndex, nsIURI **aURI);
|
2005-07-14 15:12:12 +00:00
|
|
|
|
|
|
|
protected:
|
2008-03-18 11:37:12 +00:00
|
|
|
enum { eAction_Jump = 0 };
|
|
|
|
|
2005-07-14 15:12:12 +00:00
|
|
|
};
|
|
|
|
|
2001-10-09 21:52:36 +00:00
|
|
|
#endif
|