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

Unified Diff: ui/views/controls/button/custom_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/checkbox.cc ('k') | ui/views/controls/button/image_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/custom_button.cc
diff --git a/ui/views/controls/button/custom_button.cc b/ui/views/controls/button/custom_button.cc
index 53809abb142db426713c74eb99263e2d33283fd1..aae035015ed9b1b090a1850967cda85dddec4583 100644
--- a/ui/views/controls/button/custom_button.cc
+++ b/ui/views/controls/button/custom_button.cc
@@ -359,7 +359,8 @@ void CustomButton::GetAccessibleNodeData(ui::AXNodeData* node_data) {
node_data->AddState(ui::AX_STATE_HOVERED);
break;
case STATE_PRESSED:
- node_data->AddState(ui::AX_STATE_PRESSED);
+ node_data->AddIntAttribute(ui::AX_ATTR_PRESSED_STATE,
+ ui::AX_BUTTON_STATE_TRUE);
break;
case STATE_DISABLED:
node_data->AddState(ui::AX_STATE_DISABLED);
« no previous file with comments | « ui/views/controls/button/checkbox.cc ('k') | ui/views/controls/button/image_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698