1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_a11y_HTMLLinkAccessible_h__
7 #define mozilla_a11y_HTMLLinkAccessible_h__
9 #include "HyperTextAccessibleWrap.h"
14 class HTMLLinkAccessible
: public HyperTextAccessibleWrap
17 HTMLLinkAccessible(nsIContent
* aContent
, DocAccessible
* aDoc
);
19 NS_DECL_ISUPPORTS_INHERITED
22 NS_IMETHOD
GetActionName(uint8_t aIndex
, nsAString
& aName
);
23 NS_IMETHOD
DoAction(uint8_t aIndex
);
26 virtual void Value(nsString
& aValue
);
27 virtual a11y::role
NativeRole();
28 virtual uint64_t NativeState();
29 virtual uint64_t NativeLinkState() const;
30 virtual uint64_t NativeInteractiveState() const;
33 virtual uint8_t ActionCount();
35 // HyperLinkAccessible
36 virtual bool IsLink();
37 virtual already_AddRefed
<nsIURI
> AnchorURIAt(uint32_t aAnchorIndex
);
40 virtual ~HTMLLinkAccessible() {}
42 enum { eAction_Jump
= 0 };
45 * Returns true if the link has href attribute.
51 } // namespace mozilla