| 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 #include "ash/system/chromeos/audio/tray_audio_delegate_chromeos.h" | 5 #include "ash/system/chromeos/audio/tray_audio_delegate_chromeos.h" |
| 6 | 6 |
| 7 #include "chromeos/audio/cras_audio_handler.h" | 7 #include "chromeos/audio/cras_audio_handler.h" |
| 8 #include "grit/ash_resources.h" | 8 #include "grit/ash_resources.h" |
| 9 | 9 |
| 10 using chromeos::CrasAudioHandler; | 10 using chromeos::CrasAudioHandler; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 void TrayAudioDelegateChromeOs::SetOutputVolumeLevel(int level) { | 59 void TrayAudioDelegateChromeOs::SetOutputVolumeLevel(int level) { |
| 60 CrasAudioHandler::Get()->SetOutputVolumePercent(level); | 60 CrasAudioHandler::Get()->SetOutputVolumePercent(level); |
| 61 } | 61 } |
| 62 | 62 |
| 63 void TrayAudioDelegateChromeOs::SetInternalSpeakerChannelMode( | 63 void TrayAudioDelegateChromeOs::SetInternalSpeakerChannelMode( |
| 64 AudioChannelMode mode) { | 64 AudioChannelMode mode) { |
| 65 CrasAudioHandler::Get()->SwapInternalSpeakerLeftRightChannel( | 65 CrasAudioHandler::Get()->SwapInternalSpeakerLeftRightChannel( |
| 66 mode == LEFT_RIGHT_SWAPPED); | 66 mode == LEFT_RIGHT_SWAPPED); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void TrayAudioDelegateChromeOs::SetActiveHDMIOutoutRediscoveringIfNecessary( |
| 70 bool force_rediscovering) { |
| 71 CrasAudioHandler::Get()->SetActiveHDMIOutoutRediscoveringIfNecessary( |
| 72 force_rediscovering); |
| 73 } |
| 74 |
| 69 } // namespace system | 75 } // namespace system |
| 70 } // namespace ash | 76 } // namespace ash |
| OLD | NEW |