2009-06-16 09:42:35 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim:expandtab:shiftwidth=2:tabstop=2:
|
|
|
|
*/
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2009-06-16 09:42:35 -07:00
|
|
|
|
2012-04-09 03:18:03 -07:00
|
|
|
#ifndef MOZILLA_A11Y_ARIAGRIDACCESSIBLEWRAP_H
|
|
|
|
#define MOZILLA_A11Y_ARIAGRIDACCESSIBLEWRAP_H
|
2009-06-16 09:42:35 -07:00
|
|
|
|
2012-04-09 03:18:03 -07:00
|
|
|
#include "ARIAGridAccessible.h"
|
2012-10-05 06:04:59 -07:00
|
|
|
#include "ia2AccessibleTable.h"
|
|
|
|
#include "ia2AccessibleTableCell.h"
|
2009-06-16 09:42:35 -07:00
|
|
|
|
2012-04-09 03:18:03 -07:00
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
|
|
|
|
2009-06-16 09:42:35 -07:00
|
|
|
/**
|
2012-04-09 03:18:03 -07:00
|
|
|
* IA2 wrapper class for ARIAGridAccessible implementing IAccessibleTable and
|
2009-09-10 18:07:56 -07:00
|
|
|
* IAccessibleTable2 interfaces.
|
2009-06-16 09:42:35 -07:00
|
|
|
*/
|
2012-04-09 03:18:03 -07:00
|
|
|
class ARIAGridAccessibleWrap : public ARIAGridAccessible,
|
2012-10-05 06:04:59 -07:00
|
|
|
public ia2AccessibleTable
|
2009-06-16 09:42:35 -07:00
|
|
|
{
|
2014-07-15 11:57:48 -07:00
|
|
|
~ARIAGridAccessibleWrap() {}
|
|
|
|
|
2009-06-16 09:42:35 -07:00
|
|
|
public:
|
2012-05-27 02:01:40 -07:00
|
|
|
ARIAGridAccessibleWrap(nsIContent* aContent, DocAccessible* aDoc) :
|
2013-01-09 00:51:30 -08:00
|
|
|
ARIAGridAccessible(aContent, aDoc), ia2AccessibleTable(this) {}
|
2009-06-16 09:42:35 -07:00
|
|
|
|
|
|
|
// IUnknown
|
|
|
|
DECL_IUNKNOWN_INHERITED
|
|
|
|
|
|
|
|
// nsISupports
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
2013-01-09 00:51:30 -08:00
|
|
|
|
2015-03-21 09:28:04 -07:00
|
|
|
virtual void Shutdown() override;
|
2009-06-16 09:42:35 -07:00
|
|
|
};
|
|
|
|
|
2009-09-10 18:07:56 -07:00
|
|
|
/**
|
2012-04-09 03:18:03 -07:00
|
|
|
* IA2 wrapper class for ARIAGridCellAccessible implementing
|
2009-09-10 18:07:56 -07:00
|
|
|
* IAccessibleTableCell interface.
|
|
|
|
*/
|
2012-04-09 03:18:03 -07:00
|
|
|
class ARIAGridCellAccessibleWrap : public ARIAGridCellAccessible,
|
2012-10-05 06:04:59 -07:00
|
|
|
public ia2AccessibleTableCell
|
2009-09-10 18:07:56 -07:00
|
|
|
{
|
2014-07-15 11:57:48 -07:00
|
|
|
~ARIAGridCellAccessibleWrap() {}
|
|
|
|
|
2009-09-10 18:07:56 -07:00
|
|
|
public:
|
2012-05-27 02:01:40 -07:00
|
|
|
ARIAGridCellAccessibleWrap(nsIContent* aContent, DocAccessible* aDoc) :
|
2013-01-09 02:20:35 -08:00
|
|
|
ARIAGridCellAccessible(aContent, aDoc), ia2AccessibleTableCell(this) {}
|
2009-09-10 18:07:56 -07:00
|
|
|
|
|
|
|
// IUnknown
|
|
|
|
DECL_IUNKNOWN_INHERITED
|
|
|
|
|
|
|
|
// nsISupports
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
2013-01-09 02:20:35 -08:00
|
|
|
|
2015-03-21 09:28:04 -07:00
|
|
|
virtual void Shutdown() override;
|
2009-09-10 18:07:56 -07:00
|
|
|
};
|
|
|
|
|
2012-04-09 03:18:03 -07:00
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2009-06-16 09:42:35 -07:00
|
|
|
#endif
|