author Birunthan Mohanathas <>
Mon, 23 Jun 2014 16:27:43 -0700
changeset 190602 fdd74c065e5d743bd4d1a3044b2e76727dfb60f0
parent 190354 85b4fe3a7fa90caa702aa36f6985c667d9e01b02
child 193010 683e40882500473fc5f39eafc17c1e1380c29b17
permissions -rw-r--r--
Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan

/* -*- 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