accessible/src/atk/ApplicationAccessibleWrap.h
author Ehsan Akhgari <ehsan@mozilla.com>
Thu, 27 Sep 2012 10:24:08 -0400
changeset 115169 d3d022bd1443dc4a370f8c7add006b0aff2b00bc
parent 113498 0bc212d0183b8c9a9e21db665b6dc25c686a9650
child 123587 39890b75361fbb1236c6e4c1c4e9cdacd7f27213
permissions -rw-r--r--
Backout changeset 24f4f77fba76 (bug 793408) because of broken builds on a CLOSED TREE

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/* 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/. */

#ifndef mozilla_a11y_ApplicationAccessibleWrap_h__
#define mozilla_a11y_ApplicationAccessibleWrap_h__

#include "ApplicationAccessible.h"

namespace mozilla {
namespace a11y {
 
class ApplicationAccessibleWrap: public ApplicationAccessible
{
public:
  static void Unload();
  static void PreCreate();

public:
  ApplicationAccessibleWrap();
  virtual ~ApplicationAccessibleWrap();

  // nsAccessNode
  virtual void Init();

  // Accessible
  virtual mozilla::a11y::ENameValueFlag Name(nsString& aName);
  virtual bool AppendChild(Accessible* aChild);
  virtual bool RemoveChild(Accessible* aChild);

  /**
   * Return the atk object for app root accessible.
   */
  NS_IMETHOD GetNativeInterface(void** aOutAccessible);
};

} // namespace a11y
} // namespace mozilla

#endif   /* __NS_APP_ROOT_ACCESSIBLE_H__ */