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