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

Unified Diff: chrome/browser/ui/views/tabs/tab.h

Issue 2497373003: Add tab status to accessibility labels (Closed)
Patch Set: Formatting and style Created 4 years, 1 month 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.h
diff --git a/chrome/browser/ui/views/tabs/tab.h b/chrome/browser/ui/views/tabs/tab.h
index 9aefb65dc68824dfbb7628208acee1ad9a9c1433..8cab44730a8c41102052640bd452b36d85fd59af 100644
--- a/chrome/browser/ui/views/tabs/tab.h
+++ b/chrome/browser/ui/views/tabs/tab.h
@@ -167,6 +167,10 @@ class Tab : public gfx::AnimationDelegate,
// horizontal deltas from those.
static float GetInverseDiagonalSlope();
+ // Creates an accessible tab label for screen readers that includes the tab
+ // status. This takes the form of "Page title - Tab state".
+ base::string16 GetAccessibleTabLabel();
+
private:
friend class AlertIndicatorButtonTest;
friend class TabTest;

Powered by Google App Engine
This is Rietveld 408576698