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

Unified Diff: ash/system/audio/volume_view.cc

Issue 2860883003: A11y: Add/refactor methods for manipulating bitfields on AXNodeData. (Closed)
Patch Set: Delete AXNodeData::Init() and clear bitfields in AXNodeData() instead. 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
Index: ash/system/audio/volume_view.cc
diff --git a/ash/system/audio/volume_view.cc b/ash/system/audio/volume_view.cc
index c7ed0f35677836ca10b9f05a0bc48a34735d0fbd..e541e5ed573391342d5d59626b90c0f4870e2a8a 100644
--- a/ash/system/audio/volume_view.cc
+++ b/ash/system/audio/volume_view.cc
@@ -101,7 +101,7 @@ class VolumeButton : public ButtonListenerActionableView {
l10n_util::GetStringUTF16(IDS_ASH_STATUS_TRAY_VOLUME_MUTE));
node_data->role = ui::AX_ROLE_TOGGLE_BUTTON;
if (CrasAudioHandler::Get()->IsOutputMuted())
- node_data->AddStateFlag(ui::AX_STATE_PRESSED);
+ node_data->AddState(ui::AX_STATE_PRESSED);
}
views::ImageView* image_;
« no previous file with comments | « no previous file | ash/system/ime_menu/ime_menu_tray_unittest.cc » ('j') | ui/views/accessibility/ax_view_obj_wrapper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698