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

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

Issue 2781613003: Added a class acting as a fake caret for accessibility. (Closed)
Patch Set: Added code that handles views. Created 3 years, 8 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
Index: ui/views/controls/textfield/textfield.cc
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
index 1586362197bbeeefe7910675eb0c4747e5441b76..ad6f1d3fd7658dae0817af92a263bb4266373a1c 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -333,6 +333,7 @@ void Textfield::AppendText(const base::string16& new_text) {
model_->Append(new_text);
OnCaretBoundsChanged();
SchedulePaint();
+ NotifyAccessibilityEvent(ui::AX_EVENT_TEXT_CHANGED, true);
}
void Textfield::InsertOrReplaceText(const base::string16& new_text) {

Powered by Google App Engine
This is Rietveld 408576698