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

Unified Diff: content/browser/accessibility/browser_accessibility_cocoa.mm

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_cocoa.mm
diff --git a/content/browser/accessibility/browser_accessibility_cocoa.mm b/content/browser/accessibility/browser_accessibility_cocoa.mm
index c7c569725f607ca99458319b4ee5bb68c743bfe4..06b17ccdb8a4d6bc87095e847adcdfe6705974a0 100644
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm
@@ -233,7 +233,7 @@ NSDictionary* attributeToMethodNameMap = nil;
}
- (NSValue*)columnIndexRange {
- if ([self internalRole] != ui::AX_ROLE_CELL)
+ if (!browserAccessibility_->IsCellOrTableHeaderRole())
return nil;
int column = -1;
@@ -666,7 +666,7 @@ NSDictionary* attributeToMethodNameMap = nil;
}
- (NSValue*)rowIndexRange {
- if ([self internalRole] != ui::AX_ROLE_CELL)
+ if (!browserAccessibility_->IsCellOrTableHeaderRole())
return nil;
int row = -1;
@@ -1074,7 +1074,7 @@ NSDictionary* attributeToMethodNameMap = nil;
j < child->PlatformChildCount();
++j) {
BrowserAccessibility* cell = child->PlatformGetChild(j);
- if (cell->GetRole() != ui::AX_ROLE_CELL)
+ if (!browserAccessibility_->IsCellOrTableHeaderRole())
continue;
int colIndex;
if (!cell->GetIntAttribute(
« no previous file with comments | « content/browser/accessibility/browser_accessibility.cc ('k') | content/browser/accessibility/browser_accessibility_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698