summaryrefslogtreecommitdiffstats
path: root/chrome/browser/accessibility
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-10 19:28:56 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-10 19:28:56 +0000
commita98e3c6f5c50afbbd3d9d5f5e019860f6001d924 (patch)
treed0902144896f7d35b86d3e3da8e0e773504c64b0 /chrome/browser/accessibility
parent9b034f7b8da8decd9b99a1133f86917b58cffe7e (diff)
downloadchromium_src-a98e3c6f5c50afbbd3d9d5f5e019860f6001d924.zip
chromium_src-a98e3c6f5c50afbbd3d9d5f5e019860f6001d924.tar.gz
chromium_src-a98e3c6f5c50afbbd3d9d5f5e019860f6001d924.tar.bz2
Implement accessible states and notifications for the tab strip.
This change just exposes information about what tabs are selected and fires proper notifications when tab selection changes. This will allow screen readers to announce when switching tabs even if the web content doesn't have focus. It's also a good first step towards making the tab strip fully accessible too (e.g. making it possible to perform operations on multiple tabs with just the keyboard). As part of this change I renamed the "selection changed" event to "text selection changed" so that there's no confusion between the text-selection-related events, and tab/list selection events. BUG=100412 Review URL: https://codereview.chromium.org/349033010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282396 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/accessibility')
-rw-r--r--chrome/browser/accessibility/accessibility_extension_api.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/accessibility/accessibility_extension_api.cc b/chrome/browser/accessibility/accessibility_extension_api.cc
index 139fd0e..6bbb3db 100644
--- a/chrome/browser/accessibility/accessibility_extension_api.cc
+++ b/chrome/browser/accessibility/accessibility_extension_api.cc
@@ -113,7 +113,7 @@ void ExtensionAccessibilityEventRouter::HandleControlEvent(
switch (event) {
case ui::AX_EVENT_TEXT_CHANGED:
- case ui::AX_EVENT_SELECTION_CHANGED:
+ case ui::AX_EVENT_TEXT_SELECTION_CHANGED:
OnTextChanged(info);
break;
case ui::AX_EVENT_VALUE_CHANGED: