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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.cc

Issue 2581023002: Add tab status to accessibility labels (Closed)
Patch Set: Add tab index check. Fixes ChromeVox crash. Created 4 years 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: chrome/browser/ui/views/tabs/tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
index cc5b5e993f5ddaba62970cfd07f93f6219a3dbc0..5261d6fab5e61b3e55624cefc9ae510b467a6831 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -1324,6 +1324,11 @@ SkColor TabStrip::GetToolbarTopSeparatorColor() const {
return controller_->GetToolbarTopSeparatorColor();
}
+// Returns the accessible tab name for the tab.
+base::string16 TabStrip::GetAccessibleTabName(const Tab* tab) const {
+ return controller_->GetAccessibleTabName(tab);
sky 2017/01/03 23:11:41 You should only call to controller_ if tab is in t
edwardjung 2017/01/05 16:59:45 Done.
+}
+
int TabStrip::GetBackgroundResourceId(bool* custom_image) const {
const ui::ThemeProvider* tp = GetThemeProvider();

Powered by Google App Engine
This is Rietveld 408576698