author Kyle Huey <>
Thu, 05 May 2016 01:45:00 -0700
changeset 296220 114ca1fc9c51036e4d2cd151125bb7c77d4b3d17
parent 291110 d32bcd5bd2cf9a0e504d6ad78583c7f95bc1ccf3
child 305704 8df802dec5fbf1e04401e87a15acd2a04bff7680
permissions -rw-r--r--
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj

/* -*- 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 {
class ProxyAccessible;

 * 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 final : public AccessibleWrap
  OuterDocAccessible(nsIContent* aContent, DocAccessible* aDoc);


  ProxyAccessible* RemoteChildDoc() const;

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

  virtual bool InsertChildAt(uint32_t aIdx, Accessible* aChild) override;
  virtual bool RemoveChild(Accessible* aAccessible) override;

  virtual ~OuterDocAccessible() override;

inline OuterDocAccessible*
  return IsOuterDoc() ? static_cast<OuterDocAccessible*>(this) : nullptr;

} // namespace a11y
} // namespace mozilla