accessible/src/generic/OuterDocAccessible.h

branch
TOR_BUG_9701
changeset 3
141e0f1194b1
equal deleted inserted replaced
-1:000000000000 0:a8d6bb1fa03d
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/. */
5
6 #ifndef MOZILLA_A11Y_OUTERDOCACCESSIBLE_H_
7 #define MOZILLA_A11Y_OUTERDOCACCESSIBLE_H_
8
9 #include "AccessibleWrap.h"
10
11 namespace mozilla {
12 namespace a11y {
13
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 */
22
23 class OuterDocAccessible : public AccessibleWrap
24 {
25 public:
26 OuterDocAccessible(nsIContent* aContent, DocAccessible* aDoc);
27 virtual ~OuterDocAccessible();
28
29 NS_DECL_ISUPPORTS_INHERITED
30
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);
35
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);
41
42 virtual void InvalidateChildren();
43 virtual bool InsertChildAt(uint32_t aIdx, Accessible* aChild) MOZ_OVERRIDE;
44 virtual bool RemoveChild(Accessible* aAccessible);
45
46 // ActionAccessible
47 virtual uint8_t ActionCount();
48
49 protected:
50 // Accessible
51 virtual void CacheChildren();
52 };
53
54 } // namespace a11y
55 } // namespace mozilla
56
57 #endif

mercurial