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

Unified Diff: ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc

Issue 620673002: Flip the left/right speaker when the device is in yoga mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Observe DisplayObserver::OnDisplayMetricsChanged for rotation change. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc
diff --git a/ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc b/ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc
index 4f39865c0dee9196534beee138834dd3877439cd..06d28932b90e0bb1f9b2c68e4a5f4dea52be70c7 100644
--- a/ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc
+++ b/ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc
@@ -60,5 +60,9 @@ void TrayAudioDelegateChromeOs::SetOutputVolumeLevel(int level) {
CrasAudioHandler::Get()->SetOutputVolumePercent(level);
}
+void TrayAudioDelegateChromeOs::SetAudioChannelMode(AudioChannelMode mode) {
+ CrasAudioHandler::Get()->SwapLeftRight(mode == LEFT_RIGHT_SWAPPED);
+}
+
} // namespace system
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698