accessible/windows/ia2/ia2AccessibleHypertext.h
author shindli <shindli@mozilla.com>
Fri, 02 Mar 2018 21:17:20 +0200
changeset 406315 90ea9e2402f67e48c928c7c5463a17a0c12bc4ef
parent 389301 51c759b72e9a172eae173f52fc7f7fc4b6a6b631
child 448947 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Backed out 3 changesets (bug 1381576) for Bugzilla linting failure on a CLOSED TREE Backed out changeset 3bc1743ad418 (bug 1381576) Backed out changeset bbae7807c164 (bug 1381576) Backed out changeset 1ea18b70b170 (bug 1381576)

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:expandtab:shiftwidth=2:tabstop=2:
 */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef _ACCESSIBLE_HYPERTEXT_H
#define _ACCESSIBLE_HYPERTEXT_H

#include "nsISupports.h"

#include "ia2AccessibleText.h"
#include "AccessibleHypertext2.h"

namespace mozilla {
namespace a11y {

class ia2AccessibleHypertext : public ia2AccessibleText,
                               public IAccessibleHypertext2
{
public:

  // IAccessibleText
  FORWARD_IACCESSIBLETEXT(ia2AccessibleText)

  // IAccessibleHypertext
  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_nHyperlinks(
      /* [retval][out] */ long* hyperlinkCount);

  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_hyperlink(
      /* [in] */ long index,
      /* [retval][out] */ IAccessibleHyperlink** hyperlink);

  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_hyperlinkIndex(
      /* [in] */ long charIndex,
      /* [retval][out] */ long* hyperlinkIndex);

  // IAccessibleHypertext2
  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_hyperlinks(
      /* [out, size_is(,*nHyperlinks)] */ IAccessibleHyperlink*** hyperlinks,
      /* [out, retval] */ long* nHyperlinks);
};

} // namespace a11y
} // namespace mozilla

#endif