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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXTable.h

Issue 2539503003: ARIA 1.1: implementation for aria-col-* and aria-row-*. (Closed)
Patch Set: Fix bad rebase Created 3 years, 11 months 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 unified diff | Download patch
OLDNEW
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 AXObjectVector& columns();
67 const AXObjectVector& rows(); 67 const AXObjectVector& 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();
74 int ariaRowCount();
75
73 void columnHeaders(AXObjectVector&); 76 void columnHeaders(AXObjectVector&);
74 void rowHeaders(AXObjectVector&); 77 void rowHeaders(AXObjectVector&);
75 78
76 // 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
77 AXObject* headerContainer(); 80 AXObject* headerContainer();
78 81
79 protected: 82 protected:
80 AXObjectVector m_rows; 83 AXObjectVector m_rows;
81 AXObjectVector m_columns; 84 AXObjectVector m_columns;
82 85
83 Member<AXObject> m_headerContainer; 86 Member<AXObject> m_headerContainer;
84 bool m_isAXTable; 87 bool m_isAXTable;
85 88
86 bool hasARIARole() const; 89 bool hasARIARole() const;
87 virtual bool isTableExposableThroughAccessibility() const; 90 virtual bool isTableExposableThroughAccessibility() const;
88 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final; 91 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final;
89 }; 92 };
90 93
91 DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, isAXTable()); 94 DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, isAXTable());
92 95
93 } // namespace blink 96 } // namespace blink
94 97
95 #endif // AXTable_h 98 #endif // AXTable_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLAttributeNames.in ('k') | third_party/WebKit/Source/modules/accessibility/AXTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698