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

Unified Diff: media/audio/audio_logging.h

Issue 1122393004: Add support for switching the audio output device for HTMLMediaElements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes to MediaPlayers so that they invoke callbacks in the correct threads. First complete implem… Created 5 years, 7 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: media/audio/audio_logging.h
diff --git a/media/audio/audio_logging.h b/media/audio/audio_logging.h
index 913b8ec4433552bf41e22e734ecd00896c2bb714..4d7551f2021d9eb770e887dd80c25a18caa4a753 100644
--- a/media/audio/audio_logging.h
+++ b/media/audio/audio_logging.h
@@ -43,6 +43,11 @@ class AudioLog {
// Called when an audio component changes volume. |volume| is the new volume.
virtual void OnSetVolume(int component_id, double volume) = 0;
+
+ // Called when an audio component switches output device. |device_id| is the
+ // new audio output device.
+ virtual void OnSwitchOutputDevice(int component_id,
+ const std::string& device_id) = 0;
};
// AudioLogFactory dispenses AudioLog instances to owning classes for tracking

Powered by Google App Engine
This is Rietveld 408576698