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

Unified Diff: ash/system/night_light/night_light_toggle_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 | « ash/system/ime_menu/ime_list_view.cc ('k') | ash/system/tray/hover_highlight_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/night_light/night_light_toggle_button.cc
diff --git a/ash/system/night_light/night_light_toggle_button.cc b/ash/system/night_light/night_light_toggle_button.cc
index ca3eb6e9ea49ad6d0df04011b73b326299f8766d..0b9af5c5d8b4aef5c576b4a1afe86f209a6ff769 100644
--- a/ash/system/night_light/night_light_toggle_button.cc
+++ b/ash/system/night_light/night_light_toggle_button.cc
@@ -61,7 +61,8 @@ void NightLightToggleButton::GetAccessibleNodeData(ui::AXNodeData* node_data) {
l10n_util::GetStringUTF16(IDS_ASH_STATUS_TRAY_NIGHT_LIGHT));
node_data->role = ui::AX_ROLE_TOGGLE_BUTTON;
if (Shell::Get()->night_light_controller()->GetEnabled())
- node_data->AddState(ui::AX_STATE_PRESSED);
+ node_data->AddIntAttribute(ui::AX_ATTR_PRESSED_STATE,
+ ui::AX_BUTTON_STATE_TRUE);
}
} // namespace ash
« no previous file with comments | « ash/system/ime_menu/ime_list_view.cc ('k') | ash/system/tray/hover_highlight_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698