tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ia2AccessibleHyperlink.h (1560B)


      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 
      8 #ifndef _ACCESSIBLE_HYPERLINK_H
      9 #define _ACCESSIBLE_HYPERLINK_H
     10 
     11 #include "nsISupports.h"
     12 
     13 #include "ia2AccessibleAction.h"
     14 #include "AccessibleHyperlink.h"
     15 
     16 namespace mozilla {
     17 namespace a11y {
     18 class Accessible;
     19 class AccessibleWrap;
     20 
     21 class ia2AccessibleHyperlink : public ia2AccessibleAction,
     22                               public IAccessibleHyperlink {
     23 public:
     24  // IUnknown
     25  STDMETHODIMP QueryInterface(REFIID, void**);
     26 
     27  // IAccessibleAction
     28  FORWARD_IACCESSIBLEACTION(ia2AccessibleAction)
     29 
     30  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_anchor(
     31      /* [in] */ long index,
     32      /* [retval][out] */ VARIANT* anchor);
     33 
     34  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_anchorTarget(
     35      /* [in] */ long index,
     36      /* [retval][out] */ VARIANT* anchorTarget);
     37 
     38  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_startIndex(
     39      /* [retval][out] */ long* index);
     40 
     41  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_endIndex(
     42      /* [retval][out] */ long* index);
     43 
     44  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_valid(
     45      /* [retval][out] */ boolean* valid);
     46 
     47 private:
     48  Accessible* Acc();
     49  AccessibleWrap* LocalAcc();
     50 };
     51 
     52 }  // namespace a11y
     53 }  // namespace mozilla
     54 
     55 #endif