2005-03-15 18:44:02 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
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/. */
|
2005-03-15 18:44:02 +03:00
|
|
|
|
2012-06-11 03:44:50 +04:00
|
|
|
#ifndef mozilla_a11y_XULAlertAccessible_h__
|
|
|
|
#define mozilla_a11y_XULAlertAccessible_h__
|
2005-03-15 18:44:02 +03:00
|
|
|
|
2012-05-29 05:18:45 +04:00
|
|
|
#include "AccessibleWrap.h"
|
2005-03-15 18:44:02 +03:00
|
|
|
|
2012-06-11 03:44:50 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
|
|
|
|
2010-06-11 12:23:18 +04:00
|
|
|
/**
|
|
|
|
* Accessible for supporting XUL alerts.
|
2005-03-15 18:44:02 +03:00
|
|
|
*/
|
|
|
|
|
2012-06-11 03:44:50 +04:00
|
|
|
class XULAlertAccessible : public AccessibleWrap {
|
2005-03-15 18:44:02 +03:00
|
|
|
public:
|
2012-06-11 03:44:50 +04:00
|
|
|
XULAlertAccessible(nsIContent* aContent, DocAccessible* aDoc);
|
2008-11-04 06:37:46 +03:00
|
|
|
|
2018-02-12 23:44:40 +03:00
|
|
|
NS_INLINE_DECL_REFCOUNTING_INHERITED(XULAlertAccessible, AccessibleWrap)
|
2008-11-04 06:37:46 +03:00
|
|
|
|
2012-05-29 05:18:45 +04:00
|
|
|
// Accessible
|
2018-05-15 19:13:02 +03:00
|
|
|
virtual mozilla::a11y::ENameValueFlag Name(nsString& aName) const override;
|
2018-05-07 22:05:50 +03:00
|
|
|
virtual a11y::role NativeRole() const override;
|
2018-05-15 21:04:50 +03:00
|
|
|
virtual uint64_t NativeState() const override;
|
2011-09-28 05:46:11 +04:00
|
|
|
|
|
|
|
// Widgets
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual bool IsWidget() const override;
|
|
|
|
virtual Accessible* ContainerWidget() const override;
|
2014-07-09 01:23:18 +04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
~XULAlertAccessible();
|
2005-03-15 18:44:02 +03:00
|
|
|
};
|
|
|
|
|
2012-06-11 03:44:50 +04:00
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2011-09-28 05:46:11 +04:00
|
|
|
#endif
|