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
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
|
|
|
|
// nsIAccessibleTableCell
|
2015-03-21 19:28:04 +03: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-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:
|
|
|
|
TableCellAccessible* Intl() { return mIntl->AsTableCell(); }
|
|
|
|
|
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_
|