accessible/src/windows/ia2/ia2AccessibleTableCell.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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/. */
     8 #ifndef _ACCESSIBLE_TABLECELL_H
     9 #define _ACCESSIBLE_TABLECELL_H
    11 #include "AccessibleTableCell.h"
    13 namespace mozilla {
    14 namespace a11y {
    15 class TableCellAccessible;
    17 class ia2AccessibleTableCell : public IAccessibleTableCell
    18 {
    19 public:
    21   // IUnknown
    22   STDMETHODIMP QueryInterface(REFIID, void**);
    24   // IAccessibleTableCell
    26   virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_table(
    27       /* [out, retval] */ IUnknown **table);
    29   virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnExtent(
    30       /* [out, retval] */ long *nColumnsSpanned);
    32   virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnHeaderCells(
    33       /* [out, size_is(,*nColumnHeaderCells,)] */ IUnknown ***cellAccessibles,
    34       /* [out, retval] */ long *nColumnHeaderCells);
    36   virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnIndex(
    37       /* [out, retval] */ long *columnIndex);
    39   virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowExtent(
    40       /* [out, retval] */ long *nRowsSpanned);
    42   virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowHeaderCells(
    43       /* [out, size_is(,*nRowHeaderCells,)] */ IUnknown ***cellAccessibles,
    44       /* [out, retval] */ long *nRowHeaderCells);
    46   virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowIndex(
    47       /* [out, retval] */ long *rowIndex);
    49   virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowColumnExtents(
    50       /* [out] */ long *row,
    51       /* [out] */ long *column,
    52       /* [out] */ long *rowExtents,
    53       /* [out] */ long *columnExtents,
    54       /* [out, retval] */ boolean *isSelected);
    56   virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_isSelected(
    57       /* [out, retval] */ boolean *isSelected);
    59 protected:
    60   ia2AccessibleTableCell(TableCellAccessible* aTableCell) :
    61     mTableCell(aTableCell) {}
    63   TableCellAccessible* mTableCell;
    64 };
    66 } // namespace a11y
    67 } // namespace mozilla
    69 #endif

mercurial