XULAlertAccessible.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #ifndef mozilla_a11y_XULAlertAccessible_h__
  6. #define mozilla_a11y_XULAlertAccessible_h__
  7. #include "AccessibleWrap.h"
  8. namespace mozilla {
  9. namespace a11y {
  10. /**
  11. * Accessible for supporting XUL alerts.
  12. */
  13. class XULAlertAccessible : public AccessibleWrap
  14. {
  15. public:
  16. XULAlertAccessible(nsIContent* aContent, DocAccessible* aDoc);
  17. NS_DECL_ISUPPORTS_INHERITED
  18. // Accessible
  19. virtual mozilla::a11y::ENameValueFlag Name(nsString& aName) override;
  20. virtual a11y::role NativeRole() override;
  21. virtual uint64_t NativeState() override;
  22. // Widgets
  23. virtual bool IsWidget() const override;
  24. virtual Accessible* ContainerWidget() const override;
  25. protected:
  26. ~XULAlertAccessible();
  27. };
  28. } // namespace a11y
  29. } // namespace mozilla
  30. #endif