summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authordtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 16:09:03 +0000
committerdtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 16:09:03 +0000
commit93dcd3adb146927513e89f475d3b23e9bd5046a9 (patch)
treec2bc46222b9b964c3513195ca3774934b8b641e1 /views
parentbc8536985e7e6fb4bfd989bdc83b783e6438ed70 (diff)
downloadchromium_src-93dcd3adb146927513e89f475d3b23e9bd5046a9.zip
chromium_src-93dcd3adb146927513e89f475d3b23e9bd5046a9.tar.gz
chromium_src-93dcd3adb146927513e89f475d3b23e9bd5046a9.tar.bz2
This ensures ATs read the correct selected tab when the containing tabbed pane gets focus.
BUG=48885 TEST=none Review URL: http://codereview.chromium.org/2974006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/controls/tabbed_pane/tabbed_pane.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/controls/tabbed_pane/tabbed_pane.cc b/views/controls/tabbed_pane/tabbed_pane.cc
index 1a7b0f0..0207840 100644
--- a/views/controls/tabbed_pane/tabbed_pane.cc
+++ b/views/controls/tabbed_pane/tabbed_pane.cc
@@ -108,8 +108,13 @@ void TabbedPane::Layout() {
void TabbedPane::Focus() {
// Forward the focus to the wrapper.
- if (native_tabbed_pane_)
+ if (native_tabbed_pane_) {
native_tabbed_pane_->SetFocus();
+
+ View* selected_tab = GetSelectedTab();
+ if (selected_tab)
+ selected_tab->NotifyAccessibilityEvent(AccessibilityTypes::EVENT_FOCUS);
+ }
else
View::Focus(); // Will focus the RootView window (so we still get keyboard
// messages).