1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/accessible/src/xpcom/nsAccessibleRelation.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef _nsAccessibleRelation_H_ 1.10 +#define _nsAccessibleRelation_H_ 1.11 + 1.12 +#include "nsIAccessibleRelation.h" 1.13 + 1.14 +#include "nsCOMPtr.h" 1.15 +#include "nsIMutableArray.h" 1.16 +#include "mozilla/Attributes.h" 1.17 + 1.18 +namespace mozilla { 1.19 +namespace a11y { 1.20 + 1.21 +class Relation; 1.22 + 1.23 +/** 1.24 + * Class represents an accessible relation. 1.25 + */ 1.26 +class nsAccessibleRelation MOZ_FINAL : public nsIAccessibleRelation 1.27 +{ 1.28 +public: 1.29 + nsAccessibleRelation(uint32_t aType, Relation* aRel); 1.30 + 1.31 + NS_DECL_ISUPPORTS 1.32 + NS_DECL_NSIACCESSIBLERELATION 1.33 + 1.34 +private: 1.35 + nsAccessibleRelation(); 1.36 + nsAccessibleRelation(const nsAccessibleRelation&); 1.37 + nsAccessibleRelation& operator = (const nsAccessibleRelation&); 1.38 + 1.39 + uint32_t mType; 1.40 + nsCOMPtr<nsIMutableArray> mTargets; 1.41 +}; 1.42 + 1.43 +} // namespace a11y 1.44 +} // namespace mozilla 1.45 + 1.46 +#endif