Commit 9dab5557 authored by Jacob Dufault's avatar Jacob Dufault Committed by Commit Bot

Fire an accessibility change event in Button::SetAccessibleName.

This allows a consumer to call SetAccessibleName multiple times and
have the new name be reflected in ChromeVox.

Bug: 719015
Change-Id: If355c3988907f67f336255a9b146e742e44bf9e2
Reviewed-on: https://chromium-review.googlesource.com/709921Reviewed-by: default avatarMichael Wasserman <msw@chromium.org>
Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Jacob Dufault <jdufault@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521172}
parent f629599a
......@@ -106,6 +106,7 @@ void Button::SetTooltipText(const base::string16& tooltip_text) {
void Button::SetAccessibleName(const base::string16& name) {
accessible_name_ = name;
NotifyAccessibilityEvent(ui::AX_EVENT_TEXT_CHANGED, true);
}
void Button::SetState(ButtonState state) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment