accessible/src/generic/OuterDocAccessible.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/src/generic/OuterDocAccessible.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,57 @@
     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_OUTERDOCACCESSIBLE_H_
    1.10 +#define MOZILLA_A11Y_OUTERDOCACCESSIBLE_H_
    1.11 +
    1.12 +#include "AccessibleWrap.h"
    1.13 +
    1.14 +namespace mozilla {
    1.15 +namespace a11y {
    1.16 +
    1.17 +/**
    1.18 + * Used for <browser>, <frame>, <iframe>, <page> or editor> elements.
    1.19 + * 
    1.20 + * In these variable names, "outer" relates to the OuterDocAccessible as
    1.21 + * opposed to the DocAccessibleWrap which is "inner". The outer node is
    1.22 + * a something like tags listed above, whereas the inner node corresponds to
    1.23 + * the inner document root.
    1.24 + */
    1.25 +
    1.26 +class OuterDocAccessible : public AccessibleWrap
    1.27 +{
    1.28 +public:
    1.29 +  OuterDocAccessible(nsIContent* aContent, DocAccessible* aDoc);
    1.30 +  virtual ~OuterDocAccessible();
    1.31 +
    1.32 +  NS_DECL_ISUPPORTS_INHERITED
    1.33 +
    1.34 +  // nsIAccessible
    1.35 +  NS_IMETHOD GetActionName(uint8_t aIndex, nsAString& aName);
    1.36 +  NS_IMETHOD GetActionDescription(uint8_t aIndex, nsAString& aDescription);
    1.37 +  NS_IMETHOD DoAction(uint8_t aIndex);
    1.38 +
    1.39 +  // Accessible
    1.40 +  virtual void Shutdown();
    1.41 +  virtual mozilla::a11y::role NativeRole();
    1.42 +  virtual Accessible* ChildAtPoint(int32_t aX, int32_t aY,
    1.43 +                                   EWhichChildAtPoint aWhichChild);
    1.44 +
    1.45 +  virtual void InvalidateChildren();
    1.46 +  virtual bool InsertChildAt(uint32_t aIdx, Accessible* aChild) MOZ_OVERRIDE;
    1.47 +  virtual bool RemoveChild(Accessible* aAccessible);
    1.48 +
    1.49 +  // ActionAccessible
    1.50 +  virtual uint8_t ActionCount();
    1.51 +
    1.52 +protected:
    1.53 +  // Accessible
    1.54 +  virtual void CacheChildren();
    1.55 +};
    1.56 +
    1.57 +} // namespace a11y
    1.58 +} // namespace mozilla
    1.59 +
    1.60 +#endif  

mercurial