|
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_XULTreeGridAccessibleWrap_h__ |
|
7 #define mozilla_a11y_XULTreeGridAccessibleWrap_h__ |
|
8 |
|
9 #include "XULTreeGridAccessible.h" |
|
10 |
|
11 #include "ia2AccessibleTable.h" |
|
12 #include "ia2AccessibleTableCell.h" |
|
13 |
|
14 namespace mozilla { |
|
15 namespace a11y { |
|
16 |
|
17 /** |
|
18 * IA2 wrapper class for XULTreeGridAccessible class implementing |
|
19 * IAccessibleTable and IAccessibleTable2 interfaces. |
|
20 */ |
|
21 class XULTreeGridAccessibleWrap : public XULTreeGridAccessible, |
|
22 public ia2AccessibleTable |
|
23 { |
|
24 public: |
|
25 XULTreeGridAccessibleWrap(nsIContent* aContent, DocAccessible* aDoc, |
|
26 nsTreeBodyFrame* aTree) : |
|
27 XULTreeGridAccessible(aContent, aDoc, aTree), ia2AccessibleTable(this) {} |
|
28 |
|
29 // IUnknown |
|
30 DECL_IUNKNOWN_INHERITED |
|
31 |
|
32 // nsISupports |
|
33 NS_DECL_ISUPPORTS_INHERITED |
|
34 |
|
35 virtual void Shutdown() MOZ_OVERRIDE; |
|
36 }; |
|
37 |
|
38 /** |
|
39 * IA2 wrapper class for XULTreeGridCellAccessible class, implements |
|
40 * IAccessibleTableCell interface. |
|
41 */ |
|
42 class XULTreeGridCellAccessibleWrap : public XULTreeGridCellAccessible, |
|
43 public ia2AccessibleTableCell |
|
44 { |
|
45 public: |
|
46 XULTreeGridCellAccessibleWrap(nsIContent* aContent, |
|
47 DocAccessible* aDoc, |
|
48 XULTreeGridRowAccessible* aRowAcc, |
|
49 nsITreeBoxObject* aTree, |
|
50 nsITreeView* aTreeView, |
|
51 int32_t aRow, nsITreeColumn* aColumn) : |
|
52 XULTreeGridCellAccessible(aContent, aDoc, aRowAcc, aTree, aTreeView, aRow, |
|
53 aColumn), ia2AccessibleTableCell(this) {} |
|
54 |
|
55 // IUnknown |
|
56 DECL_IUNKNOWN_INHERITED |
|
57 |
|
58 // nsISupports |
|
59 NS_DECL_ISUPPORTS_INHERITED |
|
60 |
|
61 virtual void Shutdown() MOZ_OVERRIDE; |
|
62 }; |
|
63 |
|
64 } // namespace a11y |
|
65 } // namespace mozilla |
|
66 |
|
67 #endif |