2007-05-20 02:41:33 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00: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/. */
|
2007-05-20 02:41:33 +00:00
|
|
|
|
|
|
|
#ifndef _nsAccessibleRelation_H_
|
|
|
|
#define _nsAccessibleRelation_H_
|
|
|
|
|
|
|
|
#include "nsIAccessibleRelation.h"
|
|
|
|
|
|
|
|
#include "nsCOMPtr.h"
|
2009-02-10 10:03:30 +00:00
|
|
|
#include "nsIMutableArray.h"
|
2012-07-22 10:35:49 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
2007-05-20 02:41:33 +00:00
|
|
|
|
2012-06-10 22:18:31 +00:00
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
|
|
|
|
2011-08-10 01:44:00 +00:00
|
|
|
class Relation;
|
2009-02-10 10:03:30 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class represents an accessible relation.
|
|
|
|
*/
|
2015-03-21 16:28:04 +00:00
|
|
|
class nsAccessibleRelation final : public nsIAccessibleRelation
|
2007-05-20 02:41:33 +00:00
|
|
|
{
|
|
|
|
public:
|
2012-08-22 15:56:38 +00:00
|
|
|
nsAccessibleRelation(uint32_t aType, Relation* aRel);
|
2007-05-20 02:41:33 +00:00
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIACCESSIBLERELATION
|
|
|
|
|
|
|
|
private:
|
2011-08-10 01:44:00 +00:00
|
|
|
nsAccessibleRelation();
|
2014-06-23 19:56:09 +00:00
|
|
|
~nsAccessibleRelation();
|
|
|
|
|
2011-08-10 01:44:00 +00:00
|
|
|
nsAccessibleRelation(const nsAccessibleRelation&);
|
|
|
|
nsAccessibleRelation& operator = (const nsAccessibleRelation&);
|
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
uint32_t mType;
|
2009-02-10 10:03:30 +00:00
|
|
|
nsCOMPtr<nsIMutableArray> mTargets;
|
2007-05-20 02:41:33 +00:00
|
|
|
};
|
|
|
|
|
2012-06-10 22:18:31 +00:00
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2007-05-20 02:41:33 +00:00
|
|
|
#endif
|