ia2AccessibleHyperlink.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* vim:expandtab:shiftwidth=2:tabstop=2:
  3. */
  4. /* This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  7. #ifndef _ACCESSIBLE_HYPERLINK_H
  8. #define _ACCESSIBLE_HYPERLINK_H
  9. #include "nsISupports.h"
  10. #include "ia2AccessibleAction.h"
  11. #include "AccessibleHyperlink.h"
  12. namespace mozilla {
  13. namespace a11y {
  14. class ia2AccessibleHyperlink : public ia2AccessibleAction,
  15. public IAccessibleHyperlink
  16. {
  17. public:
  18. // IUnknown
  19. STDMETHODIMP QueryInterface(REFIID, void**);
  20. // IAccessibleAction
  21. FORWARD_IACCESSIBLEACTION(ia2AccessibleAction)
  22. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_anchor(
  23. /* [in] */ long index,
  24. /* [retval][out] */ VARIANT *anchor);
  25. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_anchorTarget(
  26. /* [in] */ long index,
  27. /* [retval][out] */ VARIANT *anchorTarget);
  28. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_startIndex(
  29. /* [retval][out] */ long *index);
  30. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_endIndex(
  31. /* [retval][out] */ long *index);
  32. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_valid(
  33. /* [retval][out] */ boolean *valid);
  34. };
  35. } // namespace a11y
  36. } // namespace mozilla
  37. #endif