| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 | 54 |
| 55 void TrayAudioDelegateChromeOs::SetOutputAudioIsMuted(bool is_muted) { | 55 void TrayAudioDelegateChromeOs::SetOutputAudioIsMuted(bool is_muted) { |
| 56 CrasAudioHandler::Get()->SetOutputMute(is_muted); | 56 CrasAudioHandler::Get()->SetOutputMute(is_muted); |
| 57 } | 57 } |
| 58 | 58 |
| 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::SetAudioChannelMode(AudioChannelMode mode) { |
| 64 CrasAudioHandler::Get()->SwapLeftRight(mode == LEFT_RIGHT_SWAPPED); |
| 65 } |
| 66 |
| 63 } // namespace system | 67 } // namespace system |
| 64 } // namespace ash | 68 } // namespace ash |
| OLD | NEW |