diff options
Diffstat (limited to 'Source/WebCore/accessibility/AccessibilityTableRow.h')
-rw-r--r-- | Source/WebCore/accessibility/AccessibilityTableRow.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/Source/WebCore/accessibility/AccessibilityTableRow.h b/Source/WebCore/accessibility/AccessibilityTableRow.h index 3eddfea1f..ed6de91cd 100644 --- a/Source/WebCore/accessibility/AccessibilityTableRow.h +++ b/Source/WebCore/accessibility/AccessibilityTableRow.h @@ -10,7 +10,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of + * 3. Neither the name of Apple Inc. ("Apple") nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * @@ -26,8 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef AccessibilityTableRow_h -#define AccessibilityTableRow_h +#pragma once #include "AccessibilityRenderObject.h" @@ -36,14 +35,9 @@ namespace WebCore { class AccessibilityTable; class AccessibilityTableRow : public AccessibilityRenderObject { - -protected: - explicit AccessibilityTableRow(RenderObject*); public: - static PassRefPtr<AccessibilityTableRow> create(RenderObject*); + static Ref<AccessibilityTableRow> create(RenderObject*); virtual ~AccessibilityTableRow(); - - virtual bool isTableRow() const override; // retrieves the "row" header (a th tag in the rightmost column) virtual AccessibilityObject* headerObject(); @@ -56,18 +50,24 @@ public: // in the row, but their col/row spans overlap into it void appendChild(AccessibilityObject*); + void addChildren() override; + + int ariaColumnIndex() const; + int ariaRowIndex() const; + protected: - virtual AccessibilityRole determineAccessibilityRole() override; + explicit AccessibilityTableRow(RenderObject*); + + AccessibilityRole determineAccessibilityRole() final; private: - int m_rowIndex; - - virtual AccessibilityObject* observableObject() const override; - virtual bool computeAccessibilityIsIgnored() const override; -}; + bool isTableRow() const final; + AccessibilityObject* observableObject() const final; + bool computeAccessibilityIsIgnored() const final; -ACCESSIBILITY_OBJECT_TYPE_CASTS(AccessibilityTableRow, isTableRow()) + int m_rowIndex; +}; -} // namespace WebCore +} // namespace WebCore -#endif // AccessibilityTableRow_h +SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityTableRow, isTableRow()) |