tor-browser

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

ia2AccessibleImage.h (1546B)


      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_IMAGE_H
      9 #define _ACCESSIBLE_IMAGE_H
     10 
     11 #include "AccessibleImage.h"
     12 #include "IUnknownImpl.h"
     13 #include "MsaaAccessible.h"
     14 
     15 namespace mozilla {
     16 namespace a11y {
     17 class ImageAccessible;
     18 
     19 class ia2AccessibleImage : public IAccessibleImage, public MsaaAccessible {
     20 public:
     21  // IUnknown
     22  DECL_IUNKNOWN_INHERITED
     23  IMPL_IUNKNOWN_REFCOUNTING_INHERITED(MsaaAccessible)
     24 
     25  // IAccessibleAction
     26  // We indirectly inherit IAccessibleAction, which has a get_description
     27  // method, but IAccessibleImage  also has a get_description method with a
     28  // different signature. We want both.
     29  using MsaaAccessible::get_description;
     30 
     31  // IAccessibleImage
     32  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_description(
     33      /* [retval][out] */ BSTR* description);
     34 
     35  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_imagePosition(
     36      /* [in] */ enum IA2CoordinateType coordinateType,
     37      /* [out] */ long* x,
     38      /* [retval][out] */ long* y);
     39 
     40  virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_imageSize(
     41      /* [out] */ long* height,
     42      /* [retval][out] */ long* width);
     43 
     44 protected:
     45  using MsaaAccessible::MsaaAccessible;
     46 };
     47 
     48 }  // namespace a11y
     49 }  // namespace mozilla
     50 
     51 #endif