accessible/src/xul/XULAlertAccessible.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/src/xul/XULAlertAccessible.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef mozilla_a11y_XULAlertAccessible_h__
    1.10 +#define mozilla_a11y_XULAlertAccessible_h__
    1.11 +
    1.12 +#include "AccessibleWrap.h"
    1.13 +
    1.14 +namespace mozilla {
    1.15 +namespace a11y {
    1.16 +
    1.17 +/**
    1.18 + * Accessible for supporting XUL alerts.
    1.19 + */
    1.20 +
    1.21 +class XULAlertAccessible : public AccessibleWrap
    1.22 +{
    1.23 +public:
    1.24 +  XULAlertAccessible(nsIContent* aContent, DocAccessible* aDoc);
    1.25 +
    1.26 +  NS_DECL_ISUPPORTS_INHERITED
    1.27 +
    1.28 +  // Accessible
    1.29 +  virtual mozilla::a11y::ENameValueFlag Name(nsString& aName);
    1.30 +  virtual a11y::role NativeRole();
    1.31 +  virtual uint64_t NativeState();
    1.32 +
    1.33 +  // Widgets
    1.34 +  virtual bool IsWidget() const;
    1.35 +  virtual Accessible* ContainerWidget() const;
    1.36 +};
    1.37 +
    1.38 +} // namespace a11y
    1.39 +} // namespace mozilla
    1.40 +
    1.41 +#endif

mercurial