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

Unified Diff: chrome/test/data/extensions/hangout_services_test.html

Issue 2784563003: WebRTC Audio private API: removing WebRtcAudioPrivate(Set/Get)ActiveSinkFunction (Closed)
Patch Set: updated api version Created 3 years, 8 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: chrome/test/data/extensions/hangout_services_test.html
diff --git a/chrome/test/data/extensions/hangout_services_test.html b/chrome/test/data/extensions/hangout_services_test.html
index 8b9b9a73d6f9b3d6d13e382ac37066838f540bc3..d414e4dc7e6eef436400c8657f1253c34dab2789 100644
--- a/chrome/test/data/extensions/hangout_services_test.html
+++ b/chrome/test/data/extensions/hangout_services_test.html
@@ -23,8 +23,7 @@ function populate() {
navigator.mediaDevices.enumerateDevices().then(populateSources);
}
-// Populates the select box with information on all sinks and the
-// currently selected sink.
+// Populates the select box with information on all sinks.
function populateSinks() {
var select = document.getElementById('select');
while (select.length > 0)
@@ -36,9 +35,6 @@ function populateSinks() {
option.text = sinks[i].sinkLabel + ' (' + sinks[i].sinkId + ')';
select.add(option);
}
- getActiveSink(function(sinkId) {
- select.value = sinkId;
- });
});
}
@@ -55,15 +51,6 @@ function populateSources(devices) {
}
}
-// Sets the currently active sink to the one selected in the select
-// box.
-function setActiveSinkFromSelection() {
- var select = document.getElementById('select');
- setActiveSink(select.value, function() {
- populateSinks();
- });
-}
-
function getAssociatedDeviceFromSelection() {
var select = document.getElementById('selectSource');
getAssociatedSink(select.value, function(sinkId) {
@@ -109,9 +96,8 @@ function browsertestRunAllTests() {
<audio id="audio" src="long_audio.ogg" controls autoplay></audio>
<br/>
-Audio output devices, along with currently selected device. Click to change:<br/>
-<select style="width:100%" id="select" size=10
- onClick="setActiveSinkFromSelection()"></select>
+Audio output devices<br/>
+<select style="width:100%" id="select" size=10></select>
<br/>
Audio input devices. Click to get associated output device ID:<br/>
« no previous file with comments | « chrome/common/extensions/api/webrtc_audio_private.idl ('k') | chrome/test/data/extensions/hangout_services_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698