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

Unified Diff: content/browser/accessibility/browser_accessibility.cc

Issue 837183002: Add a helper function and update test results with ax role of table header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a helper function for ax table header Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/accessibility/browser_accessibility.cc
diff --git a/content/browser/accessibility/browser_accessibility.cc b/content/browser/accessibility/browser_accessibility.cc
index 2141fe3f982a5e6cc1a9fdf1ac5710e735524ab3..0a3719d4aaf401902b67ef3a8ffe55232bf0e35e 100644
--- a/content/browser/accessibility/browser_accessibility.cc
+++ b/content/browser/accessibility/browser_accessibility.cc
@@ -663,6 +663,12 @@ bool BrowserAccessibility::HasState(ui::AXState state_enum) const {
return (GetState() >> state_enum) & 1;
}
+bool BrowserAccessibility::IsCellOrTableHeaderRole() const {
+ return (GetRole() == ui::AX_ROLE_CELL ||
+ GetRole() == ui::AX_ROLE_COLUMN_HEADER ||
+ GetRole() == ui::AX_ROLE_ROW_HEADER);
+}
+
bool BrowserAccessibility::IsEditableText() const {
// These roles don't have readonly set, but they're not editable text.
if (GetRole() == ui::AX_ROLE_SCROLL_AREA ||
« no previous file with comments | « content/browser/accessibility/browser_accessibility.h ('k') | content/browser/accessibility/browser_accessibility_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698