1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_a11y_xpcAccessibleHyperLink_h_
8 #define mozilla_a11y_xpcAccessibleHyperLink_h_
10 #include "nsIAccessibleHyperLink.h"
12 #include "mozilla/a11y/Accessible.h"
19 class LocalAccessible
;
22 * XPCOM nsIAccessibleHyperLink implementation, used by xpcAccessibleGeneric
25 class xpcAccessibleHyperLink
: public nsIAccessibleHyperLink
{
27 NS_IMETHOD
GetAnchorCount(int32_t* aAnchorCount
) final
;
28 NS_IMETHOD
GetStartIndex(int32_t* aStartIndex
) final
;
29 NS_IMETHOD
GetEndIndex(int32_t* aEndIndex
) final
;
30 NS_IMETHOD
GetURI(int32_t aIndex
, nsIURI
** aURI
) final
;
31 NS_IMETHOD
GetAnchor(int32_t aIndex
, nsIAccessible
** aAccessible
) final
;
32 NS_IMETHOD
GetValid(bool* aValid
) final
;
35 xpcAccessibleHyperLink() {}
36 virtual ~xpcAccessibleHyperLink() {}
39 xpcAccessibleHyperLink(const xpcAccessibleHyperLink
&) = delete;
40 xpcAccessibleHyperLink
& operator=(const xpcAccessibleHyperLink
&) = delete;
46 } // namespace mozilla