accessible/xpcom/nsAccessibleRelation.h
author Carsten "Tomcat" Book <cbook@mozilla.com>
Wed, 22 Oct 2014 08:59:09 +0200
changeset 211663 acdc29a63249118182133930f44506245322a835
parent 190354 85b4fe3a7fa90caa702aa36f6985c667d9e01b02
child 234933 ac4464790ec4896a5188fa50cfc69ae0ffeddc08
permissions -rw-r--r--
Backed out changeset 9e900e87b4bb (bug 1085566)

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 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 _nsAccessibleRelation_H_
#define _nsAccessibleRelation_H_

#include "nsIAccessibleRelation.h"

#include "nsCOMPtr.h"
#include "nsIMutableArray.h"
#include "mozilla/Attributes.h"

namespace mozilla {
namespace a11y {

class Relation;

/**
 * Class represents an accessible relation.
 */
class nsAccessibleRelation MOZ_FINAL : public nsIAccessibleRelation
{
public:
  nsAccessibleRelation(uint32_t aType, Relation* aRel);

  NS_DECL_ISUPPORTS
  NS_DECL_NSIACCESSIBLERELATION

private:
  nsAccessibleRelation();
  ~nsAccessibleRelation();

  nsAccessibleRelation(const nsAccessibleRelation&);
  nsAccessibleRelation& operator = (const nsAccessibleRelation&);
  
  uint32_t mType;
  nsCOMPtr<nsIMutableArray> mTargets;
};

} // namespace a11y
} // namespace mozilla

#endif