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

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: Update TC 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..ae4171f20571685ac30cc309511424026426a63b 100644
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm
@@ -233,7 +233,9 @@ NSDictionary* attributeToMethodNameMap = nil;
}
- (NSValue*)columnIndexRange {
- if ([self internalRole] != ui::AX_ROLE_CELL)
+ if ([self internalRole] != ui::AX_ROLE_CELL &&
dmazzoni 2015/01/08 18:11:25 Please add a helper function for this, like IsCell
je_julie(Not used) 2015/01/09 16:47:37 Done
+ [self internalRole] != ui::AX_ROLE_COLUMN_HEADER &&
+ [self internalRole] != ui::AX_ROLE_ROW_HEADER)
return nil;
int column = -1;
@@ -666,7 +668,9 @@ NSDictionary* attributeToMethodNameMap = nil;
}
- (NSValue*)rowIndexRange {
- if ([self internalRole] != ui::AX_ROLE_CELL)
+ if ([self internalRole] != ui::AX_ROLE_CELL &&
+ [self internalRole] != ui::AX_ROLE_COLUMN_HEADER &&
+ [self internalRole] != ui::AX_ROLE_ROW_HEADER)
return nil;
int row = -1;
@@ -1074,7 +1078,9 @@ NSDictionary* attributeToMethodNameMap = nil;
j < child->PlatformChildCount();
++j) {
BrowserAccessibility* cell = child->PlatformGetChild(j);
- if (cell->GetRole() != ui::AX_ROLE_CELL)
+ if ([self internalRole] != ui::AX_ROLE_CELL &&
+ [self internalRole] != ui::AX_ROLE_COLUMN_HEADER &&
+ [self internalRole] != ui::AX_ROLE_ROW_HEADER)
continue;
int colIndex;
if (!cell->GetIntAttribute(

Powered by Google App Engine
This is Rietveld 408576698