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