accessible/src/windows/ia2/ia2AccessibleHypertext.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/src/windows/ia2/ia2AccessibleHypertext.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim:expandtab:shiftwidth=2:tabstop=2:
     1.6 + */
     1.7 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
    1.10 +
    1.11 +#ifndef _ACCESSIBLE_HYPERTEXT_H
    1.12 +#define _ACCESSIBLE_HYPERTEXT_H
    1.13 +
    1.14 +#include "nsISupports.h"
    1.15 +
    1.16 +#include "ia2AccessibleText.h"
    1.17 +#include "AccessibleHypertext.h"
    1.18 +
    1.19 +namespace mozilla {
    1.20 +namespace a11y {
    1.21 +
    1.22 +class ia2AccessibleHypertext : public ia2AccessibleText,
    1.23 +                               public IAccessibleHypertext
    1.24 +{
    1.25 +public:
    1.26 +
    1.27 +  // IAccessibleText
    1.28 +  FORWARD_IACCESSIBLETEXT(ia2AccessibleText)
    1.29 +
    1.30 +  // IAccessibleHypertext
    1.31 +  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_nHyperlinks(
    1.32 +      /* [retval][out] */ long* hyperlinkCount);
    1.33 +
    1.34 +  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_hyperlink(
    1.35 +      /* [in] */ long index,
    1.36 +      /* [retval][out] */ IAccessibleHyperlink** hyperlink);
    1.37 +
    1.38 +  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_hyperlinkIndex(
    1.39 +      /* [in] */ long charIndex,
    1.40 +      /* [retval][out] */ long* hyperlinkIndex);
    1.41 +};
    1.42 +
    1.43 +} // namespace a11y
    1.44 +} // namespace mozilla
    1.45 +
    1.46 +#endif

mercurial