forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxpcAccessibleTable.h
70 lines (60 loc) · 2.82 KB
/
xpcAccessibleTable.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef MOZILLA_A11Y_XPCOM_XPACCESSIBLETABLE_H_
#define MOZILLA_A11Y_XPCOM_XPACCESSIBLETABLE_H_
#include "nsAString.h"
#include "nscore.h"
class nsIAccessible;
class nsIArray;
namespace mozilla {
namespace a11y {
class TableAccessible;
class xpcAccessibleTable
{
public:
xpcAccessibleTable(mozilla::a11y::TableAccessible* aTable) : mTable(aTable) { }
nsresult GetCaption(nsIAccessible** aCaption);
nsresult GetSummary(nsAString& aSummary);
nsresult GetColumnCount(int32_t* aColumnCount);
nsresult GetRowCount(int32_t* aRowCount);
nsresult GetCellAt(int32_t aRowIndex, int32_t aColumnIndex,
nsIAccessible** aCell);
nsresult GetCellIndexAt(int32_t aRowIndex, int32_t aColumnIndex,
int32_t* aCellIndex);
nsresult GetColumnIndexAt(int32_t aCellIndex, int32_t* aColumnIndex);
nsresult GetRowIndexAt(int32_t aCellIndex, int32_t* aRowIndex);
nsresult GetRowAndColumnIndicesAt(int32_t aCellIndex, int32_t* aRowIndex,
int32_t* aColumnIndex);
nsresult GetColumnExtentAt(int32_t row, int32_t column,
int32_t* aColumnExtent);
nsresult GetRowExtentAt(int32_t row, int32_t column,
int32_t* aRowExtent);
nsresult GetColumnDescription(int32_t aColIdx, nsAString& aDescription);
nsresult GetRowDescription(int32_t aRowIdx, nsAString& aDescription);
nsresult IsColumnSelected(int32_t aColIdx, bool* _retval);
nsresult IsRowSelected(int32_t aRowIdx, bool* _retval);
nsresult IsCellSelected(int32_t aRowIdx, int32_t aColIdx, bool* _retval);
nsresult GetSelectedCellCount(uint32_t* aSelectedCellCount);
nsresult GetSelectedColumnCount(uint32_t* aSelectedColumnCount);
nsresult GetSelectedRowCount(uint32_t* aSelectedRowCount);
nsresult GetSelectedCells(nsIArray** aSelectedCell);
nsresult GetSelectedCellIndices(uint32_t* aCellsArraySize,
int32_t** aCellsArray);
nsresult GetSelectedColumnIndices(uint32_t* aColsArraySize,
int32_t** aColsArray);
nsresult GetSelectedRowIndices(uint32_t* aRowsArraySize,
int32_t** aRowsArray);
nsresult SelectColumn(int32_t aColIdx);
nsresult SelectRow(int32_t aRowIdx);
nsresult UnselectColumn(int32_t aColIdx);
nsresult UnselectRow(int32_t aRowIdx);
nsresult IsProbablyForLayout(bool* aIsForLayout);
protected:
mozilla::a11y::TableAccessible* mTable;
};
} // namespace a11y
} // namespace mozilla
#endif // MOZILLA_A11Y_XPCOM_XPACCESSIBLETABLE_H_