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 | 5 |
6 /** | 6 /** |
7 * Maintains the stats table. | 7 * Maintains the stats table. |
8 * @param {SsrcInfoManager} ssrcInfoManager The source of the ssrc info. | 8 * @param {SsrcInfoManager} ssrcInfoManager The source of the ssrc info. |
9 */ | 9 */ |
10 var StatsTable = (function(ssrcInfoManager) { | 10 var StatsTable = (function(ssrcInfoManager) { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 var trElement = $(trId); | 135 var trElement = $(trId); |
136 if (!trElement) { | 136 if (!trElement) { |
137 trElement = document.createElement('tr'); | 137 trElement = document.createElement('tr'); |
138 trElement.id = trId; | 138 trElement.id = trId; |
139 statsTable.firstChild.appendChild(trElement); | 139 statsTable.firstChild.appendChild(trElement); |
140 trElement.innerHTML = '<td>' + rowName + '</td><td></td>'; | 140 trElement.innerHTML = '<td>' + rowName + '</td><td></td>'; |
141 } | 141 } |
142 trElement.cells[1].textContent = value; | 142 trElement.cells[1].textContent = value; |
143 | 143 |
144 // Highlights the table for the active connection. | 144 // Highlights the table for the active connection. |
145 if (rowName == 'googActiveConnection' && value == 'true') | 145 if (rowName == 'googActiveConnection' && value == true) |
146 statsTable.parentElement.classList.add('stats-table-active-connection'); | 146 statsTable.parentElement.classList.add('stats-table-active-connection'); |
147 } | 147 } |
148 }; | 148 }; |
149 | 149 |
150 return StatsTable; | 150 return StatsTable; |
151 })(); | 151 })(); |
OLD | NEW |