1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_a11y_TableCellAccessible_h__
8 #define mozilla_a11y_TableCellAccessible_h__
17 class TableAccessible
;
20 * Abstract interface implemented by table cell accessibles.
22 class TableCellAccessible
{
25 * Return the table this cell is in.
27 virtual TableAccessible
* Table() const = 0;
30 * Return the column of the table this cell is in.
32 virtual uint32_t ColIdx() const = 0;
35 * Return the row of the table this cell is in.
37 virtual uint32_t RowIdx() const = 0;
40 * Return the column extent of this cell.
42 virtual uint32_t ColExtent() const { return 1; }
45 * Return the row extent of this cell.
47 virtual uint32_t RowExtent() const { return 1; }
50 * Return the column header cells for this cell.
52 virtual void ColHeaderCells(nsTArray
<Accessible
*>* aCells
) = 0;
55 * Return the row header cells for this cell.
57 virtual void RowHeaderCells(nsTArray
<Accessible
*>* aCells
) = 0;
60 * Returns true if this cell is selected.
62 virtual bool Selected() = 0;
66 } // namespace mozilla
68 #endif // mozilla_a11y_TableCellAccessible_h__