2012-06-11 03:44:50 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim:expandtab:shiftwidth=2:tabstop=2:
|
|
|
|
*/
|
|
|
|
/* 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_HTMLTableAccessibleWrap_h__
|
|
|
|
#define mozilla_a11y_HTMLTableAccessibleWrap_h__
|
|
|
|
|
|
|
|
#include "HTMLTableAccessible.h"
|
|
|
|
|
2012-10-05 17:04:59 +04:00
|
|
|
#include "ia2AccessibleTable.h"
|
|
|
|
#include "ia2AccessibleTableCell.h"
|
2012-06-11 03:44:50 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* IA2 wrapper class for HTMLTableAccessible implementing IAccessibleTable
|
|
|
|
* and IAccessibleTable2 interfaces.
|
|
|
|
*/
|
|
|
|
class HTMLTableAccessibleWrap : public HTMLTableAccessible,
|
2012-10-05 17:04:59 +04:00
|
|
|
public ia2AccessibleTable
|
2012-06-11 03:44:50 +04:00
|
|
|
{
|
2014-07-15 22:57:48 +04:00
|
|
|
~HTMLTableAccessibleWrap() {}
|
|
|
|
|
2012-06-11 03:44:50 +04:00
|
|
|
public:
|
|
|
|
HTMLTableAccessibleWrap(nsIContent* aContent, DocAccessible* aDoc) :
|
2013-01-09 12:51:30 +04:00
|
|
|
HTMLTableAccessible(aContent, aDoc), ia2AccessibleTable(this) {}
|
2012-06-11 03:44:50 +04:00
|
|
|
|
|
|
|
// IUnknown
|
|
|
|
DECL_IUNKNOWN_INHERITED
|
|
|
|
|
|
|
|
// nsISupports
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
2013-01-09 12:51:30 +04:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual void Shutdown() override;
|
2012-06-11 03:44:50 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* IA2 wrapper class for HTMLTableCellAccessible implementing
|
|
|
|
* IAccessibleTableCell interface.
|
|
|
|
*/
|
|
|
|
class HTMLTableCellAccessibleWrap : public HTMLTableCellAccessible,
|
2012-10-05 17:04:59 +04:00
|
|
|
public ia2AccessibleTableCell
|
2012-06-11 03:44:50 +04:00
|
|
|
{
|
2014-07-15 22:57:48 +04:00
|
|
|
~HTMLTableCellAccessibleWrap() {}
|
|
|
|
|
2012-06-11 03:44:50 +04:00
|
|
|
public:
|
|
|
|
HTMLTableCellAccessibleWrap(nsIContent* aContent, DocAccessible* aDoc) :
|
2013-01-09 14:20:35 +04:00
|
|
|
HTMLTableCellAccessible(aContent, aDoc), ia2AccessibleTableCell(this) {}
|
2012-06-11 03:44:50 +04:00
|
|
|
|
|
|
|
// IUnknown
|
|
|
|
DECL_IUNKNOWN_INHERITED
|
|
|
|
|
|
|
|
// nsISupports
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
2013-01-09 14:20:35 +04:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual void Shutdown() override;
|
2012-06-11 03:44:50 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* IA2 wrapper class for HTMLTableHeaderCellAccessible implementing
|
|
|
|
* IAccessibleTableCell interface.
|
|
|
|
*/
|
|
|
|
class HTMLTableHeaderCellAccessibleWrap : public HTMLTableHeaderCellAccessible,
|
2012-10-05 17:04:59 +04:00
|
|
|
public ia2AccessibleTableCell
|
2012-06-11 03:44:50 +04:00
|
|
|
{
|
2014-07-15 22:57:48 +04:00
|
|
|
~HTMLTableHeaderCellAccessibleWrap() {}
|
|
|
|
|
2012-06-11 03:44:50 +04:00
|
|
|
public:
|
|
|
|
HTMLTableHeaderCellAccessibleWrap(nsIContent* aContent,
|
|
|
|
DocAccessible* aDoc) :
|
2013-01-09 14:20:35 +04:00
|
|
|
HTMLTableHeaderCellAccessible(aContent, aDoc), ia2AccessibleTableCell(this)
|
|
|
|
{}
|
2012-06-11 03:44:50 +04:00
|
|
|
|
|
|
|
// IUnknown
|
|
|
|
DECL_IUNKNOWN_INHERITED
|
|
|
|
|
|
|
|
// nsISupports
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
2013-01-09 14:20:35 +04:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual void Shutdown() override;
|
2012-06-11 03:44:50 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|