OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_AUDIO_CONTROLLER_CHROMEOS_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_AUDIO_CONTROLLER_CHROMEOS_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_AUDIO_CONTROLLER_CHROMEOS_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_AUDIO_CONTROLLER_CHROMEOS_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "chromeos/audio/cras_audio_handler.h" | 11 #include "chromeos/audio/cras_audio_handler.h" |
10 | 12 |
11 namespace extensions { | 13 namespace extensions { |
12 | 14 |
13 // Ensures that the "best" input and output audio devices are always active. | 15 // Ensures that the "best" input and output audio devices are always active. |
14 class ShellAudioController : public chromeos::CrasAudioHandler::AudioObserver { | 16 class ShellAudioController : public chromeos::CrasAudioHandler::AudioObserver { |
15 public: | 17 public: |
16 ShellAudioController(); | 18 ShellAudioController(); |
17 ~ShellAudioController() override; | 19 ~ShellAudioController() override; |
(...skipping 11 matching lines...) Expand all Loading... |
29 // Gets the current device list from CRAS, chooses the best input and output | 31 // Gets the current device list from CRAS, chooses the best input and output |
30 // device, and activates them if they aren't already active. | 32 // device, and activates them if they aren't already active. |
31 void ActivateDevices(); | 33 void ActivateDevices(); |
32 | 34 |
33 DISALLOW_COPY_AND_ASSIGN(ShellAudioController); | 35 DISALLOW_COPY_AND_ASSIGN(ShellAudioController); |
34 }; | 36 }; |
35 | 37 |
36 } // namespace extensions | 38 } // namespace extensions |
37 | 39 |
38 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_AUDIO_CONTROLLER_CHROMEOS_H_ | 40 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_AUDIO_CONTROLLER_CHROMEOS_H_ |
OLD | NEW |