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: set ts=2 et sw=2 tw=80: */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 5 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #ifndef mozilla_a11y_xpcom_xpcAccessibletableCell_h_ |
michael@0 | 8 | #define mozilla_a11y_xpcom_xpcAccessibletableCell_h_ |
michael@0 | 9 | |
michael@0 | 10 | #include "nscore.h" |
michael@0 | 11 | |
michael@0 | 12 | class nsIAccessibleTable; |
michael@0 | 13 | class nsIArray; |
michael@0 | 14 | |
michael@0 | 15 | namespace mozilla { |
michael@0 | 16 | namespace a11y { |
michael@0 | 17 | |
michael@0 | 18 | class TableAccessible; |
michael@0 | 19 | class TableCellAccessible; |
michael@0 | 20 | |
michael@0 | 21 | /** |
michael@0 | 22 | * This class provides an implementation of the nsIAccessibleTableCell |
michael@0 | 23 | * interface's methods. |
michael@0 | 24 | */ |
michael@0 | 25 | class xpcAccessibleTableCell |
michael@0 | 26 | { |
michael@0 | 27 | public: |
michael@0 | 28 | xpcAccessibleTableCell(mozilla::a11y::TableCellAccessible* aTableCell) : |
michael@0 | 29 | mTableCell(aTableCell) { } |
michael@0 | 30 | |
michael@0 | 31 | nsresult GetTable(nsIAccessibleTable** aTable); |
michael@0 | 32 | nsresult GetColumnIndex(int32_t* aColIdx); |
michael@0 | 33 | nsresult GetRowIndex(int32_t* aRowIdx); |
michael@0 | 34 | nsresult GetColumnExtent(int32_t* aExtent); |
michael@0 | 35 | nsresult GetRowExtent(int32_t* aExtent); |
michael@0 | 36 | nsresult GetColumnHeaderCells(nsIArray** aHeaderCells); |
michael@0 | 37 | nsresult GetRowHeaderCells(nsIArray** aHeaderCells); |
michael@0 | 38 | nsresult IsSelected(bool* aSelected); |
michael@0 | 39 | |
michael@0 | 40 | protected: |
michael@0 | 41 | mozilla::a11y::TableCellAccessible* mTableCell; |
michael@0 | 42 | }; |
michael@0 | 43 | |
michael@0 | 44 | } // namespace a11y |
michael@0 | 45 | } // namespace mozilla |
michael@0 | 46 | |
michael@0 | 47 | #endif // mozilla_a11y_xpcom_xpcAccessibletableCell_h_ |