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

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

Issue 2939553002: Views; Fire a value changed event when the contents of a text field changes. (Closed)
Patch Set: Created 3 years, 6 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
« 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/textfield.cc
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
index 708921603b8864092626c4f890f1284da8d0e4cb..bf925b3c75d46f78368bf698b177249294b45f75 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -336,7 +336,7 @@ void Textfield::SetText(const base::string16& new_text) {
model_->SetText(new_text);
OnCaretBoundsChanged();
SchedulePaint();
- NotifyAccessibilityEvent(ui::AX_EVENT_TEXT_CHANGED, true);
+ NotifyAccessibilityEvent(ui::AX_EVENT_VALUE_CHANGED, true);
}
void Textfield::AppendText(const base::string16& new_text) {
@@ -1935,7 +1935,7 @@ void Textfield::UpdateAfterChange(bool text_changed, bool cursor_changed) {
if (text_changed) {
if (controller_)
controller_->ContentsChanged(this, text());
- NotifyAccessibilityEvent(ui::AX_EVENT_TEXT_CHANGED, true);
+ NotifyAccessibilityEvent(ui::AX_EVENT_VALUE_CHANGED, true);
}
if (cursor_changed) {
UpdateCursorViewPosition();
« 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