nsAccessibleRelation.h (1093B)
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 #ifndef _nsAccessibleRelation_H_ 7 #define _nsAccessibleRelation_H_ 8 9 #include "nsIAccessibleRelation.h" 10 11 #include "nsCOMPtr.h" 12 #include "nsTArray.h" 13 #include "nsIMutableArray.h" 14 #include "mozilla/a11y/RemoteAccessible.h" 15 16 namespace mozilla { 17 namespace a11y { 18 19 class Relation; 20 21 /** 22 * Class represents an accessible relation. 23 */ 24 class nsAccessibleRelation final : public nsIAccessibleRelation { 25 public: 26 nsAccessibleRelation(uint32_t aType, Relation* aRel); 27 28 NS_DECL_ISUPPORTS 29 NS_DECL_NSIACCESSIBLERELATION 30 31 private: 32 nsAccessibleRelation(); 33 ~nsAccessibleRelation(); 34 35 nsAccessibleRelation(const nsAccessibleRelation&); 36 nsAccessibleRelation& operator=(const nsAccessibleRelation&); 37 38 uint32_t mType; 39 nsCOMPtr<nsIMutableArray> mTargets; 40 }; 41 42 } // namespace a11y 43 } // namespace mozilla 44 45 #endif