Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim:expandtab:shiftwidth=2:tabstop=2: |
michael@0 | 3 | */ |
michael@0 | 4 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 5 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 6 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 7 | |
michael@0 | 8 | #ifndef _ACCESSIBLE_TABLECELL_H |
michael@0 | 9 | #define _ACCESSIBLE_TABLECELL_H |
michael@0 | 10 | |
michael@0 | 11 | #include "AccessibleTableCell.h" |
michael@0 | 12 | |
michael@0 | 13 | namespace mozilla { |
michael@0 | 14 | namespace a11y { |
michael@0 | 15 | class TableCellAccessible; |
michael@0 | 16 | |
michael@0 | 17 | class ia2AccessibleTableCell : public IAccessibleTableCell |
michael@0 | 18 | { |
michael@0 | 19 | public: |
michael@0 | 20 | |
michael@0 | 21 | // IUnknown |
michael@0 | 22 | STDMETHODIMP QueryInterface(REFIID, void**); |
michael@0 | 23 | |
michael@0 | 24 | // IAccessibleTableCell |
michael@0 | 25 | |
michael@0 | 26 | virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_table( |
michael@0 | 27 | /* [out, retval] */ IUnknown **table); |
michael@0 | 28 | |
michael@0 | 29 | virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnExtent( |
michael@0 | 30 | /* [out, retval] */ long *nColumnsSpanned); |
michael@0 | 31 | |
michael@0 | 32 | virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnHeaderCells( |
michael@0 | 33 | /* [out, size_is(,*nColumnHeaderCells,)] */ IUnknown ***cellAccessibles, |
michael@0 | 34 | /* [out, retval] */ long *nColumnHeaderCells); |
michael@0 | 35 | |
michael@0 | 36 | virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_columnIndex( |
michael@0 | 37 | /* [out, retval] */ long *columnIndex); |
michael@0 | 38 | |
michael@0 | 39 | virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowExtent( |
michael@0 | 40 | /* [out, retval] */ long *nRowsSpanned); |
michael@0 | 41 | |
michael@0 | 42 | virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowHeaderCells( |
michael@0 | 43 | /* [out, size_is(,*nRowHeaderCells,)] */ IUnknown ***cellAccessibles, |
michael@0 | 44 | /* [out, retval] */ long *nRowHeaderCells); |
michael@0 | 45 | |
michael@0 | 46 | virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowIndex( |
michael@0 | 47 | /* [out, retval] */ long *rowIndex); |
michael@0 | 48 | |
michael@0 | 49 | virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_rowColumnExtents( |
michael@0 | 50 | /* [out] */ long *row, |
michael@0 | 51 | /* [out] */ long *column, |
michael@0 | 52 | /* [out] */ long *rowExtents, |
michael@0 | 53 | /* [out] */ long *columnExtents, |
michael@0 | 54 | /* [out, retval] */ boolean *isSelected); |
michael@0 | 55 | |
michael@0 | 56 | virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_isSelected( |
michael@0 | 57 | /* [out, retval] */ boolean *isSelected); |
michael@0 | 58 | |
michael@0 | 59 | protected: |
michael@0 | 60 | ia2AccessibleTableCell(TableCellAccessible* aTableCell) : |
michael@0 | 61 | mTableCell(aTableCell) {} |
michael@0 | 62 | |
michael@0 | 63 | TableCellAccessible* mTableCell; |
michael@0 | 64 | }; |
michael@0 | 65 | |
michael@0 | 66 | } // namespace a11y |
michael@0 | 67 | } // namespace mozilla |
michael@0 | 68 | |
michael@0 | 69 | #endif |