Chromium Code Reviews| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 58 void addChildren() override; | 58 void addChildren() override; |
| 59 void clearChildren() final; | 59 void clearChildren() final; |
| 60 | 60 |
| 61 // To be overridden by AXARIAGrid. | 61 // To be overridden by AXARIAGrid. |
| 62 virtual bool isAriaTable() const { return false; } | 62 virtual bool isAriaTable() const { return false; } |
| 63 virtual bool supportsSelectedRows() { return false; } | 63 virtual bool supportsSelectedRows() { return false; } |
| 64 | 64 |
| 65 const AXObjectVector& columns(); | 65 const AXObjectVector& columns(); |
| 66 const AXObjectVector& rows(); | 66 const AXObjectVector& rows(); |
| 67 | 67 |
| 68 int ariaColumnCount(); | |
|
dmazzoni
2015/12/22 18:10:04
How about if we just combine this into columnCount
| |
| 69 int ariaRowCount(); | |
| 70 | |
| 68 unsigned columnCount(); | 71 unsigned columnCount(); |
| 69 unsigned rowCount(); | 72 unsigned rowCount(); |
| 70 AXTableCell* cellForColumnAndRow(unsigned column, unsigned row); | 73 AXTableCell* cellForColumnAndRow(unsigned column, unsigned row); |
| 71 | 74 |
| 72 void columnHeaders(AXObjectVector&); | 75 void columnHeaders(AXObjectVector&); |
| 73 void rowHeaders(AXObjectVector&); | 76 void rowHeaders(AXObjectVector&); |
| 74 | 77 |
| 75 // an object that contains, as children, all the objects that act as headers | 78 // an object that contains, as children, all the objects that act as headers |
| 76 AXObject* headerContainer(); | 79 AXObject* headerContainer(); |
| 77 | 80 |
| 78 protected: | 81 protected: |
| 79 AXObjectVector m_rows; | 82 AXObjectVector m_rows; |
| 80 AXObjectVector m_columns; | 83 AXObjectVector m_columns; |
| 81 | 84 |
| 82 Member<AXObject> m_headerContainer; | 85 Member<AXObject> m_headerContainer; |
| 83 bool m_isAXTable; | 86 bool m_isAXTable; |
| 84 | 87 |
| 85 bool hasARIARole() const; | 88 bool hasARIARole() const; |
| 86 virtual bool isTableExposableThroughAccessibility() const; | 89 virtual bool isTableExposableThroughAccessibility() const; |
| 87 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final; | 90 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final; |
| 88 }; | 91 }; |
| 89 | 92 |
| 90 DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, isAXTable()); | 93 DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, isAXTable()); |
| 91 | 94 |
| 92 } // namespace blink | 95 } // namespace blink |
| 93 | 96 |
| 94 #endif // AXTable_h | 97 #endif // AXTable_h |
| OLD | NEW |