OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <execinfo.h> | 5 #include <execinfo.h> |
6 | 6 |
7 #import "content/browser/accessibility/browser_accessibility_cocoa.h" | 7 #import "content/browser/accessibility/browser_accessibility_cocoa.h" |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1139 continue; | 1139 continue; |
1140 } | 1140 } |
1141 if (rowIndex < row) | 1141 if (rowIndex < row) |
1142 continue; | 1142 continue; |
1143 if (rowIndex > row) | 1143 if (rowIndex > row) |
1144 break; | 1144 break; |
1145 for (size_t j = 0; | 1145 for (size_t j = 0; |
1146 j < child->PlatformChildCount(); | 1146 j < child->PlatformChildCount(); |
1147 ++j) { | 1147 ++j) { |
1148 BrowserAccessibility* cell = child->PlatformGetChild(j); | 1148 BrowserAccessibility* cell = child->PlatformGetChild(j); |
1149 if (!browserAccessibility_->IsCellOrTableHeaderRole()) | 1149 if (!cell->IsCellOrTableHeaderRole()) |
1150 continue; | 1150 continue; |
1151 int colIndex; | 1151 int colIndex; |
1152 if (!cell->GetIntAttribute( | 1152 if (!cell->GetIntAttribute( |
1153 ui::AX_ATTR_TABLE_CELL_COLUMN_INDEX, | 1153 ui::AX_ATTR_TABLE_CELL_COLUMN_INDEX, |
1154 &colIndex)) { | 1154 &colIndex)) { |
1155 continue; | 1155 continue; |
1156 } | 1156 } |
1157 if (colIndex == column) | 1157 if (colIndex == column) |
1158 return cell->ToBrowserAccessibilityCocoa(); | 1158 return cell->ToBrowserAccessibilityCocoa(); |
1159 if (colIndex > column) | 1159 if (colIndex > column) |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1618 if (!browserAccessibility_) | 1618 if (!browserAccessibility_) |
1619 return [super hash]; | 1619 return [super hash]; |
1620 return browserAccessibility_->GetId(); | 1620 return browserAccessibility_->GetId(); |
1621 } | 1621 } |
1622 | 1622 |
1623 - (BOOL)accessibilityShouldUseUniqueId { | 1623 - (BOOL)accessibilityShouldUseUniqueId { |
1624 return YES; | 1624 return YES; |
1625 } | 1625 } |
1626 | 1626 |
1627 @end | 1627 @end |
OLD | NEW |