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
|
|
|
|
2005-03-15 18:44:02 +03:00
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
2008-11-04 06:37:46 +03:00
|
|
|
|
2012-05-29 05:18:45 +04:00
|
|
|
// Accessible
|
2012-05-01 07:08:31 +04:00
|
|
|
virtual mozilla::a11y::ENameValueFlag Name(nsString& aName);
|
2012-06-11 03:44:50 +04:00
|
|
|
virtual a11y::role NativeRole();
|
2012-08-22 19:56:38 +04:00
|
|
|
virtual uint64_t NativeState();
|
2011-09-28 05:46:11 +04:00
|
|
|
|
|
|
|
// Widgets
|
|
|
|
virtual bool IsWidget() const;
|
2012-05-29 05:18:45 +04:00
|
|
|
virtual Accessible* ContainerWidget() const;
|
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
|