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