| 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 #include "grit/ash_strings.h" | |
| 10 | 9 |
| 11 using chromeos::CrasAudioHandler; | 10 using chromeos::CrasAudioHandler; |
| 12 | 11 |
| 13 namespace ash { | 12 namespace ash { |
| 14 namespace system { | 13 namespace system { |
| 15 | 14 |
| 16 void TrayAudioDelegateChromeOs::AdjustOutputVolumeToAudibleLevel() { | 15 void TrayAudioDelegateChromeOs::AdjustOutputVolumeToAudibleLevel() { |
| 17 CrasAudioHandler::Get()->AdjustOutputVolumeToAudibleLevel(); | 16 CrasAudioHandler::Get()->AdjustOutputVolumeToAudibleLevel(); |
| 18 } | 17 } |
| 19 | 18 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 void TrayAudioDelegateChromeOs::SetOutputAudioIsMuted(bool is_muted) { | 55 void TrayAudioDelegateChromeOs::SetOutputAudioIsMuted(bool is_muted) { |
| 57 CrasAudioHandler::Get()->SetOutputMute(is_muted); | 56 CrasAudioHandler::Get()->SetOutputMute(is_muted); |
| 58 } | 57 } |
| 59 | 58 |
| 60 void TrayAudioDelegateChromeOs::SetOutputVolumeLevel(int level) { | 59 void TrayAudioDelegateChromeOs::SetOutputVolumeLevel(int level) { |
| 61 CrasAudioHandler::Get()->SetOutputVolumePercent(level); | 60 CrasAudioHandler::Get()->SetOutputVolumePercent(level); |
| 62 } | 61 } |
| 63 | 62 |
| 64 } // namespace system | 63 } // namespace system |
| 65 } // namespace ash | 64 } // namespace ash |
| OLD | NEW |