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

Side by Side Diff: content/browser/accessibility/browser_accessibility_cocoa.mm

Issue 994373003: Calls BrowserAccessibility::IsCellOrTableHeaderRole() with a correct instance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove param Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698