OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 27 matching lines...) Expand all Loading... |
38 class RenderTableSection; | 38 class RenderTableSection; |
39 | 39 |
40 class AXTable : public AXRenderObject { | 40 class AXTable : public AXRenderObject { |
41 | 41 |
42 protected: | 42 protected: |
43 explicit AXTable(RenderObject*); | 43 explicit AXTable(RenderObject*); |
44 public: | 44 public: |
45 static PassRefPtr<AXTable> create(RenderObject*); | 45 static PassRefPtr<AXTable> create(RenderObject*); |
46 virtual ~AXTable(); | 46 virtual ~AXTable(); |
47 | 47 |
48 virtual void init() OVERRIDE; | 48 virtual void init() OVERRIDE FINAL; |
49 | 49 |
50 virtual bool isAXTable() const OVERRIDE; | 50 virtual bool isAXTable() const OVERRIDE FINAL; |
51 virtual bool isDataTable() const OVERRIDE; | 51 virtual bool isDataTable() const OVERRIDE FINAL; |
52 | 52 |
53 virtual AccessibilityRole roleValue() const OVERRIDE; | 53 virtual AccessibilityRole roleValue() const OVERRIDE FINAL; |
54 | 54 |
55 virtual void addChildren() OVERRIDE; | 55 virtual void addChildren() OVERRIDE; |
56 virtual void clearChildren() OVERRIDE; | 56 virtual void clearChildren() OVERRIDE FINAL; |
57 | 57 |
58 // To be overridden by AXARIAGrid. | 58 // To be overridden by AXARIAGrid. |
59 virtual bool isAriaTable() const { return false; } | 59 virtual bool isAriaTable() const { return false; } |
60 virtual bool supportsSelectedRows() { return false; } | 60 virtual bool supportsSelectedRows() { return false; } |
61 | 61 |
62 AccessibilityChildrenVector& columns(); | 62 AccessibilityChildrenVector& columns(); |
63 AccessibilityChildrenVector& rows(); | 63 AccessibilityChildrenVector& rows(); |
64 | 64 |
65 unsigned columnCount(); | 65 unsigned columnCount(); |
66 unsigned rowCount(); | 66 unsigned rowCount(); |
67 virtual int tableLevel() const OVERRIDE; | 67 virtual int tableLevel() const OVERRIDE FINAL; |
68 | 68 |
69 virtual String title() const OVERRIDE; | 69 virtual String title() const OVERRIDE FINAL; |
70 | 70 |
71 // all the cells in the table | 71 // all the cells in the table |
72 void cells(AccessibilityChildrenVector&); | 72 void cells(AccessibilityChildrenVector&); |
73 AXTableCell* cellForColumnAndRow(unsigned column, unsigned row); | 73 AXTableCell* cellForColumnAndRow(unsigned column, unsigned row); |
74 | 74 |
75 void columnHeaders(AccessibilityChildrenVector&); | 75 void columnHeaders(AccessibilityChildrenVector&); |
76 | 76 |
77 // an object that contains, as children, all the objects that act as headers | 77 // an object that contains, as children, all the objects that act as headers |
78 AXObject* headerContainer(); | 78 AXObject* headerContainer(); |
79 | 79 |
80 protected: | 80 protected: |
81 AccessibilityChildrenVector m_rows; | 81 AccessibilityChildrenVector m_rows; |
82 AccessibilityChildrenVector m_columns; | 82 AccessibilityChildrenVector m_columns; |
83 | 83 |
84 RefPtr<AXObject> m_headerContainer; | 84 RefPtr<AXObject> m_headerContainer; |
85 bool m_isAXTable; | 85 bool m_isAXTable; |
86 | 86 |
87 bool hasARIARole() const; | 87 bool hasARIARole() const; |
88 virtual bool isTableExposableThroughAccessibility() const; | 88 virtual bool isTableExposableThroughAccessibility() const; |
89 virtual bool computeAccessibilityIsIgnored() const OVERRIDE; | 89 virtual bool computeAccessibilityIsIgnored() const OVERRIDE FINAL; |
90 }; | 90 }; |
91 | 91 |
92 DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, isAXTable()); | 92 DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, isAXTable()); |
93 | 93 |
94 } // namespace WebCore | 94 } // namespace WebCore |
95 | 95 |
96 #endif // AXTable_h | 96 #endif // AXTable_h |
OLD | NEW |