2020-07-03 00:33:07 +03:00
|
|
|
/* clang-format off */
|
|
|
|
/* -*- Mode: Objective-C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* clang-format on */
|
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/. */
|
2003-04-02 02:18:29 +04:00
|
|
|
|
2012-05-27 13:01:40 +04:00
|
|
|
#ifndef mozilla_a11y_DocAccessibleWrap_h__
|
|
|
|
#define mozilla_a11y_DocAccessibleWrap_h__
|
2003-04-02 02:18:29 +04:00
|
|
|
|
2012-05-27 13:01:40 +04:00
|
|
|
#include "DocAccessible.h"
|
2021-03-23 13:36:32 +03:00
|
|
|
#include "nsTHashSet.h"
|
2003-04-02 02:18:29 +04:00
|
|
|
|
2012-11-18 06:01:44 +04:00
|
|
|
namespace mozilla {
|
2019-04-13 15:13:15 +03:00
|
|
|
|
|
|
|
class PresShell;
|
|
|
|
|
2012-11-18 06:01:44 +04:00
|
|
|
namespace a11y {
|
|
|
|
|
2012-05-27 13:01:40 +04:00
|
|
|
class DocAccessibleWrap : public DocAccessible {
|
2010-04-24 00:34:41 +04:00
|
|
|
public:
|
2019-04-13 15:13:15 +03:00
|
|
|
DocAccessibleWrap(dom::Document* aDocument, PresShell* aPresShell);
|
2020-07-03 00:33:07 +03:00
|
|
|
|
2020-11-16 23:16:33 +03:00
|
|
|
virtual ~DocAccessibleWrap();
|
|
|
|
|
2020-07-03 00:33:07 +03:00
|
|
|
virtual void Shutdown() override;
|
|
|
|
|
2020-11-16 23:16:33 +03:00
|
|
|
virtual void AttributeChanged(dom::Element* aElement, int32_t aNameSpaceID,
|
|
|
|
nsAtom* aAttribute, int32_t aModType,
|
|
|
|
const nsAttrValue* aOldValue) override;
|
|
|
|
|
2021-02-20 02:14:32 +03:00
|
|
|
void QueueNewLiveRegion(LocalAccessible* aAccessible);
|
2020-11-16 23:16:33 +03:00
|
|
|
|
|
|
|
void ProcessNewLiveRegions();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void DoInitialUpdate() override;
|
|
|
|
|
|
|
|
private:
|
2021-03-23 13:36:32 +03:00
|
|
|
nsTHashSet<void*> mNewLiveRegions;
|
2010-04-24 00:34:41 +04:00
|
|
|
};
|
2006-09-19 12:48:33 +04:00
|
|
|
|
2012-11-18 06:01:44 +04:00
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2010-04-24 00:34:41 +04:00
|
|
|
#endif
|