Bug 1854367 - Remove not needed subtest annotation. a=test-only
[gecko.git] / accessible / mac / DocAccessibleWrap.h
blob4526fb2b80e5e3de7ebb5a7bd4bbf0124bd4228d
1 /* clang-format off */
2 /* -*- Mode: Objective-C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
3 /* clang-format on */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #ifndef mozilla_a11y_DocAccessibleWrap_h__
9 #define mozilla_a11y_DocAccessibleWrap_h__
11 #include "DocAccessible.h"
12 #include "nsTHashSet.h"
14 namespace mozilla {
16 class PresShell;
18 namespace a11y {
20 class DocAccessibleWrap : public DocAccessible {
21 public:
22 DocAccessibleWrap(dom::Document* aDocument, PresShell* aPresShell);
24 virtual ~DocAccessibleWrap();
26 virtual void Shutdown() override;
28 virtual void AttributeChanged(dom::Element* aElement, int32_t aNameSpaceID,
29 nsAtom* aAttribute, int32_t aModType,
30 const nsAttrValue* aOldValue) override;
32 void QueueNewLiveRegion(LocalAccessible* aAccessible);
34 void ProcessNewLiveRegions();
36 protected:
37 virtual void DoInitialUpdate() override;
39 private:
40 nsTHashSet<void*> mNewLiveRegions;
43 } // namespace a11y
44 } // namespace mozilla
46 #endif