OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 var USER_MEDIA_TAB_ID = 'user-media-tab-id'; | 5 var USER_MEDIA_TAB_ID = 'user-media-tab-id'; |
6 | 6 |
7 var tabView = null; | 7 var tabView = null; |
8 var ssrcInfoManager = null; | 8 var ssrcInfoManager = null; |
9 var peerConnectionUpdateTable = null; | 9 var peerConnectionUpdateTable = null; |
10 var statsTable = null; | 10 var statsTable = null; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 /** | 174 /** |
175 * Removes all information about a peer connection. | 175 * Removes all information about a peer connection. |
176 * | 176 * |
177 * @param {!Object<number>} data The object containing the pid and lid of a peer | 177 * @param {!Object<number>} data The object containing the pid and lid of a peer |
178 * connection. | 178 * connection. |
179 */ | 179 */ |
180 function removePeerConnection(data) { | 180 function removePeerConnection(data) { |
181 var element = $(getPeerConnectionId(data)); | 181 var element = $(getPeerConnectionId(data)); |
182 if (element) { | 182 if (element) { |
183 delete peerConnectionDataStore[element.id]; | 183 delete peerConnectionDataStore[element.id]; |
184 tabView.removeTab(element.id); | 184 // add a [x] button to close this tab instead of removing it immediately. |
| 185 tabView.makeTabRemovable(element.id); |
185 } | 186 } |
186 } | 187 } |
187 | 188 |
188 | 189 |
189 /** | 190 /** |
190 * Adds a peer connection. | 191 * Adds a peer connection. |
191 * | 192 * |
192 * @param {!Object} data The object containing the pid, lid, url, | 193 * @param {!Object} data The object containing the pid, lid, url, |
193 * rtcConfiguration, and constraints of a peer connection. | 194 * rtcConfiguration, and constraints of a peer connection. |
194 */ | 195 */ |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 function eventLogRecordingsFileSelectionCancelled() { | 339 function eventLogRecordingsFileSelectionCancelled() { |
339 dumpCreator.disableEventLogRecordings(); | 340 dumpCreator.disableEventLogRecordings(); |
340 } | 341 } |
341 | 342 |
342 /** | 343 /** |
343 * Set | 344 * Set |
344 */ | 345 */ |
345 function enableAudioDebugRecordings() { | 346 function enableAudioDebugRecordings() { |
346 dumpCreator.enableAudioDebugRecordings(); | 347 dumpCreator.enableAudioDebugRecordings(); |
347 } | 348 } |
OLD | NEW |