xpcAccessibleHyperLink.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 file,
  4. * You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef mozilla_a11y_xpcAccessibleHyperLink_h_
  6. #define mozilla_a11y_xpcAccessibleHyperLink_h_
  7. #include "nsIAccessibleHyperLink.h"
  8. class nsIAccessible;
  9. namespace mozilla {
  10. namespace a11y {
  11. class Accessible;
  12. /**
  13. * XPCOM nsIAccessibleHyperLink implementation, used by xpcAccessibleGeneric
  14. * class.
  15. */
  16. class xpcAccessibleHyperLink : public nsIAccessibleHyperLink
  17. {
  18. public:
  19. NS_IMETHOD GetAnchorCount(int32_t* aAnchorCount) final override;
  20. NS_IMETHOD GetStartIndex(int32_t* aStartIndex) final override;
  21. NS_IMETHOD GetEndIndex(int32_t* aEndIndex) final override;
  22. NS_IMETHOD GetURI(int32_t aIndex, nsIURI** aURI) final override;
  23. NS_IMETHOD GetAnchor(int32_t aIndex, nsIAccessible** aAccessible)
  24. final override;
  25. NS_IMETHOD GetValid(bool* aValid) final override;
  26. protected:
  27. xpcAccessibleHyperLink() { }
  28. virtual ~xpcAccessibleHyperLink() {}
  29. private:
  30. xpcAccessibleHyperLink(const xpcAccessibleHyperLink&) = delete;
  31. xpcAccessibleHyperLink& operator =(const xpcAccessibleHyperLink&) = delete;
  32. AccessibleOrProxy Intl();
  33. };
  34. } // namespace a11y
  35. } // namespace mozilla
  36. #endif