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

Side by Side Diff: chromeos/audio/audio_a11y_controller.h

Issue 1840913002: A11y setting: mono audio UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROMEOS_AUDIO_AUDIO_A11Y_CONTROLLER_H_
6 #define CHROMEOS_AUDIO_AUDIO_A11Y_CONTROLLER_H_
7
8 #include <stdint.h>
9
10 #include "base/macros.h"
11 #include "chromeos/chromeos_export.h"
12
13 namespace chromeos {
14
15 class CHROMEOS_EXPORT AudioA11yController {
16 public:
17 AudioA11yController();
18 ~AudioA11yController();
19
20 // Set audio outputs mono or not (that is stereo).
21 void SetOutputMono(bool enabled);
22
23 // Returns true if audio output is mono, otherwise false.
24 bool IsOutputMonoEnabled() const;
25
26 private:
27 // Audio output channel counts.
28 int32_t channels_ = 2;
29
30 // Indicates if the mono audio output is enabled or disabled.
31 bool output_mono_enabled_ = false;
32
33 DISALLOW_COPY_AND_ASSIGN(AudioA11yController);
34 };
35
36 } // namespace chromeos
37
38 #endif // CHROMEOS_AUDIO_AUDIO_A11Y_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698