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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_strip_view.mm

Issue 1111953003: mac: Rename the method -accessibilityChildren on TabStripView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
diff --git a/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm b/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
index dd2dc0c6b2448c520522e2c60b4ed9dbe8cf3d5c..dd7ba76a2ddd257ce54b089abc7facd2e4df0cfe 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
+++ b/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
@@ -211,7 +211,7 @@
}
// Returns AX children (tabs and new tab button), sorted from left to right.
-- (NSArray*)accessibilityChildren {
+- (NSArray*)tabStripViewAccessibilityChildren {
NSArray* children =
[super accessibilityAttributeValue:NSAccessibilityChildrenAttribute];
return [children sortedArrayUsingComparator:
@@ -235,9 +235,9 @@
if ([attribute isEqual:NSAccessibilityRoleAttribute]) {
return NSAccessibilityTabGroupRole;
} else if ([attribute isEqual:NSAccessibilityChildrenAttribute]) {
- return [self accessibilityChildren];
+ return [self tabStripViewAccessibilityChildren];
} else if ([attribute isEqual:NSAccessibilityTabsAttribute]) {
- NSArray* children = [self accessibilityChildren];
+ NSArray* children = [self tabStripViewAccessibilityChildren];
NSIndexSet* indexes = [children indexesOfObjectsPassingTest:
^BOOL(id child, NSUInteger idx, BOOL* stop) {
NSString* role = [child
@@ -246,7 +246,7 @@
}];
return [children objectsAtIndexes:indexes];
} else if ([attribute isEqual:NSAccessibilityContentsAttribute]) {
- return [self accessibilityChildren];
+ return [self tabStripViewAccessibilityChildren];
} else if ([attribute isEqual:NSAccessibilityValueAttribute]) {
return [controller_ activeTabView];
}
« 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