summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-21 19:22:58 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-21 19:22:58 +0000
commitb4c158db2d55a600c9e92691fdbe8709d04f84c8 (patch)
tree0276050c1224a874508b6e017ef12149d5ffd001 /chrome/browser/autocomplete
parenteac60f73ccc4dec42784ee6237f73ec4fa69ed7a (diff)
downloadchromium_src-b4c158db2d55a600c9e92691fdbe8709d04f84c8.zip
chromium_src-b4c158db2d55a600c9e92691fdbe8709d04f84c8.tar.gz
chromium_src-b4c158db2d55a600c9e92691fdbe8709d04f84c8.tar.bz2
Make the Windows location bar send accessibility events to the
accessibility extension API on Windows. This adds a few more accessibility events to views accessibility while we're at it. BUG=none TEST=none Review URL: http://codereview.chromium.org/3999001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63394 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete')
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_win.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc
index 501fa3b..5f26caa 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc
@@ -888,6 +888,17 @@ bool AutocompleteEditViewWin::OnAfterPossibleChange() {
if (something_changed && text_differs)
TextChanged();
+ if (text_differs) {
+ // Note that a TEXT_CHANGED event implies that the cursor/selection
+ // probably changed too, so we don't need to send both.
+ parent_view_->NotifyAccessibilityEvent(
+ AccessibilityTypes::EVENT_TEXT_CHANGED);
+ } else if (selection_differs) {
+ // Notify assistive technology that the cursor or selection changed.
+ parent_view_->NotifyAccessibilityEvent(
+ AccessibilityTypes::EVENT_SELECTION_CHANGED);
+ }
+
return something_changed;
}