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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXTableRow.h

Issue 1547643002: ARIA 1.1: implementation for aria-col-* and aria-row-*. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds MODULES_EXPORT Created 5 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
Index: third_party/WebKit/Source/modules/accessibility/AXTableRow.h
diff --git a/third_party/WebKit/Source/modules/accessibility/AXTableRow.h b/third_party/WebKit/Source/modules/accessibility/AXTableRow.h
index 743a729e814625be08518dc537752a005c80b50e..1ff048b29d8ebbe93ca5455da8ab0b48e2ce71ca 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXTableRow.h
+++ b/third_party/WebKit/Source/modules/accessibility/AXTableRow.h
@@ -35,7 +35,7 @@ namespace blink {
class AXObjectCacheImpl;
-class AXTableRow : public AXLayoutObject {
+class MODULES_EXPORT AXTableRow : public AXLayoutObject {
protected:
AXTableRow(LayoutObject*, AXObjectCacheImpl&);
@@ -44,6 +44,7 @@ public:
static AXTableRow* create(LayoutObject*, AXObjectCacheImpl&);
~AXTableRow() override;
+ void addChildren() final;
bool isTableRow() const final;
// retrieves the "row" header (a th tag in the rightmost column)
@@ -55,6 +56,13 @@ public:
void setRowIndex(int rowIndex) { m_rowIndex = rowIndex; }
int rowIndex() const { return m_rowIndex; }
+ unsigned ariaColumnIndex() const;
+ unsigned ariaRowIndex() const;
+
+ // allows the table to add other children that may not originate
+ // in the row, but their col/row spans overlap into it
+ void appendChild(AXObject*);
+
protected:
AccessibilityRole determineAccessibilityRole() final;

Powered by Google App Engine
This is Rietveld 408576698