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

Unified Diff: ui/views/controls/button/image_button.cc

Issue 2707263011: Test aria-pressed=mixed on windows (Closed)
Patch Set: git cl try Created 3 years, 7 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 | « ui/views/controls/button/custom_button.cc ('k') | ui/views/controls/button/toggle_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/image_button.cc
diff --git a/ui/views/controls/button/image_button.cc b/ui/views/controls/button/image_button.cc
index abd2fab17ab6a8d1949cfcc2e48aa5418e44fa14..d0489d57af94390a22bb922479cb1811129c9c1a 100644
--- a/ui/views/controls/button/image_button.cc
+++ b/ui/views/controls/button/image_button.cc
@@ -289,7 +289,8 @@ void ToggleImageButton::GetAccessibleNodeData(ui::AXNodeData* node_data) {
(!toggled_ && !alternate_images_[ButtonState::STATE_NORMAL].isNull())) {
node_data->role = ui::AX_ROLE_TOGGLE_BUTTON;
if (toggled_)
- node_data->AddState(ui::AX_STATE_PRESSED);
+ node_data->AddIntAttribute(ui::AX_ATTR_PRESSED_STATE,
+ ui::AX_BUTTON_STATE_TRUE);
}
}
« no previous file with comments | « ui/views/controls/button/custom_button.cc ('k') | ui/views/controls/button/toggle_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698