accessible/src/generic/OuterDocAccessible.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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