2012-07-24 19:58:25 +04:00
|
|
|
/* -*- 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/. */
|
|
|
|
|
2012-08-09 10:24:31 +04:00
|
|
|
#ifndef mozilla_a11y_xpcom_xpcAccessibletableCell_h_
|
|
|
|
#define mozilla_a11y_xpcom_xpcAccessibletableCell_h_
|
|
|
|
|
2014-10-22 04:49:28 +04:00
|
|
|
#include "nsIAccessibleTable.h"
|
2012-08-09 10:24:31 +04:00
|
|
|
|
2014-10-22 04:49:28 +04:00
|
|
|
#include "xpcAccessibleHyperText.h"
|
2012-07-24 19:58:25 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
2012-08-09 10:24:31 +04:00
|
|
|
|
|
|
|
/**
|
2014-10-22 04:49:28 +04:00
|
|
|
* XPCOM wrapper around TableAccessibleCell class.
|
2012-08-09 10:24:31 +04:00
|
|
|
*/
|
2014-10-22 04:49:28 +04:00
|
|
|
class xpcAccessibleTableCell : public xpcAccessibleHyperText,
|
|
|
|
public nsIAccessibleTableCell {
|
2012-07-24 19:58:25 +04:00
|
|
|
public:
|
2014-10-11 01:28:35 +04:00
|
|
|
explicit xpcAccessibleTableCell(Accessible* aIntl)
|
|
|
|
: xpcAccessibleHyperText(aIntl) {}
|
2014-10-22 04:49:28 +04:00
|
|
|
|
2016-01-19 17:47:52 +03:00
|
|
|
xpcAccessibleTableCell(ProxyAccessible* aProxy, uint32_t aInterfaces)
|
|
|
|
: xpcAccessibleHyperText(aProxy, aInterfaces) {}
|
|
|
|
|
2014-10-22 04:49:28 +04:00
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
|
|
|
|
// nsIAccessibleTableCell
|
2018-02-06 09:46:57 +03:00
|
|
|
NS_IMETHOD GetTable(nsIAccessibleTable** aTable) final;
|
|
|
|
NS_IMETHOD GetColumnIndex(int32_t* aColIdx) final;
|
|
|
|
NS_IMETHOD GetRowIndex(int32_t* aRowIdx) final;
|
|
|
|
NS_IMETHOD GetColumnExtent(int32_t* aExtent) final;
|
|
|
|
NS_IMETHOD GetRowExtent(int32_t* aExtent) final;
|
|
|
|
NS_IMETHOD GetColumnHeaderCells(nsIArray** aHeaderCells) final;
|
|
|
|
NS_IMETHOD GetRowHeaderCells(nsIArray** aHeaderCells) final;
|
|
|
|
NS_IMETHOD IsSelected(bool* aSelected) final;
|
2012-08-09 10:24:31 +04:00
|
|
|
|
2012-07-24 19:58:25 +04:00
|
|
|
protected:
|
2014-10-22 04:49:28 +04:00
|
|
|
virtual ~xpcAccessibleTableCell() {}
|
|
|
|
|
|
|
|
private:
|
2016-01-21 08:07:56 +03:00
|
|
|
TableCellAccessible* Intl() {
|
|
|
|
if (Accessible* acc = mIntl.AsAccessible()) {
|
|
|
|
return acc->AsTableCell();
|
|
|
|
}
|
|
|
|
|
|
|
|
return nullptr;
|
|
|
|
}
|
2014-10-22 04:49:28 +04:00
|
|
|
|
2015-01-07 02:35:02 +03:00
|
|
|
xpcAccessibleTableCell(const xpcAccessibleTableCell&) = delete;
|
|
|
|
xpcAccessibleTableCell& operator=(const xpcAccessibleTableCell&) = delete;
|
2012-07-24 19:58:25 +04:00
|
|
|
};
|
2012-11-18 06:01:44 +04:00
|
|
|
|
2012-08-09 10:24:31 +04:00
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
2012-07-24 19:58:25 +04:00
|
|
|
|
2012-08-09 10:24:31 +04:00
|
|
|
#endif // mozilla_a11y_xpcom_xpcAccessibletableCell_h_
|