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

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

Issue 393033006: Added tab notification to accessibility_event_router_views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GetTabCount returns 1 in test class Created 6 years, 5 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
Index: chrome/browser/ui/views/tabs/tab.cc
diff --git a/chrome/browser/ui/views/tabs/tab.cc b/chrome/browser/ui/views/tabs/tab.cc
index 06ee2367bc10843510ababf34335ccaacb42d472..029f4f9d4c81b6fdcbb40f00cd15bb202498fcf6 100644
--- a/chrome/browser/ui/views/tabs/tab.cc
+++ b/chrome/browser/ui/views/tabs/tab.cc
@@ -1010,6 +1010,8 @@ void Tab::OnGestureEvent(ui::GestureEvent* event) {
void Tab::GetAccessibleState(ui::AXViewState* state) {
state->role = ui::AX_ROLE_TAB;
state->name = data_.title;
+ state->count = controller_->GetTabCount();
+ state->index = controller_->GetModelIndexOfTab(this);
state->AddStateFlag(ui::AX_STATE_MULTISELECTABLE);
state->AddStateFlag(ui::AX_STATE_SELECTABLE);
if (IsSelected())

Powered by Google App Engine
This is Rietveld 408576698