Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(881)

Unified Diff: Source/modules/accessibility/AXTable.cpp

Issue 797223002: Provides an API to cope with table headers in Accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moved declarations to the section labeled "For a table" Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/accessibility/AXTable.h ('k') | Source/web/WebAXObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXTable.cpp
diff --git a/Source/modules/accessibility/AXTable.cpp b/Source/modules/accessibility/AXTable.cpp
index 761d4985b37252470ae7cdb6e71bc52d6b3f76c6..1f87ce1d1be1cef0b3e34fbf833eda90d77a7741 100644
--- a/Source/modules/accessibility/AXTable.cpp
+++ b/Source/modules/accessibility/AXTable.cpp
@@ -468,6 +468,20 @@ void AXTable::columnHeaders(AccessibilityChildrenVector& headers)
}
}
+void AXTable::rowHeaders(AccessibilityChildrenVector& headers)
+{
+ if (!m_renderer)
+ return;
+
+ updateChildrenIfNecessary();
+
+ unsigned rowCount = m_rows.size();
+ for (unsigned r = 0; r < rowCount; r++) {
+ if (AXObject* header = toAXTableRow(m_rows[r].get())->headerObject())
+ headers.append(header);
+ }
+}
+
void AXTable::cells(AXObject::AccessibilityChildrenVector& cells)
{
if (!m_renderer)
« no previous file with comments | « Source/modules/accessibility/AXTable.h ('k') | Source/web/WebAXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698