| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 AccessibilityRole RoleValue() const; | 57 AccessibilityRole RoleValue() const; |
| 58 | 58 |
| 59 void AddChildren() override; | 59 void AddChildren() override; |
| 60 void ClearChildren() final; | 60 void ClearChildren() final; |
| 61 | 61 |
| 62 // To be overridden by AXARIAGrid. | 62 // To be overridden by AXARIAGrid. |
| 63 virtual bool IsAriaTable() const { return false; } | 63 virtual bool IsAriaTable() const { return false; } |
| 64 virtual bool SupportsSelectedRows() { return false; } | 64 virtual bool SupportsSelectedRows() { return false; } |
| 65 | 65 |
| 66 const AXObjectVector& Columns(); | 66 const AXObjectImplVector& Columns(); |
| 67 const AXObjectVector& Rows(); | 67 const AXObjectImplVector& Rows(); |
| 68 | 68 |
| 69 unsigned ColumnCount(); | 69 unsigned ColumnCount(); |
| 70 unsigned RowCount(); | 70 unsigned RowCount(); |
| 71 AXTableCell* CellForColumnAndRow(unsigned column, unsigned row); | 71 AXTableCell* CellForColumnAndRow(unsigned column, unsigned row); |
| 72 | 72 |
| 73 int AriaColumnCount(); | 73 int AriaColumnCount(); |
| 74 int AriaRowCount(); | 74 int AriaRowCount(); |
| 75 | 75 |
| 76 void ColumnHeaders(AXObjectVector&); | 76 void ColumnHeaders(AXObjectImplVector&); |
| 77 void RowHeaders(AXObjectVector&); | 77 void RowHeaders(AXObjectImplVector&); |
| 78 | 78 |
| 79 // an object that contains, as children, all the objects that act as headers | 79 // an object that contains, as children, all the objects that act as headers |
| 80 AXObjectImpl* HeaderContainer(); | 80 AXObjectImpl* HeaderContainer(); |
| 81 | 81 |
| 82 protected: | 82 protected: |
| 83 AXObjectVector rows_; | 83 AXObjectImplVector rows_; |
| 84 AXObjectVector columns_; | 84 AXObjectImplVector columns_; |
| 85 | 85 |
| 86 Member<AXObjectImpl> header_container_; | 86 Member<AXObjectImpl> header_container_; |
| 87 bool is_ax_table_; | 87 bool is_ax_table_; |
| 88 | 88 |
| 89 bool HasARIARole() const; | 89 bool HasARIARole() const; |
| 90 virtual bool IsTableExposableThroughAccessibility() const; | 90 virtual bool IsTableExposableThroughAccessibility() const; |
| 91 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final; | 91 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, IsAXTable()); | 94 DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, IsAXTable()); |
| 95 | 95 |
| 96 } // namespace blink | 96 } // namespace blink |
| 97 | 97 |
| 98 #endif // AXTable_h | 98 #endif // AXTable_h |
| OLD | NEW |