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_TableCellAccessible_h__ |
michael@0 | 8 | #define mozilla_a11y_TableCellAccessible_h__ |
michael@0 | 9 | |
michael@0 | 10 | #include "nsTArray.h" |
michael@0 | 11 | #include <stdint.h> |
michael@0 | 12 | |
michael@0 | 13 | namespace mozilla { |
michael@0 | 14 | namespace a11y { |
michael@0 | 15 | |
michael@0 | 16 | class Accessible; |
michael@0 | 17 | class TableAccessible; |
michael@0 | 18 | |
michael@0 | 19 | /** |
michael@0 | 20 | * Abstract interface implemented by table cell accessibles. |
michael@0 | 21 | */ |
michael@0 | 22 | class TableCellAccessible |
michael@0 | 23 | { |
michael@0 | 24 | public: |
michael@0 | 25 | |
michael@0 | 26 | /** |
michael@0 | 27 | * Return the table this cell is in. |
michael@0 | 28 | */ |
michael@0 | 29 | virtual TableAccessible* Table() const = 0; |
michael@0 | 30 | |
michael@0 | 31 | /** |
michael@0 | 32 | * Return the column of the table this cell is in. |
michael@0 | 33 | */ |
michael@0 | 34 | virtual uint32_t ColIdx() const = 0; |
michael@0 | 35 | |
michael@0 | 36 | /** |
michael@0 | 37 | * Return the row of the table this cell is in. |
michael@0 | 38 | */ |
michael@0 | 39 | virtual uint32_t RowIdx() const = 0; |
michael@0 | 40 | |
michael@0 | 41 | /** |
michael@0 | 42 | * Return the column extent of this cell. |
michael@0 | 43 | */ |
michael@0 | 44 | virtual uint32_t ColExtent() const { return 1; } |
michael@0 | 45 | |
michael@0 | 46 | /** |
michael@0 | 47 | * Return the row extent of this cell. |
michael@0 | 48 | */ |
michael@0 | 49 | virtual uint32_t RowExtent() const { return 1; } |
michael@0 | 50 | |
michael@0 | 51 | /** |
michael@0 | 52 | * Return the column header cells for this cell. |
michael@0 | 53 | */ |
michael@0 | 54 | virtual void ColHeaderCells(nsTArray<Accessible*>* aCells); |
michael@0 | 55 | |
michael@0 | 56 | /** |
michael@0 | 57 | * Return the row header cells for this cell. |
michael@0 | 58 | */ |
michael@0 | 59 | virtual void RowHeaderCells(nsTArray<Accessible*>* aCells); |
michael@0 | 60 | |
michael@0 | 61 | /** |
michael@0 | 62 | * Returns true if this cell is selected. |
michael@0 | 63 | */ |
michael@0 | 64 | virtual bool Selected() = 0; |
michael@0 | 65 | }; |
michael@0 | 66 | |
michael@0 | 67 | } // namespace a11y |
michael@0 | 68 | } // namespace mozilla |
michael@0 | 69 | |
michael@0 | 70 | #endif // mozilla_a11y_TableCellAccessible_h__ |