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

Unified Diff: chromeos/audio/cras_audio_handler.h

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: chromeos/audio/cras_audio_handler.h
diff --git a/chromeos/audio/cras_audio_handler.h b/chromeos/audio/cras_audio_handler.h
index 9f6520e5f42133ec40d0a3e102532d8fa3d78d2a..e51d97d0bf71fb4843bc1915649ecb5f041e6d61 100644
--- a/chromeos/audio/cras_audio_handler.h
+++ b/chromeos/audio/cras_audio_handler.h
@@ -184,6 +184,11 @@ class CHROMEOS_EXPORT CrasAudioHandler : public CrasAudioClient::Observer,
// Removes all active audio nodes, including the primary active ones.
virtual void RemoveAllActiveNodes();
+ // Swaps the left and right channel of the the primary active output device.
cychiang 2014/10/01 02:36:29 extra the
jennyz 2014/10/01 17:43:54 Done.
+ // Swap the left and right channel if |swap| is true; otherwise, swap the left
+ // and right channel back to the normal mode.
+ virtual void SwapLeftRight(bool swap);
+
// Enables error logging.
virtual void LogErrors();

Powered by Google App Engine
This is Rietveld 408576698