author Birunthan Mohanathas <>
Sun, 22 Jun 2014 10:15:19 -0700
changeset 190354 85b4fe3a7fa90caa702aa36f6985c667d9e01b02
parent 152591 accessible/src/generic/OuterDocAccessible.h@aa060162229712e536caafd4660d23a228bfd56e
child 193010 683e40882500473fc5f39eafc17c1e1380c29b17
permissions -rw-r--r--
Bug 1028563 - Part 1: Flatten accessible/src/ directory. rs=surkov

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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 */


#include "AccessibleWrap.h"

namespace mozilla {
namespace a11y {

 * Used for <browser>, <frame>, <iframe>, <page> or editor> elements.
 * In these variable names, "outer" relates to the OuterDocAccessible as
 * opposed to the DocAccessibleWrap which is "inner". The outer node is
 * a something like tags listed above, whereas the inner node corresponds to
 * the inner document root.

class OuterDocAccessible : public AccessibleWrap
  OuterDocAccessible(nsIContent* aContent, DocAccessible* aDoc);
  virtual ~OuterDocAccessible();


  // nsIAccessible
  NS_IMETHOD GetActionName(uint8_t aIndex, nsAString& aName);
  NS_IMETHOD GetActionDescription(uint8_t aIndex, nsAString& aDescription);
  NS_IMETHOD DoAction(uint8_t aIndex);

  // Accessible
  virtual void Shutdown();
  virtual mozilla::a11y::role NativeRole();
  virtual Accessible* ChildAtPoint(int32_t aX, int32_t aY,
                                   EWhichChildAtPoint aWhichChild);

  virtual void InvalidateChildren();
  virtual bool InsertChildAt(uint32_t aIdx, Accessible* aChild) MOZ_OVERRIDE;
  virtual bool RemoveChild(Accessible* aAccessible);

  // ActionAccessible
  virtual uint8_t ActionCount();

  // Accessible
  virtual void CacheChildren();

} // namespace a11y
} // namespace mozilla