accessible/src/generic/OuterDocAccessible.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #ifndef MOZILLA_A11Y_OUTERDOCACCESSIBLE_H_
     7 #define MOZILLA_A11Y_OUTERDOCACCESSIBLE_H_
     9 #include "AccessibleWrap.h"
    11 namespace mozilla {
    12 namespace a11y {
    14 /**
    15  * Used for <browser>, <frame>, <iframe>, <page> or editor> elements.
    16  * 
    17  * In these variable names, "outer" relates to the OuterDocAccessible as
    18  * opposed to the DocAccessibleWrap which is "inner". The outer node is
    19  * a something like tags listed above, whereas the inner node corresponds to
    20  * the inner document root.
    21  */
    23 class OuterDocAccessible : public AccessibleWrap
    24 {
    25 public:
    26   OuterDocAccessible(nsIContent* aContent, DocAccessible* aDoc);
    27   virtual ~OuterDocAccessible();
    29   NS_DECL_ISUPPORTS_INHERITED
    31   // nsIAccessible
    32   NS_IMETHOD GetActionName(uint8_t aIndex, nsAString& aName);
    33   NS_IMETHOD GetActionDescription(uint8_t aIndex, nsAString& aDescription);
    34   NS_IMETHOD DoAction(uint8_t aIndex);
    36   // Accessible
    37   virtual void Shutdown();
    38   virtual mozilla::a11y::role NativeRole();
    39   virtual Accessible* ChildAtPoint(int32_t aX, int32_t aY,
    40                                    EWhichChildAtPoint aWhichChild);
    42   virtual void InvalidateChildren();
    43   virtual bool InsertChildAt(uint32_t aIdx, Accessible* aChild) MOZ_OVERRIDE;
    44   virtual bool RemoveChild(Accessible* aAccessible);
    46   // ActionAccessible
    47   virtual uint8_t ActionCount();
    49 protected:
    50   // Accessible
    51   virtual void CacheChildren();
    52 };
    54 } // namespace a11y
    55 } // namespace mozilla
    57 #endif  

mercurial