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

Unified Diff: chromeos/audio/audio_a11y_controller.cc

Issue 1840913002: A11y setting: mono audio UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delete tray a11y hand icon view Created 4 years, 8 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 | « chromeos/audio/audio_a11y_controller.h ('k') | chromeos/chromeos.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/audio/audio_a11y_controller.cc
diff --git a/chromeos/audio/audio_a11y_controller.cc b/chromeos/audio/audio_a11y_controller.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0e1dc5e103237f40e5db0aa0d62a034fc9bbee33
--- /dev/null
+++ b/chromeos/audio/audio_a11y_controller.cc
@@ -0,0 +1,27 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chromeos/audio/audio_a11y_controller.h"
+
+namespace chromeos {
+
+AudioA11yController::AudioA11yController() : cras_audio_handler_(nullptr) {
+ cras_audio_handler_ = CrasAudioHandler::Get();
+}
+
+AudioA11yController::~AudioA11yController() {
+}
+
+void AudioA11yController::SetOutputMono(bool enabled) {
+ if (cras_audio_handler_->IsOutputMonoEnabled() == enabled)
+ return;
+
+ cras_audio_handler_->SetOutputMono(enabled);
+}
+
+} // namespace chromeos
+
+
+
+
« no previous file with comments | « chromeos/audio/audio_a11y_controller.h ('k') | chromeos/chromeos.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698