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

Unified Diff: ui/views/controls/textfield/native_textfield_views.cc

Issue 8850001: Send a11y events from NativeTextfieldViews when the state changes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/native_textfield_views.cc
===================================================================
--- ui/views/controls/textfield/native_textfield_views.cc (revision 112880)
+++ ui/views/controls/textfield/native_textfield_views.cc (working copy)
@@ -458,6 +458,8 @@
model_->SelectRange(range);
OnCaretBoundsChanged();
SchedulePaint();
+ textfield_->GetWidget()->NotifyAccessibilityEvent(
sky 2011/12/07 17:10:01 I'm not familiar with EVENT_TEXT_CHANGED. Should i
dmazzoni 2011/12/07 17:25:35 TEXT_CHANGED implies SELECTION_CHANGED, but you're
+ textfield_, ui::AccessibilityTypes::EVENT_TEXT_CHANGED, true);
}
void NativeTextfieldViews::GetSelectionModel(gfx::SelectionModel* sel) const {
@@ -946,6 +948,8 @@
if (text_changed || cursor_changed) {
OnCaretBoundsChanged();
SchedulePaint();
+ textfield_->GetWidget()->NotifyAccessibilityEvent(
+ textfield_, ui::AccessibilityTypes::EVENT_TEXT_CHANGED, true);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698