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